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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (47,811)