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 / Powerapps form not sho...
Power Apps
Answered

Powerapps form not showing for hidden items from gallery

(0) ShareShare
ReportReport
Posted on by 95

Hi all,

I have a gallery of items in the form of assignments. OnSelect an assignment, the user is able to accept the assignment which updates the "Status" sharepoint column from "Undelivered" to "In Progress". 

When the status is "In Progress", the assignment will be removed from the gallery. How do I view the hidden "In Progress" assignment the user selected in another screen? I intend to show it separately from the gallery so that the user is able to press on another button to update the Status to "Completed"

Alois_2-1603177479991.png

Gallery of assignments

Alois_3-1603177674377.png

OnSelect gallery item > Detailed Information > OnSelect Button to accept assignment which updates the "Status" column to "In progress" and hides item from gallery

Alois_4-1603177753761.png

The same assignment is no longer showing up in a new screen as the code is based on Gallery.Selected


Would really appreciate any advise to solve this.

Regards,
Alois



 



Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,029 Most Valuable Professional on at

    Hi @Alois ,

    This is an issue caused by the workflow design of your app. You are removing an item from the selection process, so obviously the user can no longer see it. You could consider another strategy for the Item of the form.

    Firstly, your gallery OnSelect would be

    Set(varID, ThisItem.ID)

    and then the Item of the Form would be

    LookUp(
     YourListName,
     ID=varID
    )
    

     This has the same effect as your current setting, except you can set varID to the ID of the record you have just changed and it will then display in the form.

     

    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.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Alois,

    Based on the issue that you mentioned, do you want to view the items whose status is "In Progress" and update them to "Completed" when necessary?

    Could you please share a bit more about the scenario?

    In your scenario, there should be at least 2 'Detailed Information' screen, one for displaying the "Undelivered" items and set a button to update the status, and another one for displaying the "In Progress" items and set another button to update the status into "Completed".

    The key is you should create a collection to store the SP data, and when you want to remove a certain item from the Gallery which will not affect the data source.

    I have a test on my side, please take a try as below.

    Add a Button in the fist Gallery screen and set the OnSelect property as below:

     

    Collect(ColAss,Assignments)

     

    Note: 'Assignments' is my SP list name.

    Set the Items property of the Gallery as below:

     

    ColAss

     

    Click the ">" button and add a Button within the detail screen, set the OnSelect property as below:

     

    Patch(
     Assignments,
     BrowseGallery1.Selected,
     {Status: {Value: "In Progress"}}
    );
    RemoveIf(
     ColAss,
     Status.Value = "In Progress"
    );
    Navigate(Screen1)

     

    After it navigates you to the screen1, there is a Gallery and you can set the Items property as below:

     

    Filter(Assignments,Status.Value="In Progress")

     

    Add another button to update the status, you need to set the OnSelect property as below:

     

    Patch(Assignments,Gallery1.Selected,{Status:{Value:"Completed"}})

     

    Note: Gallery1 is to display the "completed" item, if you do want to update its status, you should select it within Gallery1 firstly in order to make the "Gallery1.Selected" work.

    If you want to view the item that is in the "Completed" status, you can add another Gallery and set the Items property as below:

     

    Filter(Assignments,Status.Value="Completed")

     

    All the above operation is aimed to remove the selected "undelivered" item from the Gallery rather than the SP list in order to view it from another Gallery again.

    Best Regards,

    Qi

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard