Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Hide parameter through script
pcsquirrel
Hello,
I want to hide a parameter from a scripted reportevent.
I tried the following code in the Report Initialization event:
reportContext.getDesignHandle().findParameter('param1').setHidden(true);
But it seems, that this event is executed after displaying the parameter page in the webviewer. so i moved the code to the BeforeOpen Event of my Data Source. Param1 is bound to a dataset and so the Data Source event is executed before the Parameterpadge is displayed but the parameter selectionbox is still visible.
Any ideas?
kind regards
p.c.squirrel
Find more posts tagged with
Comments
bhanley
What are you trying to obscure the parameter from? The user? There is a property when you define the parameter itself where you can flag it as hidden (see thumbnail). This will make the parameter "invisible" to the user and it will not be placed on the parameter request screen. This mode allows application-level parameters to be passed to a report without the user being aware.
Does this do what you need?