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 building HTML Launch pages in the MRE. The row level security is being based on the &IBIMR_user variable.
In order to provide the ability to send the report request to the Report Caster using the generic "Schedule" button, I need to find a way to send this value to the Report Caster. One possibility is to use a hidden input box, but how can I populate it with the corect value? Having the value appear in a "View Source" is not a limitation due to other aspects of the security system.
Is there perhaps a function in one of the many javascript includes that ride along with pages created in the HTML composer that would accomplish this?This message has been edited. Last edited by: Kerry,
Robert F. Bowley Jr. Owner TaRa Solutions, LLC
In WebFOCUS since 2001
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005
Couldn't you have a hidden control in the form linked to a Parameter settings it's value to !IBI.AMP.IBIMR_user; ?
The "Schedule" button passes all Parameters defined in the form when creating the schedule in RC so in theory, your hidden parameter would be sent to Caster along with whatever value &IBIMr_user has.
Too simplistic or did I misunderstand your requirement?
Well, I don't but I tried to make up something quick. I don't have access to MRE in my local env. so the "schedule" button is not in the form ... but the concept is the same.
1. car_user.fex The actual report expecting &USERID as a parameter
-DEFAULT &USERID='guest';
TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
ON TABLE SUBHEAD
"Hello <+0>&USERID"
WHERE CAR.ORIGIN.COUNTRY EQ '&COUNTRY.(FIND CAR.ORIGIN.COUNTRY,CAR.ORIGIN.COUNTRY IN car).COUNTRY.';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
END
2. run_car_user.htm HTML launch page. Upon referencing car_user.fex in HTMl composer, 2 controls were created: USERID (hidden) and COUNTRY (drop-down).
In the parameter's tab, I selected the control for &USERID parameter (inputhidden1 in this case), right-click > "properties and settings" and set its "Selected Value" as !IBI.AMP.IBIMR_user; that's it. when the "Run" button (or 'Run Deferred' or 'Schedule') is hit a request is created to run car_user.fex passing &USERID and &COUNTRY to it.
I assume that &IBIMR_user is set to (pass) from the WebFOCUS Client in your environment but to be safe, here's a stub procedure to -DEFAULT that variable to something before loading the HTML page.
You would start the process from 3) which will load 2) and finally executes 1) ... sorry, I put the code backwards but that's the order in which I created them so ...
remember that ReportCaster doesn't understand &IBIMR_User (I think it is DSTEDAUSER in ReportCasterville). In any event, schedule a job with a task containing ?& and you'll see what's available.
Simply passing values will work as you've both noted.