Focal Point
[SOLVED] passing parameters fram .asp page

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

September 25, 2008, 12:41 PM
Donald
[SOLVED] passing parameters fram .asp page
I have a fex that is passing parameters from a asp page front end. One of the fields is a check box. The drop down fields are just amper variables that I pass from the asp page, but how do I validate the check box in my fex?

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


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
September 25, 2008, 12:46 PM
Francis Mariani
I imagine the checkbox on the ASP page looks something like this:

<input name="SUBTOTALS" type="checkbox" value="YES">

If the box is not checked when the form is submitted, nothing for that form object is passed to WebFOCUS. You should default the form object parameter to a value in the WebFOCUS program:

-DEFAULT &SUBTOTALS = '';

Now you can check if the value of the form object parameter contains the checkbox value (in my example 'YES') or blank.


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 25, 2008, 01:18 PM
Donald
yes it looks very similar to your code




Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
September 25, 2008, 01:21 PM
Donald
<TD align=right><INPUT type=checkbox value=1 id=iHideNonShipable name=iHideNonShipable  onclick="chkBoxOnClick[this, 'hdHideNonShip');"></TD>

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


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
September 25, 2008, 01:37 PM
Donald
The code is
<INPUT type=checkbox value =1 id=iHipenonshipable name=iHideNonShipable onclick="chkBoxonClick[this, 'hdhideNonship');">


would I check if &iHidenonshipable = '1'?

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


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
September 25, 2008, 01:39 PM
Donald
type=checkbox value=1 id=iHideNonShipable name=iHideNonShipable onclick="chkBoxOnClick(this, 'hdHideNonShip')

Sorry,I am trying to post the code


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
September 25, 2008, 01:46 PM
Francis Mariani
The answer is yes, you check for the value of &iHideNonShipable.

The first thing I do when writing a fex that is executed from a form submission is to add

-? &
to the begining of the fex. This will display all Dialogue Manager variables available in the fex - variables passed from the form, system variables and variables created in the fex.

To include HTML code in a forum posting, add "code" tags to the html:

[code]

your html here
[/code]


You can either type the code tags manually or click on the < / > icon.


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