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.
Scenario: Need to run a fex before any other item runs within a specific domain under Domains/Content node. So, for instance, user A wants to run a report under a Sales domain. They hit Run on the report, but a fex we set up runs before it does every time specific to the domain this report sits in.
I've been browsing the forums, etc. and am seeing that something could be done via the site.wfs file to set this type of behavior up. Not sure where to find documentation on syntax for writing conditionals, etc. therein. Anyone find docs on this file? It's known to GUI peeps as Custom Settings within the Admin Console.
Thanks for any help!This message has been edited. Last edited by: CoolGuy,
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
If you need to do this for specific domains only, you will need to add parameters that are passed to the fex executed by site.wfs - "Managed Reporting Internal Variables"...
In the days before WebFOCUS 8, each domain had a profile fex - executed each time a fex ran from the domain. I don't know if this still exists in WF 8.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Thanks for pointing me to what IBI does have documentation-wise for end users. I do have a handful of MR Internal Variables set up in the site.wfs file. I guess we could manually add conditionals inside our report procedures to check what IBIMR_folder the report is being ran from and cause other code to run based on that. I was hoping we didn't have to add code to all content created from within a specific domain every time we create something; and that it would just be an automatic thing that happens for everything ran therein.
I found a thread that showcased code with conditional statements used within site.wfs as seen below:
I'm hoping there's a mix of WFS Commands and WF Client variables that will allow us to conditionally run specific custom site.wfs files of code based on domain up front.
Thanks again!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
I was hoping we didn't have to add code to all content created from within a specific domain every time we create something
I'm not sure what you mean by that. With the MRE parameters activated, they would be available to the site.wfs fex - you wouldn't have to add code anywhere else. This *also* goes for the profile.fex method - if it still exists. (I am in a v7.7.05 world so I've blanked out on newer environments).This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Maybe I wasn't seeing things clearly as of yet. Still looking into things. May think there's more to it that there is as of yet. Trying to clear the cobwebs. haha Thanks Francis!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
We used to use the _site_profile setting whereby a designated fex (in baseapp on the reporting server) is run every time someone hits the "run" button. We checked for what domain the report was in by checking the value of IBIMR_domain (it may be IBIMR_folder now, as you've mentioned). If something was being run out of a specific domain we set some variables, otherwise, -EXIT. Look for _site_profile in the Security manual. I haven’t tried this in version 8 as we have no need for it any longer.
Managed Reporting Internal Variables There are several variables related to Managed Reporting processing that you can pass to the Reporting Server. This may be useful for controlling processing flow or for display purposes in the report output. You can do this by configuring the variable (pass) commands in the Administration Console. Useful variables include:
- IBIMR_folder. The folder where the processed report is stored. - IBIMR_fullpath. The complete path for a procedure, including file name and extension. - IBIMR_user. The user ID processing the report request. - IBIMR_domain. The domain HREF where the report being processed is stored. - MR_FULL_FEXNAME. The description given to the report by the developer. This description is visible to users. When the report is run from the text editor or InfoAssist+, the variable is not populated. - MR_ITEM_HANDLE. The file name (also known as the IBFS name) assigned to the report when it was created. When the report is run from the text editor or the Report canvas in App Studio, the variable is set to ADHOCRQ.
Thank you for your post. I have had those items added into my Custom Settings already, and we've used them for several years now. The part I'm missing a beat on is where/what syntax I can use within the site.wfs/Custom Settings file/area. Are you saying I can paste in Dialog Manager lines right into the Custom Settings area? If that's the case, then that would solve my issue I think. I though only WF Script Commands were allowed therein. Doesn't specify too well in the Sec. & Admin Manual what is allowed from what I've read over. Our IBI tech rep said that everything you guys are talking about existing before 8.0 still exists in 8.0+. May need to get with him again soon to clarify things and get some additional help. Thanks though!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015
We set up _site_profile to run a fex called primetime.fex (located in baseapp). If the domain is ‘sales’ and it’s not Saturday or Sunday and if it’s between the hours of 7:00 am and 6:00 pm, set PASS to what we needed (this example was used for setting DBA Security). I don’t know what version 8 will spit out for IBIMR_domain values but sales/sales.htm is what it looked like in version 7.
Thank you for chiming in and for your example code. After digging around a bit more I figured things out a bit better. This is very helpful. Thank you!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
Posts: 1113 | Location: USA | Registered: January 27, 2015