Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Set Parameter default value as first value of data set
PrinceBabel
<p>Hi Team,</p>
<p> </p>
<p>How can we set parameter default value with data set first row value.</p>
<p> </p>
<p>PFA sample report.</p>
<p> </p>
<p>Default value of a parameter should be first value od data set.</p>
Find more posts tagged with
Comments
Matthew L.
<p>By default, a Listbox Parameter that is not sorted should return a list in the order it was received from the database query.</p>
<p>Also by default, a listbox parameter should be populated with the first value returned as the default value.</p>
<p>See attached modified example</p>
PrinceBabel
<p>Thanks for reply!</p>
<p>But in my case parameter is hidden, so when you run report it will show error (Required Parameter is blank) and I cannot make "Is Required" option as False because I want the report to generate data with first customer number and thereafter user can change value from dropdown and select another customer number.</p>
<p> </p>
<p>Is there any thing that we can do under "getDefaultValueList" function of Parameter..like default value of parameter should be first/top row of data set.</p>
<p> </p>
<p>Or anything that we can do under beforeFactory() function.</p>
<p> </p>
<p>Or declaring a variable and initialize that variable as first row of data set and set it back to parameter default value?</p>
<p> </p>
<p>Can anyone have any idea how to achieve this??</p>
Matthew L.
<p>If you make the parameter hidden, then how are you allowing the user to select a value from a dropdown box?</p>
<p> </p>
<p>Also you could set the default parameter by slightly modifying the following example to return the first value in the array[0] rather than the whole array: <a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/topic/35994-update-default-values-in-the-parameter-which-is-based-on-a-dynamic-dataset/?p=133402'>http://developer.actuate.com/community/forum/index.php?/topic/35994-update-default-values-in-the-parameter-which-is-based-on-a-dynamic-dataset/?p=133402</a></p>
;