cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mr_Johnson
Frequent Visitor

get a controls property to populate a variable

 

I may be getting this wrong, but "pdfviewer control" has a property of

currentpage

 

While I have used UpdateContext to toggle booleans I am not sure how I can (or if I can)  get

"currentpage" into a variable.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
dariobois
Resolver II
Resolver II

Hi!

 

Can you try something like this:

 

On the "OnStateChange" event of PDFViewer Control

UpdateContext({vCurrentPage: PdfViewer1.CurrentPage})

 

To verify, add a label control and set "vCurrentPage" variable into the "Text" property

 

RegardS!

View solution in original post

3 REPLIES 3
dariobois
Resolver II
Resolver II

Hi!

 

Can you try something like this:

 

On the "OnStateChange" event of PDFViewer Control

UpdateContext({vCurrentPage: PdfViewer1.CurrentPage})

 

To verify, add a label control and set "vCurrentPage" variable into the "Text" property

 

RegardS!

View solution in original post

Mr_Johnson
Frequent Visitor

Thank you!!!

I am sure I could have googled it ... well I did but I had so many issues with needing to do A to get B to result in C --it sort of confused me.

I wish we could go back to VB6. 🙂

 

@dariobois

 Thank you for your answer in the forum.
In the future, your answers in the forum will continue to be of great help to us.
Thank you!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,956)