Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Slider or Number spinner in Component's (UpdateContext)

(1) ShareShare
ReportReport
Posted on by 103

Hi all,


I want to build a Slider component with number spinner to change the sliders quantity. I can't figure it out how the use UpdateContext Function to change the Sliders value in the component.

 

The component view:

Aionik_0-1678366363947.png

 

Outside the component, I have successfully applied these steps:

 

Slider Control on Default

Value(AddMe)

+ OnSelect

UpdateContext ({AddMe:slRooms.Value-1})

- Controll

UpdateContext ({AddMe:Rooms.Value+1})

 

Now is the question, how to implement it as component?

  • YoshiIsTesting Profile Picture
    YoshiIsTesting 36 on at
    Slider or Number spinner in Component's (UpdateContext)
    Hello @Sancho

    i have the same problem with my slider(number) component. 





    after sliding my component to number 100 or 0 something happend (status of the document changed). After this i want that the slider component switch to number 50 the default number automatically) 
    I dont know how to do this. This is my script: 


    can u help me please?

  • Verified answer
    iAm_ManCat Profile Picture
    iAm_ManCat 18,112 on at
    Re: Slider or Number spinner in Component's (UpdateContext)

    Hey @Aionik 

     

    You can't use the UpdateContext function in components, but you can use Set - you should be able to manipulate a variable in the same way using that function, although it will be a global variable coped to the component.

     

    Cheers,

    Sancho

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard