Get value from checkbox after editing from report viewer

Stimulsoft Reports.JS discussion
Post Reply
dinhngocdiepcnttk36
Posts: 3
Joined: Thu Feb 06, 2020 12:33 pm

Get value from checkbox after editing from report viewer

Post by dinhngocdiepcnttk36 »

Hi.
I clicked on this checkbox, as in the attached image, the checkbox labeled 1, I want to get the value of the checkbox after clicking.
I am using Report.JS in Javascript.
Thank you very much.
Attachments
testcheckbox.png
testcheckbox.png (25.06 KiB) Viewed 2265 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get value from checkbox after editing from report viewer

Post by HighAley »

Hello.

Could you describe the issue more detailed?
Where do you want to get this value?
What is your scenario?

Thank you.
dinhngocdiepcnttk36
Posts: 3
Joined: Thu Feb 06, 2020 12:33 pm

Re: Get value from checkbox after editing from report viewer

Post by dinhngocdiepcnttk36 »

Thanks HighAley!
I am sorry for not replying soon.

I tick the checkbox in the table, then I click the "get values" button, when I click the "get values" button I want to get a list of the values for all the checkboxes in the table.
I have tried using report.saveDocumentToJsonString (). but it does not get the correct value in the checkbox list, checkbox 1 has the value is still false. You can see more information in the picture I attached.

Please help me. Thank you very much!.
Attachments
getvaluescheckboxs.png
getvaluescheckboxs.png (68.3 KiB) Viewed 2243 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get value from checkbox after editing from report viewer

Post by HighAley »

Hello,

Where do you get the report from?
You should get it from the Viewer.

Thank you.
dinhngocdiepcnttk36
Posts: 3
Joined: Thu Feb 06, 2020 12:33 pm

Re: Get value from checkbox after editing from report viewer

Post by dinhngocdiepcnttk36 »

Hi!.

Thank you very much. I have solved it
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Get value from checkbox after editing from report viewer

Post by Andrew »

Okay, great!
Post Reply