Programmatically select combo box

Stimulsoft Reports.JS discussion
Post Reply
kryton
Posts: 5
Joined: Wed Dec 15, 2021 4:56 pm

Programmatically select combo box

Post by kryton »

Is it possible to programmaically set what is selected in a combo box?

Say I have a combo like this
screen1.JPG
screen1.JPG (32.14 KiB) Viewed 616 times

and I want to select only this one option
screen2.JPG
screen2.JPG (15.54 KiB) Viewed 616 times

I have tried this setVariable method but it doesn't work
screen3.JPG
screen3.JPG (10.58 KiB) Viewed 616 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Programmatically select combo box

Post by Lech Kulikowski »

Hello,

You can set it directly in the variable.

Thank you.
Attachments
Screenshot 2022-03-04 091227.jpg
Screenshot 2022-03-04 091227.jpg (226.68 KiB) Viewed 549 times
kryton
Posts: 5
Joined: Wed Dec 15, 2021 4:56 pm

Re: Programmatically select combo box

Post by kryton »

Is it possible to do it Javascript? I need to set the selection dynamically from JavaScript.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Programmatically select combo box

Post by Lech Kulikowski »

Hello,

At the current moment, it is not possible.

Thank you.
Post Reply