Focal Point
[CLOSED] ReportCaster - Dynamic Parameter values

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8957087096

September 19, 2018, 03:02 PM
Siva1925
[CLOSED] ReportCaster - Dynamic Parameter values
Hi,
I have a requirement such that the procedure in the report caster should run using different adapters for which i have a connection parameter.We have external ESP jobs that invoke the Report Caster schedule to run this procedure.How to pass values to the connection parameters in the procedure during run time in Report Caster.

WF8105M
Windows 10

This message has been edited. Last edited by: FP Mod Chuck,
September 19, 2018, 04:05 PM
BabakNYC
I haven't tried this but I should think you can parameterize the CONNECTION ATTRIBUTES for the adapter.

https://webfocusinfocenter.inf...source/ms_sql295.htm


WebFOCUS 8206, Unix, Windows
September 20, 2018, 07:01 AM
Bob H
I had done this years ago. The CONNECTION information can be held in a fex instead of just the default edasprof.prf. You can then assign & variables to anything. This should be done prior to TABLE request obviously. I did this in my case because the password for the adapter had to be looked up and not coded so I had to call an external routine to get password then substitute in CONNECTION string.


8.1 Windows PDF
September 20, 2018, 12:03 PM
Siva1925
Hi,
Currently there are connection parameter in the procedures.we are doing a RESTful call to run the ReportCaster Schedule using ESP.They are passing the parameters with the RESTful call but the job fails.Is this because the procedure cannot recognize the parameter from the URL?

WF8105M
windows 10
September 20, 2018, 12:09 PM
BabakNYC
What are the errors in the ReportCaster logs? -SET &ECHO=ALL so you can look at the way & variables are being resolved.


WebFOCUS 8206, Unix, Windows
September 20, 2018, 12:23 PM
Siva1925
ERROR :
FOC305 SPECIFIED LABEL NOT FOUND:&CONNECTION_NAME
September 21, 2018, 01:33 PM
FP Mod Chuck
Siva

This error sounds like you have a -GOTO for a label that doesn't exist. Post your code so we can debug this easier.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
September 25, 2018, 11:19 AM
Siva1925
Unfortunately i cannot post the code.
The report runs successfully when parameters are specified in the URL.

In the external java code to run the schedule they are executing the .sch file.
How can i pass the parameter to the sch file.
can i pass it in the URL itself
will that work?
September 25, 2018, 11:46 AM
FP Mod Chuck
Siva

What URL are you using? Is it a WebFOCUS RestFul Web Service call?

You can set them in the actual schedule itself under the task there is a parameters button that allows you to set them there. But I know that is not dynamic.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
September 25, 2018, 12:38 PM
Siva1925
I am getting a error
FOC304 LABEL INCORRECTLY SPECIFIED: -GOTO


webFOCUS 8206
Windows 10
September 25, 2018, 12:42 PM
Siva1925
If I Specify the parameters in the ReportCaster Parameters window.It works fine


webFOCUS 8206
Windows 10
September 25, 2018, 02:32 PM
Siva1925
The URL we are using is simlar to the one below.

[URL=http://localhost:8080/ibi_apps/rs/ibfs/WFC/Repository/RESTful_Web_Services/ Car_Reports/REST_Schedule.schIBIRS_action=run[/URL]

will it work if i pass the parameters with this url like
[URL=http://localhost:8080/ibi_apps/rs/ibfs/WFC/Repository/RESTful_Web_Services/ Car_Reports/REST_Schedule.schIBIRS_action=run&CONNECTION_NAME=DB5[/URL]
September 25, 2018, 04:32 PM
FP Mod Chuck
Siva

Not sure but it wont hurt to try it.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
October 17, 2018, 01:08 PM
Siva1925
Hi Chuck,
This didn't work.
Have anybody passed parameters to the schedule through RestFUL web service call.