Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] passing parameters fram .asp page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] passing parameters fram .asp page
 Login/Join
 
Platinum Member
posted
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
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
Platinum Member
posted Hide Post
yes it looks very similar to your code

 
Posts: 116 | Registered: April 23, 2007Report This Post
Platinum Member
posted Hide Post
<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
 
Posts: 116 | Registered: April 23, 2007Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 116 | Registered: April 23, 2007Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] passing parameters fram .asp page

Copyright © 1996-2020 Information Builders