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.
I am trying to get have a multi select field from a variable entry from user.
I will try to replicate this using the CAR file for this purpose.
The first part: I will get the value from user: In this case country is the variable field and then I will save MODEL in a HOLD file VALID_CODES
2nd part, I would like to allow the user to multi-select/choose from the already filtered Model list In my purpose, In my own project I will be using another file instead of the same CAR file but for this purpose I will use CAR file again.
my issue is that I can not get the 2nd step to work in my code. Does someone knows how to address this ?
APP PREPENDPATH IBISAMP SET ASNAMES = ON SET HOLDLIST = EXPLICIT
TABLE FILE CAR PRINT CAR.CARREC.MODEL WHERE COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).Country.; ON TABLE NOTOTAL ON TABLE HOLD AS VALID_CODES FORMAT ALPHA END
TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL -*WHERE COUNTRY IN FILE VALID_CODES WHERE MODEL EQ &MODEL.(OR(FIND MODEL IN VALID_CODES)).Sold To:.; ---> this line does not work in my code
ENDThis message has been edited. Last edited by: vnf,
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014
You have to put VALID_CODES in a re-usable directory. I suggest using FOCCACHE. When you do a hold, the file gets put in the temp-disk, and that will be cleaned up when the process ends. FOCCACHE is unique to the user, and it persists multiple report calls in the same session.
TABLE FILE CAR
PRINT
CAR.CARREC.MODEL
WHERE COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).Country.;
ON TABLE NOTOTAL
ON TABLE HOLD AS foccache/VALID_CODES FORMAT ALPHA
END
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
WebFOCUS 8.2.0.7, Application Studio, Webfocus Info-Assist iWay Service Manager, iWay Data Migrator Windows, All Outputs IBM DB2/400, MS SQL-Server 2014