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 email@example.com for further assistance. Reference the community FAQ to learn more about the community.
That actually didn't do anything different for me.
Also, I don't want to hard-code all the possible values into the report. We add new values to the database relatively often, and we don't want to have to modify all the reports every time.
We came up with a Dialogue Manager solution that seems to get the job done. If the user's input is: 'ENGLAND, FRANCE' the DM code translates it to: '''ENGLAND'' OR ''FRANCE''' and the resulting WHERE clause is: WHERE COUNTRY EQ 'ENGLAND' OR 'FRANCE'
Is there a simpler way to do this than using a whole lot of Dialogue Manager?
Michael, Are you using Dev Studio, or manually coding your focexecs? Have you tried using the Resource Layout Painter tool? You can create dynamic multi-select drop down boxes using the tool, relatively easily. What happened when you ran the above code? Did you hold down CTRL to multi-select the countries?
Posts: 68 | Location: Springfield MA | Registered: May 07, 2003
Gerald: Again, I DON'T WANT TO HARD-CODE ANYTHING!
Nivas: Here's the DM code. I haven't tested it to make sure it's bullet-proof, but it seems to work quite well. You can do View Source to see the FOCUS code generated in the WHERE clause. NOTE: As you may have guessed, all the quotes below are 'single' quotes.
This may do what you want, it is quite similar to your code (I dont use -REPEAT as my version of 4.3.6 doesn't support it, and I haven't installed the new service pack).
The code prompts for &VALUES the total number of selections the user wants to input and uses that to create the selection criteria. The user is prompted for each selection one at a time, and so doesn't have to remember to put in commas or anything, and it doesn't mind spaces. Try it and see if its any good
-PROMPT &VALUES -RUN TABLE FILE CAR PRINT CAR BY COUNTRY -SET &COUNTER =0; WHERE COUNTRY IN ( -HERE1 -IF &COUNTER LT &VALUES GOTO 1 ELSE GOTO END1; -1 -PROMPT &TEST.&COUNTER '&TEST.&COUNTER' -SET &COUNTER=&COUNTER+1; -IF &COUNTER LE &VALUES GOTO HERE1; -END1 ) END
Posts: 123 | Location: UK | Registered: October 09, 2003
have you got a published html entry page for your users to enter their parms? if so, you could populate a drop down box, make it a multi select drop down box, and let the published page summon the drop down optionlist from a file, which you dynamically create every day (or however often your site changes). That's what i do. My "Published" html page (using the PUBLISH thing in MRE), i copy into another empty fex. Put a filedef at the top line of the fex (a filedef to the optionlist txt file i create), and then exec the rest of the html code with -HTMLFORM BEGIN [HTML] blah blah blah select box goes here, etc form calls focus servelt or whatever -HTMLFORM END.
Then erase my published page, because i dont run it as an html page anymore, i run it as a fex. I do this all over my mre sites. Let me now if this idea works for you
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003