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 by IB] help with maintain JS Grid dropdown- character limit?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED by IB] help with maintain JS Grid dropdown- character limit?
 Login/Join
 
Gold member
posted
I'm building a JS Grid and I'd like to use a dropdown list in one of the columns.

I created a computed field and tried filling it with the HTML code, but my list is very long and I think I'm hitting a character limit. My field was an A2000 but it only loaded up to the letter B and the screen was corrupted- I think because there was no "end select" tag. Doubling my character length crashes the program, but I couldn't find exactly what the length limit is. I truncated the list to only 20 items and it works beautifully.

Is there some way around this? My dropdown is a list of names and I need to make sure that the user selects it from a list rather than free typing it so that it will match up with the correct person later in the application. Each person has an ID associated with them, and that is the field that I'm really trying to capture.

My code looks looks like this to set the DROP_DOWN field, which is an HTML type on my grid:
 
declare LIST/A2000;
....
Compute LIST = "<select><option value=0></option>";
Compute j = 1;
Repeat physStk.foccount
	Compute LIST = LIST||"<option value="||physStk(j).PROVIDER_id||">"
		||physStk(j).PROVIDER_NAME||"</option>";
	Compute j = j + 1;
EndRepeat
Compute LIST = LIST||"</select>"; 
...
Compute i = 1;
Repeat stk.foccount
	Compute stk(i).DROP_DOWN = IF stk(i).disch_md1 GT 0 stk(i).disch_md1_name ELSE 
		"<select name=md"||i||"><option value=0></option>"||LIST;
	Compute i = i + 1;
EndRepeat

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


WebFOCUS 7.7.2
Win2003
Excel, HTML, PDF
 
Posts: 61 | Registered: April 16, 2009Report This Post
Master
posted Hide Post
You can try:

declare LIST/A0;

This will make LIST as big as it needs to be. It IS possible you are hitting some limit either on the form or in the code, but it's not one that I know of.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Gold member
posted Hide Post
Yeah I just tried the field to an A0 but get basically the same result.

If I limit the length of the dropdown to 50 records, it still works; at 75 it either crashes edaserve or returns "EDA no data".


WebFOCUS 7.7.2
Win2003
Excel, HTML, PDF
 
Posts: 61 | Registered: April 16, 2009Report This Post
Expert
posted Hide Post
Hi jjoyce,

To confirm if this is a limit somewhere, you may want to get help via a case with Customer Support Services. To open a case, you may either call at 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Master
posted Hide Post
This issue was solved with a clever work-around. The issue is, only the drop down values on the displayed portion of the grid were retraining their values. To solve this we created a hidden field to return the selected value.

To avoid this issue in the future, we are adding a checkbox as well as other options to the columns of the grid so they can be selected instead of created.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report 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 by IB] help with maintain JS Grid dropdown- character limit?

Copyright © 1996-2020 Information Builders