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.
Is there a way to initialize a variable, or several variables, when a specific portal is initially opened?
This needed to be done prior to the execution of any fexes, preferable in the background, and cannot be a procedures in the first / leftmost tab because we cannot guarantee what tab will open first (due to user customization).
Thanks in advance, DougThis message has been edited. Last edited by: <Kathryn Henning>,
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Search in this forum for IbComposer_getAllAmpersValues. There are several other functions like this one that may be of use which can be found in this doc: "Using JavaScript Code With HTML Composer Pages"
Greg
current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11
Unfortunately, it's not universal so the "universal_profile" would work.
And the variables are not set before the portal is accessed, thus the "IbComposer_getAllAmpersValues" isn't an option.
What I'm looking for is a "profile", or a procedure, which is executed when a portal is accessed and never again during that portal session. My initial thought was to execute a hidden, or not, procedure in the first tab only. However, there's no guarantee that the original first tab will always be their first tab if the user customizes the portal.
This may be one for the Expert Room at Summit.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I worked on a system that used site.prf (I think) to kickoff several focexecs each time the user started a new process, as I remember. If this is along the lines you are thinking then I can do more research into what was actually done. I maintained but did not write this so it will take a little reconstruction.
Greg
current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11
Why wouldn't a site or universal profile work exactly?
Well, The variables that I need are specific to this one portal. If I use a "universal profile", it may "step on" variables used in other portals which may be using differently. Such as: Portal One may use &BegDate as a "Fiscal Year" begin date while Portal Two may use &BegDate as a "Calendar Year" begin date, or even the current date, or any of many other situations.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I'm working on an app that utilizes (currently) an HTML form with drop-downs that is placed on the left banner (could very well be page-specific) of our portal. The drop-downs are populated by separate external procedures that create an XML list of values that are valid based on the user's (that's logged in) store list filters stored in MS Active Directory. We have a user_filter.fex that pulls the store list assigned to the user logged in (via &IBIMR_user) and creates a user-specific filter file (.foc/.mas) for them if not already present, or merely ensures proper store list data is accessible to the given user. The user store list is then used in another .fex that populates another .foc/.mas file with those stores' values. The filters for the form look like the following:
-INCLUDE IBFS:/WFC/Repository/.../user_filter.fex
DEFINE FILE [filename]
ACCNO/I5=DSACCTNO;
DSACCTNAME/A40=EDIT(ACCNO)|'-'|DSNAME;
END
TABLE FILE [filename]
SUM
MAX.DSACCTNAME
BY DSACCTNO
WHERE (FISCALYEAR EQ '&FISCALYEAR');
WHERE (FISCALWEEKOFYEAR EQ &FISCALWEEKOFYEAR);
WHERE (DSDIVISION EQ &DSDIVISION);
WHERE (DSDISTRICT EQ &DSDISTRICT);
WHERE (DSBANNERGL EQ &DSBANNERGL);
WHERE (DSACCTNO NE 0);
ON TABLE HOLD
END
-RUN
TABLE FILE HOLD
BY DSACCTNO
BY DSACCTNAME
ON TABLE PCHOLD FORMAT XML
END
-RUN
So, when a user logs in to see their portal with the pages assigned to the user group he/she belongs to, they will see that form in the left banner having been populated by the above code specific to each control. Then when the user makes his/her selections and hits submit, the selections are then passed to the BIP which in turn passes the selections to all other content. One piece of content being a hidden .fex that captures the selections and then stores them in the &IBIMR_user .foc/.mas file for later use.
Is this the kind of thing you are looking for?
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015