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 / How to check the statu...
Power Apps
Unanswered

How to check the status of the previous item in a gallery?

(0) ShareShare
ReportReport
Posted on by 50

Hello everyone.


I have a task management app and would like your help.

 

The objective of this application is that the user selects a building and sees its tasks to be carried out.

 

I thus created several sharepoint lists according to a task and in this list I informed the building and the user concerned by the task.

The names of the lists and the names of the tasks are the same.

 

I thus created a gallery which displays all the tasks of the user, when he selects the task he is redirected to another page in which he can validate the task.

 

I would like to prevent the user from being able to select and validate a task when the previous one is not done.

 

do you have any idea how i could solve this problem?

 

thanks

Categories:
I have the same question (0)
  • MF-12051538-0 Profile Picture
    402 on at

    Hi @EdouardVH ,

    If you could add an index column for the steps in your SP lists, then you could LookUp the highest index value for your list where 'completed' = true, and then only allow navigation for those records where the index is no more than 1 greater than the number you look up.

    I hope this helps.

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @EdouardVH :

    Are the tasks in your task list arranged in order? If so the previous task of the task selected by the user can be found by ID.

    For Example:

    LookUp(
     Sort(YourSPList,ID,Descending),
     ID<YourGallery.Selected.ID
     ).Status

    Best Regards,

    Bof

  • EdouardVH Profile Picture
    50 on at

    Thanks for your help,

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
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard