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] test if the report is executed via reportcaster or in an other way

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] test if the report is executed via reportcaster or in an other way
 Login/Join
 
Virtuoso
posted
We have several reports that sometimes are executed from the dashboard by a user and sometimes (once a week) by reportcaster.

In the report we want to place a "signature" that holds "&MY_user" (and some other fields).

The challange now is that if we try to run it via reportcaster the value &MY_user gives us a problem, since it is not known in the reportcaster proces.

My idea now was to test if the process is executed by reportcaster I could jump over the &MY_user coding.
But how do I test that?

Is there a amper variable available that tests this?

Any other idea?

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




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
How about testing for the existence of the variable:

-SET &RUNTYPE = IF &MY_user.EXISTS EQ 0 THEN 'RC' ELSE 'DB';


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
I was thinking to complex

thx Francis




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
<FreSte>
posted
Or how about 'defaulting' &MY_user to an empty string.

-DEFAULT &MY_user = ''
 
Report This Post
Virtuoso
posted Hide Post
Check the values of variables &FOCFOCEXEC and &DSTJOBNAME when running a procedure interactively and in ReportCaster. We use one or both here to determine the origin of a job.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Virtuoso
posted Hide Post
Dan

the DSTJOBNAME idea sounds good
I think I will find a solution with these answers




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
<JJI>
posted
[quote]-DEFAULT &MY_user = ''quote]

Frank,
I had the same problem as you have. Only we run the reports directly from MRE and from RC. We check the last character of the domain name to determine the language for the report (N for Dutch F for French and E for English).

In every report that need to run both ways I put in this:


  -*###############################################################################################################
-*   ReportCaster -*
-*###############################################################################################################
-DEFAULT &RC_lang    = 'FOC_NONE';
-DEFAULT &RC_userID  = 'FOC_NONE';
-*
-SET &&LANGUAGE  = '&RC_lang.EVAL';
-SET &&SECUSER   = '&RC_userID.EVAL';
-*###############################################################################################################
-*  ReportCaster -*
-*###############################################################################################################


This way I don't need an extra copy of the report. In RC schedule I provide the values for these variables &RC_lang and &RC_userID.

I hope this helps you to decide what solution fits you best.
 
Report This Post
Platinum Member
posted Hide Post
How about this, that I got from Francis awhile ago.
 
-? &
-SET &WHO = IF &FOCFOCEXEC = 'RCASTER' THEN 'RCASTER' ELSE 'MRE';
-TYPE &WHO  

This message has been edited. Last edited by: Rick Man,


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report 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] test if the report is executed via reportcaster or in an other way

Copyright © 1996-2020 Information Builders