Focal Point
passing variable in HTML through push-buttons

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

April 23, 2007, 06:28 PM
fnu
passing variable in HTML through push-buttons
Has anyone passed an &variable in HTML through the push-buttons? Do you use an onclick event? We have no idea how to create an &var that WebFocus will understand. There is no 'input' statement to use, only the 'request' statement.
April 23, 2007, 11:19 PM
Francis Mariani
Are you calling WebFOCUS from a form action? If so, all the parameters in the form - input boxes, select boxes, radio buttons, etc will be passed as &variables to WebFOCUS. What exactly are you trying to do?


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
April 24, 2007, 04:53 AM
<JJI>
Fnu,

If you're using a form action it's like Francis said. Alle objects will be passed as &vars to WF. If you're not using a formaction, you can still use a java script on an onclick event and pass the request together with the variable to WF.

Regards,
April 24, 2007, 09:37 AM
fnu
We are not using forms. We are submitting the request thru

There is an onclick, but I have no idea what to put in it so that WebFocus will recognize an &var. Normally, it would be in an statement with the Servlet.
April 24, 2007, 09:45 AM
BlueZone
Fnu :
Even if there are no data entry/selection options on your screen, you can always pass static data variables from a HTML screen by using



In more complex situations where the value is determined on specific conditions, you could use an onClick event on the button, that will execute an javascript function and assign values to the field as appropriate.

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
April 24, 2007, 09:52 AM
Francis Mariani
Could you all please place your HTML code between
  
[code] 

[/code]

tags? We cannot see the HTML you've posted.


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
April 24, 2007, 10:07 AM
fnu
Can you send me an example of code that I can put in an onclick?

thanks!
May 01, 2007, 10:39 AM
Kerry
Hi all,

FYI, here is the other topic regarding the same issue:

sending &variable in HTML thru push-buttons: https://forums.informationbuilders.com/eve/forums/a/tpc/...021029422#7021029422

Cheers, Smiler

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.