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 have a self-service report here for which some code should not be executed when it gets called by ReportCaster.
Is there some way to identify that RC is calling the fex as opposed to a normal user?
We could add an execution parameter in the RC schedule, but that's prone to forgetting to do so. I'm looking for a reliable way to detect that RC is executing the current fex.This message has been edited. Last edited by: Kerry,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
That is exactly what I was referring to in the 3rd paragraph. That does work, but it's too easy to forget to apply such parameters after deploying a report to a different server with a different RC environment.
I was kind of hoping that RC would be running from an environment where some parameters could be set to distinguish between those modes of operation.
I'm starting to think that we may be able to set a global variable in a "User Profile", provided we can figure out as which user RC is running and provided that the user profile does get applied from RC.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
How do we determine whether a report is running in interactive mode or not?
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Originally posted by H Lidholm: Running interactively, you get the name of your procedure in that variable, otherwise you can make a negative test, i.e. NE 'RCASTER'
Sorry, I hadn't seen your reply yet when I realised how to rephrase my question. That's a useful answer, thanks!
quote:
You'll still have to remember to write somekind of condition to SKIPCODE or not. Could be an -INCLUDE. But still something to remember.
Lucky for us, the code that we need to skip is already part of a conditional -INCLUDE.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
If running a fex via RC, you can refer to variables &DSTOWNER and &DSTEDAUSER which are set and thus indicate that the fex is running via RC and not MRE.
_______________________ *** WebFOCUS 8.1.05M ***
Posts: 196 | Location: London, UK | Registered: December 06, 2005