cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

Create a status Button with All, Approve, Reject and Pending

@WarrenBelz 

 

I have Sharepoint List where I want to show the current user their All, Pending ,Approve, Rejected Status.

 

UpdateContext({vStatus:"All"})
UpdateContext({vStatus:"Approve"})

UpdateContext({vStatus:"Pending"})
UpdateContext({vStatus:"Reject"})

 

And on Gallery Item 

If(
vStatus <> "All",
Filter(
CurrentMonthClaim,
Status=vStatus
),
CurrentMonthClaim
)

 

But I am getting an error 

 

akbarmahfuzalam_0-1603490929155.png

 

akbarmahfuzalam_1-1603490989331.png

 

akbarmahfuzalam_2-1603491038550.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@akbarmahfuzalam ,

OK - it will work if your record set is under your delegation limit, but go this way

If(
   vStatus="All",
   CurrentMonthClaim,
   Filter(
      CurrentMonthClaim,
      Status=vStatus
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
Super User III
Super User III

@akbarmahfuzalam ,

Assuming you are setting the variable on the buttons at the top

Filter(
   CurrentMonthClaim,
   If(
      vStatus="All",
      true,
      Status=vStatus
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz 

 

I did this way. Let me know if i am correct

 

akbarmahfuzalam_0-1603493800066.pngakbarmahfuzalam_1-1603493835555.png

akbarmahfuzalam_2-1603493886719.png

akbarmahfuzalam_7-1603494207177.png

 

akbarmahfuzalam_4-1603493997952.png

And I am getting delegation warning

akbarmahfuzalam_5-1603494068819.png

 

 

SharePoint List

akbarmahfuzalam_6-1603494134149.png

 

@akbarmahfuzalam ,

OK - it will work if your record set is under your delegation limit, but go this way

If(
   vStatus="All",
   CurrentMonthClaim,
   Filter(
      CurrentMonthClaim,
      Status=vStatus
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

@WarrenBelz 

 

Thanks a ton Warren it work.

 

If(
vStatus="All",
CurrentMonthClaim,
Filter(
CurrentMonthClaim,
Status.Value=vStatus
)
)

 

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Users online (7,279)