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.
-HTMLFORM and -INCLUDE require an actual file name to be provided *before* parsing time in the MRE.
What you want to achieve (use dynamic form names via amper variables) can only be done in the Reporting Server -- MRE dialogue manager is a bit "less flexible" so to speak.
1. Move all your forms to the Reporting Server so -HTMLFORM &myform works ... not so simple, especially if they have internal references to MRE objects (domains, folders and .fex files)
2. If the list of possible .htm files is "manageable" you can add -HTMLFORM for each .htm file branching to the appropriate one depending on &_HTM_FORM. Somehitng like this:
-IF &L_HTM_FORM EQ 'testdoma/app/test_uat' THEN GOTO :FORM1;
-IF &L_HTM_FORM EQ 'testdoma/app/test_dev' THEN GOTO :FORM2;
-IF &L_HTM_FORM EQ 'testdoma/app/test_prd' THEN GOTO :FORM3;
-IF &L_HTM_FORM EQ 'otherdom/app/other_form' THEN GOTO :FORM4;
-*
-* ... more -IF's as needed
-*
-TYPE Form &L_HTM_FORM not recognized! Call Ram for support! :)
-EXIT
-*
-* Load form
-:FORM1
-HTMLFORM testdoma/app/test_uat
-GOTO :ENDFORM;
-:FORM2
-HTMLFORM testdoma/app/test_dev
-GOTO :ENDFORM;
-:FORM3
-HTMLFORM testdoma/app/test_prd
-GOTO :ENDFORM;
-:FORM4
-HTMLFORM otherdom/app/other_form
-GOTO :ENDFORM;
-*
-* ... more -HTMLFORM's as needed ...
-*
-:ENDFORM
-* ... Continue process ...
As you will end up creating a .htm file anyway for each new form reference you add to your database, it is just a matter of discipline to always adjust this routine and add the proper -IF/-HTMLFORM for it.
Not perfect, but I think it's easier to implement and maintain than option 1.
Thanks njsden. Option1 is tough to implement as you said, the html form stores domain, folder, subfolder names in it. But option2 is great idea. I can generate those IF else lines by writing small oracle PL/SQL package for all the forms as they were stored in a table. The other thread: on the Fly Fex pointing was also opened by my friend for the same purpose. Since it is not possible to pass a parameter in the self service app link to Fex, we are trying to create a pointer Fex and read the report_id paramter in the url and set prependpath and build html launch page and call it using HTMLFORM command. It is very simple, but the HTMLFORM restriction (can't parse amper variable) killed this simple solution.
Thank You Verymuch for your time and help. Really appreciated.
DD.
WebFocus 7.7.01 Desktop: Windows and Server: Unix Excel, HTML, PDF