Page 1 of 1

List variable as query parameter - no selection by default

Posted: Tue Jan 16, 2018 4:09 pm
by poir0450
Hello,

I have a list variable as query parameter.
By default all the items are selected.
How can I set my variable to no selected item? I want that no item to be selected by default.

Thank you

Re: List variable as query parameter - no selection by defau

Posted: Tue Jan 16, 2018 10:58 pm
by Alex K.
Hello,

Please clarify which product and version are you use?

Thank you.

Re: List variable as query parameter - no selection by defau

Posted: Wed Jan 17, 2018 7:45 am
by poir0450
Hi,

Stimulsoft Designer version: 2017.2.2

Thank you

Re: List variable as query parameter - no selection by defau

Posted: Fri Jan 19, 2018 9:11 am
by Alex K.
Hello,

Unfortunately, there are no options for the List variable, only for value.

Thank you.

Re: List variable as query parameter - no selection by defau

Posted: Fri Jan 19, 2018 3:11 pm
by poir0450
Ok. Thanks for the answer. But maybe you can help me to "hack" it.
I've tried something like this:

on BeginRender event I set: pWorker = null, pWorker = '' .... without success unfortunately.

Or at least maybe there is a possibility to select by default only the first item/last item, or a specific item by an ID.

Another question: can I place the Select all checkbox on the top? Right now, this checkbox is situated on the bottom of the list (see the attachments of the first post).

Re: List variable as query parameter - no selection by defau

Posted: Sat Jan 20, 2018 11:59 am
by Alex K.
Hello,

> on BeginRender event I set: pWorker = null, pWorker = '' .... without success unfortunately.

It is not possible. It is limitations of List variables.

Please clarify which viewer, designer are you use?

Thank you.

Re: List variable as query parameter - no selection by defau

Posted: Mon Jan 22, 2018 8:09 am
by poir0450
Hi Alex,

My screenshots are from our asp.net mvc page. It's true, on Stimulsoft Designer the Select all checkbox is situated on the top, but on our page it is situated on the bottom. Please, see my first post attachments. What setting should I use in order to have this checkbox situated on top when the report is loaded/rendered on our page?

Also, are you thinking to include a new feature to have the possibility to set the default selection for a list variable in a near future? It would be very usefull for our project.

Thanks

Re: List variable as query parameter - no selection by defau

Posted: Mon Jan 22, 2018 3:57 pm
by HighAley
Hello.

Please, send a request to support@stimulsoft.com and we will try to do something for you.

Thank you.