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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / component property set...
Power Apps
Answered

component property settings for using patch

(2) ShareShare
ReportReport
Posted on by 36
Hello Everyone,

i build a component which is a simple slider. I use this component in my app and i want to do a Patch on a browse galery item when slider is on 100. In my component i build a property named "onAction" and i tried every property to use the patch in the app with "onAction" but it doesnt work. FYI i have another property called "OnchangeSlider" which is type number. In my app i can ask on which number my Slider is standing. I know that i have to use this. But it doesnt work.
 
Can u help?

 
Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at
    Hey. Is the onAction property firing as expected when slider is on 100? A quick way to check would be to notify the user by calling the Notify() function.
     
    If it is firing, please share the Power Fx code containing the Patch() function call.
  • YoshiIsTesting Profile Picture
    on at
    Hello 
    of course i tried notify() it works. 

    Here is the code: 



  • YoshiIsTesting Profile Picture
    36 on at
    Hello 
    thanks for response. i tried notify() and it works. Except patch: 


  • Verified answer
    YoshiIsTesting Profile Picture
    36 on at
    Set(MySliderNumber,SwipeComponent_4.SliderValue);
    If(MySliderNumber > 50 ,Patch(ApprTable,LookUp(ApprTable,Dokumentnummer = ApprTableID), { 'Status (new_status)': 'Status (ApprTable)'.Genehmigt });Notify("Patched Accepted");,Patch(ApprTable,LookUp(ApprTable,Dokumentnummer = ApprTableID), { 'Status (new_status)': 'Status (ApprTable)'.Abgelehnt });Notify("Patched Denied"));
    Refresh(ApprTable);
    UpdateContext(
        {
            SelectedIDRecord: LookUp(ListItemswithID,ID > SelectedIDRecord.ID)
        });  
    If(IsBlank(SelectedIDRecord),
        Back(),
    //else
        UpdateContext(
            {
                SelectedRecord: LookUp(ApprTable,Dokumentnummer = SelectedIDRecord.Record.Dokumentnummer)
            });
        ResetForm(Form2_1););

    this works. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard