logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
j.torres@tewis.com  
#1 Posted : Tuesday, May 28, 2019 11:16:41 PM(UTC)
j.torres@tewis.com

Rank: Member

Groups: Registered
Joined: 4/7/2019(UTC)
Posts: 24
Man
Spain

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.
epf  
#2 Posted : Wednesday, May 29, 2019 5:26:27 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 205 time(s) in 198 post(s)
No, this is not possible in the current version...sorry.
j.torres@tewis.com  
#3 Posted : Wednesday, May 29, 2019 6:49:56 AM(UTC)
j.torres@tewis.com

Rank: Member

Groups: Registered
Joined: 4/7/2019(UTC)
Posts: 24
Man
Spain

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.
epf  
#4 Posted : Wednesday, May 29, 2019 7:51:34 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 205 time(s) in 198 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...

j.torres@tewis.com  
#5 Posted : Wednesday, May 29, 2019 8:30:04 AM(UTC)
j.torres@tewis.com

Rank: Member

Groups: Registered
Joined: 4/7/2019(UTC)
Posts: 24
Man
Spain

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?
epf  
#6 Posted : Wednesday, May 29, 2019 9:00:44 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 205 time(s) in 198 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 () {
j.torres@tewis.com  
#7 Posted : Wednesday, May 29, 2019 9:16:40 AM(UTC)
j.torres@tewis.com

Rank: Member

Groups: Registered
Joined: 4/7/2019(UTC)
Posts: 24
Man
Spain

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.
epf  
#8 Posted : Wednesday, May 29, 2019 10:06:44 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 205 time(s) in 198 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.
thanks 1 user thanked epf for this useful post.
j.torres@tewis.com on 5/29/2019(UTC)
Users browsing this topic
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.