I have 1 HTML page (test.htm) with a 2 dropdowns (chained). The dataset of the dropdown are dependent on the value of the &&PROFILE which I set in the launch procedure. I launch the HTML either using launch_sls.fex (for sales) or launch_mktg.fex(for marketing) procedures.
Based on user profile either they use "launch_sls.fex" or "launch_mktg.fex". But we have some users who have access 2 both profiles (sales and marketing).
Whats happening now is that when the user with dual profile launches "launch_sls.fex" the html page and the dropdown loads perfectly. But, if they open a "New tab" and launch "launch_mktg.fex" , the global variable &&PROFILE gets overwirtten with 'MKTG' and the tab 1 with "launch_sls.fex" gets affected because the values on the dropdown are dependent on the &&PROFILE. Is there a way to "preserve" the value of the global variable &&PROFILE within each HTML instance?
The reason why I am using Global Variable is because MFD_PROFILE checks the value of the &&PROFILE and applies the dba rules which then loads the dataset of the dropdown.
ThanksThis message has been edited. Last edited by: BM,
WebFOCUS 8202M
April 26, 2017, 02:14 AM
Dave
Well yeah,
I though about this solution for some of our 'problems'.
But exactly this scenario stopped me before trying to implement it.
A user can have multiple browsers within one session. You're doomed!
Only real solution is to pass a parameter, just like drills. The only way to identify which profile the user is in.
Other solution on top of mind:
make 2 html pages. One for each profile.
in the HTML add a hidden inputbox with either 'SLS' or 'MKTG' as value and pass that ( like chaining ) to the dropdown(s).
Good luck
_____________________ WF: 8.0.0.9 > going 8.2.0.5
April 26, 2017, 08:09 AM
BM
quote:
Originally posted by Dave: Well yeah,
I though about this solution for some of our 'problems'.
But exactly this scenario stopped me before trying to implement it.
A user can have multiple browsers within one session. You're doomed!
Only real solution is to pass a parameter, just like drills. The only way to identify which profile the user is in.
Other solution on top of mind:
make 2 html pages. One for each profile.
in the HTML add a hidden inputbox with either 'SLS' or 'MKTG' as value and pass that ( like chaining ) to the dropdown(s).
Good luck
Thanks .. how would I pass a parameter, just like drills to the dataset of the dropdown. because thats what giving me the issue.
I can definitley create 2 HTMLs but thats what I am trying to avoid.
WebFOCUS 8202M
April 27, 2017, 12:42 AM
BM
Finally figured it out. Create a single Input box, populate it with the value of the global variable and passed that to the dropdowns(like chaining)...