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

To change the status of an item on-click and show show items based on status of user to admin

Hi everyone,

I have a course screen where I am displaying list of courses (from a SharePoint list named: Course List) which is like this:

Sidhant_02_0-1683097376694.png

I have used a Horizontal Blank Gallery in which I have used a Image (common to all courses), three text labels (for title, description and Difficulty)

Sidhant_02_0-1683105015524.png

 



So currently on the Course Information screen I am displaying Title, Description, and Difficulty (this is a Choice field) the SharePoint structure look like this:

Sidhant_02_1-1683097557442.png

So now I want to add a button (which looks like Text) which is used to denote the status for the particular course which has values like Not Started, In-Progress and Complete.
Example: Assume a Tim has logged in to the application -> He navigates to the Course Information screen -> Chooses  the course category (here: Beginner) in the course list and there we have an attribute which is changes its value (like a choice column) on-selecting it (don't want to use drop down to change the value) the value should be changed on-click and saved to the sharepoint. By default the value will be Not started. I wanted something like the below picture: (Wire frame)

Sidhant_02_2-1683097949845.png

Something just like this:

Sidhant_02_0-1683104179699.png

Sidhant_02_1-1683104239643.png

 


So when user clicks on the status:
Initially it is set to Not Started (once they click it is changed to)-> In-Progress ->  Completed this should be the sequence when user clicks and this should be saved in SharePoint list (for which I was thinking of creating a Choice column named: Status with values 'Not Started', In-Progress, Completed)
So what modifications should I do to get this functionality?.

The other requirement was when a user with Admin role logs in there will some change in the Course List page. Instead of having a drop-down which shows Difficulty (Choice column) values like Beginner, Intermediate, Advanced. I want to show all the list of users and on selecting a particular user the Administrator should be able to see all the Course information for that user.

Example: Assume Tim has 2 courses which he has started one from Beginner and one from Advanced (difficulty), so if admin selects Tim from the users drop-down then they (user with Role: Administrator) should see all the courses along with the status for that particular user, in this example it should the status of one course from Beginner: difficulty as Status: In-progress and one course from Advanced Status: In-Progress and rest of the course status should be Not Started


The wireframe:

Sidhant_02_0-1683201302730.png

So I have a created a button (which looks like text) and added a label beside it which displays the Choice column value (have added Status which is a choice column with default value as Not-Started) but not sure how to update the value on the go when the button is clicked

Sidhant_02_1-1683201407195.png

 

On clicking Button16 the status column should be updated and saved in SP list and displayed in the label.

Note: I also tried removing the Choice column (Status) and added it again (Refreshed the SharePoint List) but still not able to get the Choice column in the expression

Sidhant_02_0-1683624018832.png

 

 
 
Regards, 
Sidhant.

41 REPLIES 41
Sidhant_02
Post Prodigy
Post Prodigy

Thanks @TheRobRush , @Pstork1 and @BCLS776 (Bryan) for your help,
Just had one last requirement which I have mentioned in my query at the end as well but maybe you guys missed it which was:

The other requirement was when a user with Admin role logs in there will some change in the Course List page. Instead of having a drop-down which shows Difficulty (Choice column) values like Beginner, Intermediate, Advanced. I want to show all the list of users and on selecting a particular user the Administrator should be able to see all the Course information for that user.

Example: Assume Tim has 2 courses which he has started one from Beginner and one from Advanced (difficulty), so if admin selects Tim from the users drop-down then they (user with Role: Administrator) should see all the courses along with the status for that particular user, in this example it should the status of one course from Beginner: difficulty as Status: In-progress and one course from Advanced Status: In-Progress and rest of the course status should be Not Started

So if you guys know how to proceed please do reply as I have accepted your solution (this post might not be active), so mentioning it in a separate response.

 

Sidhant_02_1-1683871098178.png


The role column is like this:

Sidhant_02_2-1683871178541.png

 

(I have not assigned any roles to the users yet, just assume that Sam has Administrator user role and Vaibhav with Employee user role)

Regards,
Sidhant.

Sidhant_02
Post Prodigy
Post Prodigy

And the other requirement was for Administrator: Role. Only for the Administrator user role I was thinking of having a screen like:

Sidhant_02_0-1684127314352.png
So in this I was thinking having 1 vertical gallery on the left which will have all the individuals name and a horizontal gallery to display all the course with the respective status for each user (what they have marked) to be displayed.
 (As these are two different list Login List: which stores all user credential information and other one Course List: which has course information). So I wanted to show the respective details to the Administrator user role so that they can track what each employee has done.
So if you guys can also have a look @TheRobRush , @Pstork1  and @BCLS776 and others from the community it will be helpful.

Regards,
Sidhant.

Pstork1
Most Valuable Professional
Most Valuable Professional

I think the easiest way to do what you are suggesting is to have a completely separate page that administrators are taken to. Then build that page to show what admins should see.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Okay, but when after creating the new screen as mentioned in my last reply how should I relate a user with the course list (SP list) i.e. show their progress that they have selected.
Example:
Assume Jim: Role - Administrator ; Sam: Role - Employee, Jane : Role - Employee
Sam logs in to the application -> Navigates to the Course screen : Updates the status for 2 of the courses in Beginner and Intermediate (Difficulty column) 
Then Jane logs in to the application -> Navigates to the Course screen (in her case she should not see the changes that Sam made to Status for course)

Sidhant_02_0-1684215721462.png

 

So when Jane logs in she should see the default values on the course screen:

Sidhant_02_1-1684215869714.png

So now if Jane makes any change to the status they should be visible only for her and the user with Administrator user role.

So my queries were as follows:
1. How to isolate the course Status value based on every user?.
2. How will the values for the Status (which is a Choice column) be saved (when every user makes their change), as I am having only 1 SharePoint List that has all the course details and Status is one of the columns in that SP list.
3. For user with Administrator user role, I wanted to display the list of users and on-selecting any one of them the admin should the course and its status for that particular user. So user details are stored in 1 SP (Login list) and course details in another SP list (Course details) so how to relate both of them?.

If you have any idea please do reply as I not sure how to implement it.
If you guys have any idea: @BCLS776 (Bryan), @TheRobRush and others if you have any idea please do reply to this post.

Regards,
Sidhant.



I mentioned it once before but every user will need to have a record for each course type. Anytime they go to page it will show what they have started/completed and default value for ones they do not have. Then each person can only see default values or values with their name attached to record

 

I probably wouldnt even store default values in sharepoint at all but in the app itself personally. 

 

User loads page

 

Page pulls users records into collection

Any defaults that are Not(recordType in UseTable.Coursr) are added to the local user collection and we show this collection in a gallery. Each user sees their own, and on admin page you show all records in a gallery.

 

 

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

Hi @TheRobRush ,
So you are saying that for users I should show them a collection instead of showing the SharePoint list directly. But how will the system differentiate the collection based on users (using Collection) and will it be stored even after the application is closed and opened again (unlike temporary variables)
Assume this is the screen:

Sidhant_02_0-1684217639657.png

Currently I am directly showing all the values from the SP list and for Stage (the choice column) will there be any changes that I need to make again

Sidhant_02_1-1684217751970.png


The actual SP list that I will be working on is this:

Sidhant_02_2-1684217840236.png

 

(Title: Default column, Level: Choice column {Values: Beginner, Intermediate,Advanced}, Description: Multi-Line, Status: Choice column {Values: Not-Started,In-Progress, Completed})

For Testing purpose I am using TrailList as SP:

Sidhant_02_3-1684217987277.png

 

So if possible could you mention the steps it will help.

Regards,
Sidhant

I think part of our disconnect lies in you seem to only be reading part of my replies.

 

Users will need their own splist where all user records go

 

Somethign like

 

SplistRecord

 

Jim.         Test 1.         Started

Tom.        Test 1.         Complete

Tom.        Test 2.        Started

 

 

And so forth.

 

You can pull the ones they have not started into.their user screen collection by doing the check using in (you can keep it on a splist as is now but that list is unnecessary really the course types can just be stored in powerapps itself)

 

But they only ever see items from the splistrecord if the record item matches their name

 

Can give you more detailed version if I have the time to make an example splist tomorrow at work, but right now im headed to bed

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

Okay so please correct if I am wrong:
So we will need to create another SharePoint list in which we will store all the Course status when they make any change to the Status for a course details for every user. And for admin screen we need to create collection and collect the records from SP list (in my case Course Details) and show them as per user.
Will like to the detailed version with an example, will wait for tomorrow.
Thanks for replying (as its late at your location)

Regards,
Sidhant.

JayMagness
Solution Sage
Solution Sage

Had a call and walked through the process all is good.

Thanks @JayMagness. way to go!!

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (472)