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     Dynamic number of form elements

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dynamic number of form elements
 Login/Join
 
Member
posted
Here's the scenario...

I am going to be displaying a 2 x n matrix of textboxes on-screen and I want the users to be able to add/delete rows without having to post/refresh the screen (using DHTML); i.e. if I initially have a 2 x 5 matrix and a row is deleted, it becomes a 2 x 4 matrix.

The problem...

How would I be able to figure out how many rows are going to be passed back to the fex and how can I access those values? Assumming I call them:

PARM11, PARM12
PARM21, PARM22
PARM31, PARM32
...

I know how to dynamically assign the parameter names on the HTML side, but how do I dynamically determine if PARM 32 even exists?
 
Posts: 9 | Location: Boston | Registered: April 25, 2005Report This Post
Master
posted Hide Post
If it was me I would give the all the same name. Then in the fex you have multiple variable with the same name but with a counter on the end. to access them you can use &VARNAME.&COUNTER.EXIST and see if the exist. &VARNAME.&COUNTER where counter EQ 0 tells you how many there are.
 
Posts: 865 | Registered: May 24, 2004Report This Post
Member
posted Hide Post
Works great! Thanks for the tip.
 
Posts: 9 | Location: Boston | Registered: April 25, 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     Dynamic number of form elements

Copyright © 1996-2020 Information Builders