As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
There are currently 3 files, in that 2 HTML & 1 Fex file.
1. Welcom Page 2. Report Main 3. Report.fex
By default "Welcome Page" will be displayed in which report is viewed in a frame. From the First page( Welcome Page) if user wants any of the columns(Show/Hide, Sort etc), he will navigate to the second HTML page ( Report Main). Whatever columns he is selecting/deselecting, accordingly the report is getting updated. This functionality has been implemented.
Now what we need to achieve is...
1. From the First page(Welcome Page), if the user selects any of the filters provided in the ListBox , after passing the required parameters from the second page then report is not getting updated accordingly but the report is applying filters on the colums where we have set some default column names. We have to apply the filter conditions based on the parameters which we have received from Second HTML. 2. After user navigates from the Second page ( Report Main) to the first page (Welcome Page), & if he wants to make any other changes, that is if he wants to go back to the second page(Report Main) from the first page, then he has to view all the values that he had selected previously. Probably we need to create a session for this.
The code which we have used in FEX is as follows...
-DEFAULT &SORT1 = 'DEPARTMENT', -DEFAULT &sortcol1 = 'DEPARTMENT', -DEFAULT &sortcol2 = '', -DEFAULT &sortcol3 = '', -DEFAULT &sortcol4 = '', -DEFAULT &sortcol5 = '', -DEFAULT &outcol1 = 'FIRST_NAME'; -DEFAULT &outcol2 = 'LAST_NAME'; -DEFAULT &outcol3 = ''; -DEFAULT &outcol4 = ''; -DEFAULT &outcol5 = ''; -SET &SORT1 = IF &sortcol1 NE '' THEN 'BY &sortcol1.EVAL ' ELSE ''; -SET &SORT2 = IF &sortcol2 NE '' THEN 'BY &sortcol2.EVAL ' ELSE ''; -SET &SORT3 = IF &sortcol3 NE '' THEN 'BY &sortcol3.EVAL ' ELSE ''; -SET &SORT4 = IF &sortcol4 NE '' THEN 'BY &sortcol4.EVAL ' ELSE ''; -SET &SORT5 = IF &sortcol5 NE '' THEN 'BY &sortcol5.EVAL ' ELSE ''; -RUN TABLE FILE EMPLOYEE PRINT DEPARTMENT &outcol1 &outcol2 &outcol3 &outcol4 &outcol5 &SORT1 &SORT2 &SORT3 &SORT4 &SORT5 HEADING "Employee Details " WHERE DEPARTMENT CONTAINS &DEPARTMENT.(OR(FIND DEPARTMENT IN EMPLOYEE)).DEPARTMENT.;
Here is an example of how this could be done. Three files. First is my test.htm, which is the start of the example. This one will load the second file (iframe.htm) in an iframe, which contains the logic to call the fex. The fex only shows the parameters being entered. The test.htm code:
GamP, Thanks for your help. I tried to deploy your code but I'am unable to extract the values from the frame. And also functionality which I'am looking for is not getting implemented.
Whatever parameters you are going to pass from the Second HTML, there should be some thing that holds these values so that I can apply Filter condition (Filter Paramenter from the First page) on top of it.
If you can post the HTML (does this forum allow attachments?) for the 2 pages we may be able to help you better.
Also during debugging of HTML forms I find it easier to use method='get' so that I can see what is being passed in the URL. After things work I change it back to method='post'
WebFOCUS 8.2.03 (8.2.06 in testing)
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007