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

 

**** Default selection not working in check box value prompt (11.1.7) ****

Started by Good Friend, 21 Aug 2024 06:05:46 PM

Previous topic - Next topic

Good Friend

Hello Friends,

I'm trying to ensure that a default value is pre-selected for a check box prompt from a list when the page loads. However, the default value is not being selected as expected, and if the user submits the report without making any changes, all values are being processed. I've attempted to use JavaScript to resolve this issue, but it hasn't worked. Any workaround would be greatly appreciated. Thank you.

cognostechie


Good Friend

I did setup a default option like 25 but when I run the report the prompt box is showing all the values instead of 25 being selected.

dougp

At the risk of repeating myself for the 7893707650710th time...

Please post a report spec using the samples data (GO Sales (query) package) that demonstrates the problem.  If you can't post it here, put it on pastebin and post the link here.

Good Friend

Sorry I'm not aware of it and we don't seem to maintain sample Go sales Packages.

I've attached an example of the checkbox prompt where the default value should be '04'. Even though I've set '04' as the default value in the properties, the checkbox appears unchecked when I run the prompt page. Can you please help me resolve this issue?

Good Friend

Quote from: dougp on 22 Aug 2024 03:58:01 PMAt the risk of repeating myself for the 7893707650710th time...

Please post a report spec using the samples data (GO Sales (query) package) that demonstrates the problem.  If you can't post it here, put it on pastebin and post the link here.
Replied back directly

cognostechie

Quote from: Good Friend on 22 Aug 2024 05:02:28 PMSorry I'm not aware of it and we don't seem to maintain sample Go sales Packages.

I've attached an example of the checkbox prompt where the default value should be '04'. Even though I've set '04' as the default value in the properties, the checkbox appears unchecked when I run the prompt page. Can you please help me resolve this issue?

You just have to type 04, not '04' in the 'Default Selections' property. Not sure what you mean by 'default value'.

Good Friend

Ofcourse I tried '04' and 04 but nothing worked. When I say default value I meant default selection.

cognostechie

It has always worked for me, maybe a bug in your version. Call IBM for support.

Good Friend


cognostechie

There is another property 'Static Choices'. Try putting 04 there. It should display 04 as the 1st choice in the prompt. Keep 04 in the Default Selection also.

Good Friend

Thank you. Seems to be a good workaround and it is showing as the 1st choice with that value selected but the value is repeating twice in that prompt. I can remove that duplicate value from the prompt which is coming later but users might be a little confused with the sorting and value coming on the top.