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     I expected mutiselect prompts to work different

Read-Only Read-Only Topic
Go
Search
Notify
Tools
I expected mutiselect prompts to work different
 Login/Join
 
Gold member
posted
I thought with the the code below if I selected only a car without a country I would get all countries with that car for example

Country Car
No Selection Jensen

Report World be
Country Car
England Jenen

Instead I get all countries - all models

Am I oversimplifying things. How do I do with autoprompting two multiselects where if I just enter stuff into second box it works correctly.

*************************************
TABLE FILE CAR
BY COUNTRY
BY CAR
HEADING
""
FOOTING
""
WHERE ( COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).COUNTRY. ) AND ( CAR EQ &CAR.(OR(FIND CAR IN CAR)).CAR. );
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END

***********


Webfocus 7.6.4
Windows 2003 Server, SQL Server 2005
Excel, HTML , JavaScript ,and PDF.
Reportcaster, BID, Tomcat
 
Posts: 79 | Registered: May 02, 2006Report This Post
Guru
posted Hide Post
Jammer,

This sounds like FOC_NOE is getting you. I'm betting that when you don't select a country FOC_NONE is passed or is the default. if this is the case then the entire line:

WHERE ( COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).COUNTRY. ) AND ( CAR EQ &CAR.(OR(FIND CAR IN CAR)).CAR. );


is skipped.

Try splitting it into 2 lines:

WHERE ( COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).COUNTRY. );
WHERE ( CAR EQ &CAR.(OR(FIND CAR IN CAR)).CAR. );


The AND is implied due to the 2 where statements.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
Gold member
posted Hide Post
Interesting.. you are correct



I would have thought my statements and your's broken up where equivalent. (actually it is a little worrisome since, I never expected them to behave different.)

I notice in dev stdio when you split the where clause you can select either one in the "Where Assist" but you can't create a new "where" within the assist.

Or restated - I can say I could not create the two where clauses in the graphic tool. (Another thing not possible in the graphic tool!)


Webfocus 7.6.4
Windows 2003 Server, SQL Server 2005
Excel, HTML , JavaScript ,and PDF.
Reportcaster, BID, Tomcat
 
Posts: 79 | Registered: May 02, 2006Report This Post
Virtuoso
posted Hide Post
Yes you can. Do the country where with the assist, then click ok when done. You can then select new in the where dialog box, and open a new assist window for car.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
I stand corrected - thanks again


Webfocus 7.6.4
Windows 2003 Server, SQL Server 2005
Excel, HTML , JavaScript ,and PDF.
Reportcaster, BID, Tomcat
 
Posts: 79 | Registered: May 02, 2006Report This Post
Virtuoso
posted Hide Post
The problem you are seeing is a little glitch with the way they have implemented the FOC_NONE functionality. When the request is parsed, if it finds the value FOC_NONE anywhere in the selection, the whole selection is ignored (commented out, basically). So if you have a compound where, it ignores everything, regardles of the AND or OR. The solution, as mentioned, is to break it into two separate WHERE statements, which use an implicit AND.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report 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     I expected mutiselect prompts to work different

Copyright © 1996-2020 Information Builders