Focal Point
[CLOSED] HTML how to create a table driven menu

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8487012995

February 23, 2011, 12:50 PM
Brenda Wilkerson
[CLOSED] HTML how to create a table driven menu
Hi, new to WF and not sure how to ask what I need. I have a table that has names of reports and their associated fex. I need to create a menu that will list the report name and when that report is clicked, it will execute the associated fex. I will be using this in a group view in a launch block and the report will be displayed in an output block. Any help on this PLEASE?

This message has been edited. Last edited by: Kerry,



WebFOCUS 7.7.03
Windows 7
February 23, 2011, 02:20 PM
Enigma006
May be you can create a drop down menu with name FEX_NAME. Populate the menu with Report name as display and fex name as value. When button is clicked send that value to a procedure.
Procedure may have code like this.

-INCLUDE &FEX_NAME

This should make that fex run hopefully..

Thanks


8.1.05
HTML,PDF,EXL2K, Active, All
February 23, 2011, 03:13 PM
Brenda Wilkerson
Are you talking about creating a menu control in maintain? So far that is the only place I've found to create a menu.



WebFOCUS 7.7.03
Windows 7
February 23, 2011, 03:34 PM
Enigma006
No. I am talking about creating on HTML page using HTML Composer.


8.1.05
HTML,PDF,EXL2K, Active, All
February 23, 2011, 03:57 PM
<FreSte>
Hi,

Below you'll find a small and VERY BASIC example.
(Just change the server/port)

-Fred-


DEFINE FILE CAR
  FEXNAME/A10 = IF COUNTRY EQ 'ENGLAND' THEN 'fex1' ELSE
                IF COUNTRY EQ 'FRANCE'  THEN 'fex2' ELSE
                IF COUNTRY EQ 'ITALY'   THEN 'fex3' ELSE 'not_set';
END

TABLE FILE CAR
  SUM
    COMPUTE URL/A100 = '<a href=''http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=' || FEXNAME || '''>' | COUNTRY | '</a>';
  BY FEXNAME
WHERE FEXNAME NE 'not_set';
END

February 23, 2011, 04:09 PM
Enigma006
If you want to run all reports from a fex, above way works. If its from html page, u may try the idea I mentioned.
Let us know if something works or the other


8.1.05
HTML,PDF,EXL2K, Active, All
February 23, 2011, 04:49 PM
Brenda Wilkerson
thx, not sure yet, as I said this is new for me and my first. Still trying to create the drop down menu but haven't found how yet. Got a drop down list so just working thru it and going crazy.



WebFOCUS 7.7.03
Windows 7
February 23, 2011, 05:01 PM
FrankDutch
We have created a report out of all the fexes (with a dir/s *.fex) and the result gives an overview with internal name, date created, date last runned, by who etc.
Out of that overview we have drop down on each row.
You can either select to edit the fex, or run it.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

March 01, 2011, 01:45 AM
DW_Dev
Frank,
Can you tell me how you created the run and edit dropdowns.


Webfocus 7.7.04, Windows, HTML,Excel , Active PDF, Active HTML, Flex Enable
March 01, 2011, 09:49 AM
FrankDutch
We use an URL that points to the location of the fex and either opens or run that fex.

It is not possible to copy the fex since it has several includes and many decribing comments in Dutch.
Also the fieldnames we use are most of the time in Dutch.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

March 02, 2011, 09:50 AM
DW_Dev
I was able to figure it out. Used the URL By Field method and built the URL as a compute Column. This forum helps a lot.


Webfocus 7.7.04, Windows, HTML,Excel , Active PDF, Active HTML, Flex Enable