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 set up a launch page where the user selects one of a list of reports to run (from a dropdown). The selection will affect the display of filters, to correspond to the report currently selected.
On submit, I want the page to call the selected fex directly (rather than calling a manager fex that will branch to the respective -INCLUDE). Is there support for dynamically altering the fex to be called on Submit? How does one accomplish that?This message has been edited. Last edited by: <Emily McAllister>,
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
If the report fex files are in Repository, you are restricted to static -INCLUDE references (as some FocalPointers have discovered the hard way), since WF Client has to locate the -INCLUDE references in a static analysis of the code, and ship them (in EX -LINES form) as part of the script submitted to WFRS. So if there are 10 reports in the repertoire of the "manager" fex, all 10 report fexes (and any secondary -INCLUDES as well) have to be processed by Client even though only one will be executed.
That's why I felt it may be worthwhile to complexify the HTML a bit so as to avoid that run-time overhead, if response time is crucial.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Depending on the number of FEXs in your dropdown you should be able to create separate Requests/Tasks in App Studio and then code the submit button to call the correct task based on the report selected.
I used to do this in Javascript and DOM in 77, but the layout changed with App Studio HTML composer - and you can't see the HTML as easily
WebFOCUS 8.2.03 (8.2.06 in testing)
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007
You can set up a combo box where values are procedures(that is on the settings tab or properties of the combobox). Then you can chain the first combobox to a second. In the chaining properties it will allow you to conditionally set the procedure based on the value of the first combobox. If you cannot figure it out, I think I can walk you through it but send me a private post and we can talk. I do not have remote assist tools anymore. Not working for IB anymore.
In 8.0.09 at least this process has become easier.
Here is a quick step by step
0. Create the procedures you wish to use on the form 1. Create a frame to put the report output into - I created one using the FEX with the largest number of parameters and let App Studio create the parameter controls for me. 2. Create a combobox or dropdown control to hold the list of the procedures 3. Open the "settings" for the combobox and check the "Values are procedure names" checkbox 4. Add the procedures you wish to list into the combobox using the "New" option and browser 5. Open the "Tasks & Animations" pane and select the task that is associated to your submit button and delete the current request - report1 for me cause I added the parameters the lazy way 6. Add a new request using the "Run Procedures From Control" option and select the combobox/dropdown holding your procedure names 7. As a sanity check open the "Requests & Data Sources" panel and make sure that all your parameters are showing for the procedures you added in step 3.
Run the HTML page and you should be able to choose the procedure to run and parameters will be passed with on JS coding needed.
Hope this helps.
Stu
WebFOCUS 8.2.03 (8.2.06 in testing)
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007
Only issue I encountered was, the HTML editor threw an error msg (Unable to open synonym...) for each of the target fexes in turn as I was adding them to the combobox -- obviously unaware of the app path I need. What should we have done to avoid that wrinkle?
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
You may have to create the HTM page in the application folder that you have the procedures. There is a way to manually add the application folder name in the HTM file. Look for ibiapps_app (? spelling maybe wrong) and just add the application folder there but IB does not want you to manually modify the code in a text editor and as David says "Bad things may happen" so if you do edit the file back it up first then try it.
I've pretty much stopped using app folders now that the security model in WF8 give me such granular control over who can access and run reports in the "Content" section.
I assume that the app folders are in your APP_PATH, but then it just might be an "undocumented feature" of App Studio
WebFOCUS 8.2.03 (8.2.06 in testing)
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007