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     [CLOSED] Chained List boxes with ALL option

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Chained List boxes with ALL option
 Login/Join
 
Member
posted
Hi All,

Am having a strange issue here.
I have 3 list boxes, with multi select in each and all the three are chained to each other.
So the selection in one box populates the data in the next list box on HTML layout painter.Data in the list boxes are from fexes.
Am able to populate data, chain them, but the problem is, with 'ALL' option.
When I click 'ALL' on list box1, then everything should populate in the list box2, which is not happening.
List box1 & list box2 is functional for all other values except 'ALL'.
Also, here 'ALL' is coming from a Fex file and not from 'Add ALL option' on the HTML page.
Have been through many earlier post, but didnt find any which addresses the 'ALL' Option
Thanks in advance for your help.

RJ

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


7.1.4
Windows XP
Excel, HTML, PDF



 
Posts: 26 | Registered: February 21, 2008Report This Post
Gold member
posted Hide Post
change the value 'ALL' to 'foc_none' in the fex of list box2

(i.e)
-IF &varfex2 EQ 'ALL' THEN 'foc_none' ELSE '&varfex2'

this code should be included in the FEX of the list box2


7.1.1
Windows XP
HTML
 
Posts: 64 | Location: North Carolina | Registered: December 04, 2007Report This Post
Member
posted Hide Post
Thanks Krish,

I have done exactly the same thing in the listbox2 fex, it is working perfectly fine when just the fex is run saperately, but doesnt when the fex is attached to the list box2


7.1.4
Windows XP
Excel, HTML, PDF



 
Posts: 26 | Registered: February 21, 2008Report This Post
Expert
posted Hide Post
If you read other posts on the Forum then you would realise that when ALL is selected the value of 'FOC_NONE' is passed as the variable value. In your fex you will have a line something like WHERE fieldname EQ '&Variable'. Because the value for &Variable is interpreted as 'FOC_NONE' the where clause is ignored, effectively giving you all records.

To test that your fex is working OK with FOC_NONE do the substitution yourself by running the fex manually. You should see all the values that you expect.

I always provide a -DEFAULT &Variable = 'FOC_NONE' at the top of all my chain fexes to ensure that, even if no value gets passed, the fex will always function as I require it to.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     [CLOSED] Chained List boxes with ALL option

Copyright © 1996-2020 Information Builders