Focal Point
[SOLVED] FOCEXEC get value of web POST variable

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

February 17, 2011, 11:11 AM
Richard Crist
[SOLVED] FOCEXEC get value of web POST variable
I have searched forum but I have not yet found answer that I need. In short what I would like to do is the following:

1) I use Dev Studio to create an HTML form that someone will call (I know how to do this part)
2) When they call my HTML they will also have populated one or more POST variables
3) I would like to have my HTML form then call a FOCEXEC (I have done this using Dev Studio)
4) I would like the FOCEXEC to be able to determine the value of the POST variables and output them

Question part 1: How do I get the value of the POST variables into FOCEXEC if I know ahead of time what the POST variable names are?

Question part 2: How do I get the value of the POST variables into FOCEXEC when I do not know ahead of time how many and the names of the POST variables?

Thank you for any and all assistance!

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


WebFOCUS 7.6
Linux
Apache Tomcat
Excel, CSV, HTML, PDF
February 17, 2011, 03:45 PM
Waz
First thing, any variables on the HTML form will equate to an amper variable, or multiple amper variables, in some cases.

Second, I would suggest using some javascript to build a known variable which would contain the names of the objects being passes to WebFOCUS.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 17, 2011, 05:01 PM
Richard Crist
Yes, now that you mention that, I remember another post I found but I did not understand it at first. Now that you have mentioned this, I see where they are doing just that. I will try to call my HTML with a POST variable, and see if it automatically is available as the same-named ampersand variable in the focexec. I will also plan on using that technique of a known variable passing the number and names of other POST variables. Thank you!


WebFOCUS 7.6
Linux
Apache Tomcat
Excel, CSV, HTML, PDF