[SOLVED] test if the report is executed via reportcaster or in an other way
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
July 12, 2011, 03:20 PM
Francis Mariani
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
July 12, 2011, 03:27 PM
FrankDutch
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
July 12, 2011, 03:28 PM
<FreSte>
Or how about 'defaulting' &MY_user to an empty string.
-DEFAULT &MY_user = ''
July 12, 2011, 03:30 PM
Dan Satchell
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
July 12, 2011, 04:01 PM
FrankDutch
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
July 14, 2011, 07:18 AM
<JJI>
[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: