Hi, We are creating a Report request submission form. One of the text box needs to display the user ID. The fex is from an sql insert stored proc. The user ID field is actually an amper variable. I cant get the user ID to prefill on the HTML form. I tried some examples from other postings like this:
Thanks..but I do not have the perfomance management enviroment. I need to use &IBIC_user or something like that which I tried. That did not work either.
WebFocus 7.7.02 WinXP
February 17, 2011, 03:19 PM
MathematicalRob
Joe,
I use a FEX to dynamically populate an input box.
Here's my code for the FEX:
-SET &sys_usr = CNCTUSR('A8');
ENGINE SQLORA SET DEFAULT_CONNECTION GOLD
SQL SQLORA PREPARE SQLOUT FOR
SELECT UPPER('&sys_usr') AS "SYSTEM_USER" FROM DUAL
;
END
TABLE FILE SQLOUT
PRINT
SYSTEM_USER
BY
SYSTEM_USER
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE PCHOLD FORMAT XML
END
And here's my input box. I think it was because of some control chaining that I'm doing that I made this a hidden input box, and then use Javascript to populate the box(es) that the user sees - that's the SetCreator() function you see at the end: