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 very new to WebFOCUS and have only been programming in FOCUS for about 4 months.
Yesterday, I learned how to create an amper variable prompt on the launch screen and to change the prompt text box to a combo box. I work for a college and most of our queries depend on a semester variable. So, in 2013 we will have the following semesters: 20132, 20134, 20136. This 2, 4, 6 repeats every year. I need to populate the row source of my combo box with every term from 1999 to 2013. The only way I know to do it is literally type the semesters inside the parenthesis as such:
-PROMPT &TERMCYT.(19992,19994,19996,20002,20004,20006,20012,20014,20016,20022,20024,20026,20032,20034,20036,20042,20044,20046,20052,20054,20056,20062,20064,20066,20072,20074,20076,20082,20084,20086,20092,20094,20096,20102,20104,20106,20112,20114,20116,20122,20124,20126,20132).Enter year & term.
Is there any way I can create some sort of loop that will populate the rows?This message has been edited. Last edited by: Kerry,
Dev. Studio 7.6.11 Win 7
Posts: 21 | Location: Oklahoma | Registered: November 01, 2012
If you have the semesters in a database in whatever format you can use that as the source of your select box. That database can in fact also be a small text file with all the values in it. That file is something you can create yourself, dynamical, each month, year or semester.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Sam, You can code a dynamic list of values the following way:
-PROMPT &VPSELCT.(FIND RPTVP IN VPDROPF).Please Select VP. );
This will require a table called VPDROPF with a field called RPTVP that can be referenced. You cannot do an ORDER BY, WHERE, DISTINCT, JOIN or concatenate values -- it is what it is.
That said, we use it in conjunction with another timed job in ReportCaster that does all that on the front-end. Our RC job loads this look up table.
Thank you. These are great suggestions. Unfortunately, we work under pretty strict restrictions, connecting to a remote server. We are not allowed to create permanent tables.
This data is available in existing tables, however. I wonder whether I could simply launch a table read at the beginning of the program and hold the list with a PCHOLD? I am not sure how to pass a PCHOLD to the PROMPT command, though.
Dev. Studio 7.6.11 Win 7
Posts: 21 | Location: Oklahoma | Registered: November 01, 2012
This need not be a permanent table. It can be the result of "ON TABLE HOLD AS VPDROPF..." which is available for your session and can be used in ABT's "-PROMPT &VPSELCT.(FIND RPTVP IN VPDROPF).Please Select VP. );" statement.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
If you do a PCHOLD on that table with semester info you should say PCHOLD format XML This little program can be used in an HTML application and used in on of the drop down boxes.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Sam_R, What Frank is mentions is exactly what we do.
-* File xml_term.fex
TABLE FILE TERM_DIM
BY LOWEST TERM_DIM.TERM_DIM.TERM_CODE
BY LOWEST TERM_DIM.TERM_DIM.TERM_DESC
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
END
If you wan to get fancy I have a .fex that also limits the number of terms returned:
TABLE FILE TERM_DIM
-*WHERE RECORDLIMIT EQ 10
PRINT
TERM_DIM.TERM_DIM.TERM_DESC
BY HIGHEST TERM_DIM.TERM_DIM.TERM_CODE
WHERE RECORDLIMIT EQ &RL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
END
I have a radio button that sets the variable &RL to 10 by default on the HTML launch page. The other choice is 'All' which is set to 99. For us, a Community College 10 records is three years and works well for a report that doesn't really need historical information.
We also have reports that do the same thing for Departments and Subjects with in each College. This is especially helpful with multiple people writing reports. We don't duplicate effort and the deployment is much easier.
~david
WebFOCUS 8.0.05 Windows- Excel, PDF
Posts: 21 | Location: Crystal City, VA & Kalamazoo, MI | Registered: October 11, 2010