If you are unable to create a new account, please email support@bspsoftware.com

 

Programmatically set date prompt parameters with default values !?!?!?!?!?

Started by ktharrington, 07 Dec 2012 11:51:26 AM

Previous topic - Next topic

ktharrington

Can someone give me a method for programmatically setting date prompt parameters for first day of current year and last day of current year I have Java script that displays the values in the prompts when the report loads initially but I have not been able to come up with a method to programmatically set the pStartDate and pEndDate values so the data in the dashboads will reflect what the default prompt displays are.

Currently, I have the report properties set to store these parameter values but would like to be able to set them programmatically so I do not have to manually reset the values when the we roll into a new calendar year.

One other question. Can someone tell me how I can retain the display in the date prompts after a user selects their own custom values. Currently, what happens is the user can select the custom date range and click the finish button. The report re-renders and the data reflects the user's selected date range but the date range displayed in the prompt goes back to the default set by the Javascript used to prepopulate the prompt values when the report loads (Jan 1, <CURRENT YEAR> and Dec 31, <CURRENT YEAR>).

Any ideas would be greatly appreciated.