Populating Drop Down lists with Custom System variables
Hi all,
I was recent working on a prjoect with WebFocus 760 and ran into a problem. When I try to use a procedure to populate a Drop down list in the HTML page, but the procedure requires a custom system variable (I use the login name as a system variable), the drop down seems to be blank. However I have checked my procedure and it seems to run fine as a regular procedure on its own and not trying to populate the drop down. I was wondering if it had anything to do with the order in which the procedures and the variables are loaded, if so is there a solution for this?
Thanks in Advance, Ben
September 24, 2007, 03:37 PM
cmallain
Could you send an example?
------------------------------------------ last version used: v7.1; truly miss the wonderful things I did with WebFOCUS, HTML, & JavaScript.
The code for the HTML is listed above. The combobox2 is calling the procedure: OMEGA-BRKR_FILTER.fex which requires a custom system variable which was named: &MRUSER (which stores the LoginID from the dashboard login). But everytime I ran it, the dropdown list is blank. I tested the system variable, and it works without the drop down. But for some reason it won't populate the drop down.
The .fex to populate this is listed below:
-* File OMEGA-BRKR_FILTER.fex SET TRACEOFF = ALL SET TRACEON = STMTRACE//CLIENT SET TRACEON = STMTRACE//CLIENT SET TRACEUSER = CLIENT SET XRETRIEVAL = ON SET EMPTYREPORT = ON
-SET &ECHO = OFF;
-*SET MRUSER = &MRUSER;
TABLE FILE BRAccessRights PRINT BROKERID BROKERID WHERE ( LOGIN EQ '&MRUSER' ) AND (ACTIVE EQ 'YES'); ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT XML ON TABLE SET STYLE * UNITS=IN, PAGESIZE='SCREEN', LEFTMARGIN=0.000000, RIGHTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, FONT='ARIAL', SIZE=9, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, RIGHTGAP=0.125000, TOPGAP=0.013889, BOTTOMGAP=0.027778, $ TYPE=TITLE, STYLE=BOLD, $ TYPE=TABHEADING, SIZE=12, STYLE=BOLD, $ TYPE=TABFOOTING, SIZE=12, STYLE=BOLD, $ TYPE=HEADING, SIZE=12, STYLE=BOLD, $ TYPE=FOOTING, SIZE=12, STYLE=BOLD, $ TYPE=SUBHEAD, SIZE=10, STYLE=BOLD, $ TYPE=SUBFOOT, SIZE=10, STYLE=BOLD, $ TYPE=SUBTOTAL, BACKCOLOR=RGB(210 210 210), $ TYPE=ACROSSVALUE, SIZE=9, $ TYPE=ACROSSTITLE, STYLE=BOLD, $ TYPE=GRANDTOTAL, BACKCOLOR=RGB(210 210 210), STYLE=BOLD, $ ENDSTYLE END
Thanks for taking the time to look at this.This message has been edited. Last edited by: BenC,
September 24, 2007, 05:03 PM
Francis Mariani
I haven't used Dev Studio to create drop-down lists, but I did notice that the fex is called as a self-service program from an APP folder and not from MRE, so it's possible that &MRUSER is not populated.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 24, 2007, 05:16 PM
TexasStingray
BenC, when the layout page is loading up does it open a new browser window?
Scott
September 26, 2007, 01:43 PM
BenC
Yes, it opens a new small window stating that the query has failed.