Rank: Member
Groups: Registered
Joined: 4/7/2019(UTC) Posts: 24 Thanks: 7 times
|
Hello. We're using WS API to execute reports from our own web app. Is it possible to catch the values of the user reestrictions each time the report is executed? The goal is to be a able to get the values that the user configures in the reestrictions to save them as Favorite, for example. Is it possible to catch them using the API?
Thanks.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
No, this is not possible in the current version...sorry.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/7/2019(UTC) Posts: 24 Thanks: 7 times
|
Ok. Would it be possible to use Javascript to send this information to our server? May be it would be possible to catch these values and send them in json format or something similar, that a rest service is listening in our server. Is there any place where we can put this script? This has to be executed everytime the user executes the report and need to have vivibility of the reestrictions values. Thanks in advance.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Yes, it should be possible to do this, it requires specific JS to be set in the root report View, plus service on your server...
The other option is to add a new API to be called by your server after a report execution to get the last restrictions enter by your user...
Both options requires specific developments and tests...
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/7/2019(UTC) Posts: 24 Thanks: 7 times
|
Thanks! If we choose the first option, which is the script we should use? In the root view there is only the "Init Script", but it seems to be executed in the initialization of the report. I guess we need to execute the script each time the report is executed, is not?
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
should be probably done in function executeReport(nav) of common.js...
or you could add a handler on the button: $("#execute_button").click(function () {
|
|
|
|
Rank: Member
Groups: Registered
Joined: 4/7/2019(UTC) Posts: 24 Thanks: 7 times
|
Yes! Thanks. How could we access to reestrictions values? Which is the right object? Once we had it, we'll share it with you if you want to incorporate it to the solution.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Thank you but this requirement is quite specific to be integrated in the standard product... You have to modify this on your own, note that you can get specific consulting through Ariacom. Good luck.
|
1 user thanked epf for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.