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
MrMiles  
#1 Posted : Wednesday, February 7, 2018 9:42:23 PM(UTC)
MrMiles

Rank: Newbie

Groups: Registered
Joined: 12/20/2017(UTC)
Posts: 7
United States
Location: Indiana

Thanks: 2 times
I am trying to pass a parameter into my report to limit the data returned. I would like to pass it in from my application but not prompt the user since I don't want it to be changed.

Here are the restriction settings from the report designer:

Name: property_name
Operator: Value Only
Prompt restriction: No prompt
Is required: True

Operator Label: =

Use as parameter: True



From my application form that I use to call the report:

<input type="hidden" name="r0_name" value="property_name" />
<input type="hidden" name="r0_operator" value="Equal" />
<input type="hidden" name="r0_value_1" value="Property Value" />


Is there a way to pass in the parameter and have it restrict the data without prompting?

epf  
#2 Posted : Friday, February 9, 2018 6:43:49 AM(UTC)
epf

Rank: Administration

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

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
I think it is not possible to change the restriction not prompted from the Web interface...at least for security reason.
Could be a feature request: Add a flag on the restriction or on the report to allow value overwrite.

You may try to play with the Init Script of the report (but I am not sure it will work):
Set your restriction as To be Prompted, and in the Init Script,change it to not prompted...may be it will work.

To edit the Init Script: Click on the root 'Views' node in the tree view and edit the related property.
thanks 1 user thanked epf for this useful post.
MrMiles on 2/12/2018(UTC)
Users browsing this topic
Guest
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.