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 would like to be able to pass an input file variable to a procedure. Example: The first line of a procedure is: TABLE FILE ENCOUNTER_FY07_MDENT
I would like to replace the year portion of the file name with a variable, such as: TABLE FILE ENCOUNTER_&year_MDENT
I would like to be able to pass the value for that variable from a drop-down list that would have values such as: FY07,FY08,CY07,CY08...etc.
For this specific application all of the &year varable choices will be the same for all procedures. Because of this, I would like to keep the values for the &year variable in one file to facilitate maintenance. That one file would be used as input to the drop-down list for any procedures that allow a choice of year.
From reading the documentation, the forums, and taking a few classes, it seems that the best way is to use the HTML Layout Painter to populate the drop-down list with values that could be passed to the procedure (.fex).
I have not been able to figure out exactly how to do that yet, and was hoping someone could supply me with some specifics about the code and techniques that would be required to accomplish this task.
Thank you very much.This message has been edited. Last edited by: JohnM,
Using an editor, create a file on your platform somewhere in ibi\apps and type in all of the values for &YEAR. Create a master for this flat file and put a DATASET parameter in it to point to the physical file. Make sure that the file is accessible via the global path in edasprof or is in the application path or you will have to mess with the html IBIAPP_app variable.
Now in the HTML Painter, for the control for the year variable, point to this file. As my boss would say, eazy-schmeazy.
Pardon me but I am still new at this. Why do I create a master file for this flat file? Does that support it's use in the HTML painter to populate the drop-down list?
Yes, absolutely. It would be a very simple one, 3-4 lines, one field. You then reference that master with the DATASET parameter pointing to the physical file in the HTML Layout Painter.
Remember, in order to get the data in the file, a query is generated against the file/master under the covers when your page is run.