Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] GLOBAL VARIABLE multiple pages

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] GLOBAL VARIABLE multiple pages
 Login/Join
 
Platinum Member
posted
Hi,
Here is what I am trying to do.

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.



Here are the 2 launch page.


-*launch_sls.fex
-SET &&PROFILE = 'SLS' ;
-HTMLFORM test.htm
-**

-****launch_mktg.fex
-SET &&PROFILE = 'MKTG' ;
-HTMLFORM test.htm
-****


Thanks

This message has been edited. Last edited by: BM,


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Master
posted Hide Post
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
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Platinum Member
posted Hide Post
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)...

Works like a charm Smiler

Thanks


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Master
posted Hide Post
Good One


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] GLOBAL VARIABLE multiple pages

Copyright © 1996-2020 Information Builders