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 / Update icon and Edit icon
Power Apps
Unanswered

Update icon and Edit icon

(0) ShareShare
ReportReport
Posted on by 48

Hello Team,

 

I have one requirement, which is something like that, suppose you have 3 projects under your name and for one of those three project you want to edit something may be role, skill or bandwidth of the resources, suppose from my list you have selected that project and then you'll be navigated to the screen where resource details are available, so in that for A resource you want to edit the availability or bandwidth of the resource, for example for the month of april 24 you need resource 100% but after some days may be you only need the resource bandwidth for 80% only. So you'll go to my list and will click on the project and the you can change. I have added two buttons, one for edit and one for update. I am pasting the code for better understanding for everyone, 

 

On Edit button - (On select)

 

Set(
    Var_Emp_Role,
    (Gal_Emp_Details.Selected.Role)
);
Set(
    Var_Emp_Skill,
    (Gal_Emp_Details.Selected.Skill)
);
Set(
    Var_Apr_24,
    Text(Gal_Emp_Details.Selected.'Apr-24')
);

Set(
    Var_Jan_24,
    Text(Gal_Emp_Details.Selected.'Jan-24')
);
Set(
    Var_Feb_24,
    Text(Gal_Emp_Details.Selected.'Feb-24')
);
Set(
    Var_Mar_24,
    Text(Gal_Emp_Details.Selected.'Mar-24')
);
Set(
    Var_May_24,
    Text(Gal_Emp_Details.Selected.'May-24')
);
Set(
    Var_Jun_24,
    Text(Gal_Emp_Details.Selected.'Jun-24')
);
Set(
    Var_Jul_24,
    Text(Gal_Emp_Details.Selected.'Jul-24')
);
Set(
    Var_Aug_24,
    Text(Gal_Emp_Details.Selected.'Aug-24')
);
Set(
    Var_Sep_24,
    Text(Gal_Emp_Details.Selected.'Sep-24')
);
Set(
    Var_Oct_24,
    Text(Gal_Emp_Details.Selected.'Oct-24')
);
Set(
    Var_Nov_24,
    Text(Gal_Emp_Details.Selected.'Nov-24')
);
Set(
    Var_Dec_24,
    Text(Gal_Emp_Details.Selected.'Dec-24'))
 
On Update button (on Select)
 
If(
    Var_Edit_Col,
    Patch(
        Col_Emp_Details,
        LookUp(
            Col_Emp_Details,
            Sl_No = Gal_Emp_Details.Selected.Sl_No
        ),
        {
            'Resource Name': 'Employee Name_Combo'.Selected.Name,
            'Employee ID': 'Employee_Id Card'.Text,
            'Line Manager': Manager_Combo.Selected.Value,
            Role: Var_Emp_Role,
            Skill: Var_Emp_Skill,
            'Start Date': 'Start Date'.SelectedDate,
            'End Date': 'End Date'.SelectedDate,
            'Jan-24': Var_Jan_24,
            'Feb-24': Var_Feb_24,
            'Mar-24': Var_Mar_24,
            'Apr-24': Var_apr_24,
            'May-24': Var_May_24,
            'Jun-24': Var_Jun_24,
            'Jul-24': Var_Jul_24,
            'Aug-24': Var_Aug_24,
            'Sep-24': Var_Sep_24,
            'Oct-24': Var_Oct_24,
            'Nov-24': Var_Nov_24,
            'Dec-24': Var_Dec_24
 
This col_Empl_Details is to store the employee details in the gallery.
 
Please let me know what to modify in these codes to start working this functionality, its urgent please help.
 
Thanks in advance everyone!!

 

Categories:
  • Ramanachiappan Profile Picture
    179 Moderator on at

    Hi @noob_power_apps 

    Could you please provide more details or screenshots of the issues you are encountering? This will help us better understand the problem and provide appropriate assistance.

  • noob_power_apps Profile Picture
    48 on at

    Hi Ramanachiappan,

     

    Thanks for your reply, I have attached the screen shot where all these operation will happen, I have another screen where the projects names are there and if you select that project then it will show the resources allocated, and accordingly after checking that employee details you can update or edit anything what you want to do. Please let me know if any other clarification is needed. Thanks in advance again for your support.

    Update.png
  • Ramanachiappan Profile Picture
    179 Moderator on at

    Hi @noob_power_apps ,

    It seems that the code provided above is functioning correctly, as there are no reported errors in the coding part. However, it would be prudent to check if it throws any errors while submitting it.

    Could you please add error screenshot ?

  • noob_power_apps Profile Picture
    48 on at

    Hi Bro,

     

    Thanks for your support, but it's not showing any error and it's not updating as well, i don't know why. I am not able to figure it out as well what's wrong in that. When i am clicking the edit button the role and skill is displaying in their respective combo box but then after changing their role and skill i am not able to update that by clicking the update button, basically update button is not working, don't know why.  Thanks in advance.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard