Setting the current page using javascript.

Stimulsoft Reports.JS discussion
Post Reply
rjorge99
Posts: 12
Joined: Tue Feb 28, 2023 6:24 pm

Setting the current page using javascript.

Post by rjorge99 »

Hi,

I'm using some custom controls to next, previous, first and last page, I dont know if what I'm doing is correct :

Code: Select all

viewer.jsObject.controls.buttons.FirstPage.action();
But that works.

I could not find a way to set the current page dinamically using javascript.

Y found the control:

Code: Select all

viewer.jsObject.controls.textBoxes.PageControl
But still , cant make it work.

Thanks
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Setting the current page using javascript.

Post by Lech Kulikowski »

Hello,

Please try to use the "GoToPage" action.

Thank you.
rjorge99
Posts: 12
Joined: Tue Feb 28, 2023 6:24 pm

Re: Setting the current page using javascript.

Post by rjorge99 »

Thank you. it worked
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Setting the current page using javascript.

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply