web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Slider or Number spinn...
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?

Categories:
I have the same question (0)
  • YoshiIsTesting Profile Picture
    36 on at
    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
    18,251 Most Valuable Professional on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 400

#2
WarrenBelz Profile Picture

WarrenBelz 348 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 315 Super User 2025 Season 2

Last 30 days Overall leaderboard