I am using all of the fields in the gray area as update value fields, the user will type text or select from the drop down what they want the checked records to be overridden with. When you hit apply updates you will see the selected records update only IF there is a value other than blank or empty in the filters shown; otherwise i want the value to remain as is when i hit apply. Right now if I run this only the Audit Name field is updating and it is updating regardless if a selection is made form the drop down or not. Please help:
UpdateIf(
colGridData,
ThisRecord in colSelected,
If(
!IsEmpty(SAuditName_1.Selected),
{Audit_x0020_Name: SAuditName_1.Selected},
!IsEmpty(SMgmtBoardMembers_1),
{Mgmt_x0020_Board_x0020_Members: SMgmtBoardMembers_1.Text},
!IsBlank(SMgmtAreaHead_1),
{Mgmt_x0020_Area_x0020_Head: SMgmtAreaHead_1.Text},
!IsBlank(SSrMgmtOwner_1),
{'Sr Mgmt Owner': SSrMgmtOwner_1.Text},
!IsBlank(SProcessOwner_1),
{'Process Owner': SProcessOwner_1.Text},
!IsBlank(SControlOwner_1),
{Control_x0020_Owner: SControlOwner_1.Text},
!IsBlank('SAddtlContact(s)_1'),
{Addt_x0027_l_x0020_Contact_x0028: 'SAddtlContact(s)_1'.Text},
!IsEmpty(SRollUpChainRptg_1.Selected),
{Roll_x0020_Up_x0020_Reporting_x0: SRollUpChainRptg_1.Selected},
!IsEmpty(SReportingChain_1.Selected),
{Reporting_x0020_Chain: SReportingChain_1.Selected},
!IsEmpty(SDepartment_1.Selected),
{Department: SDepartment_1.Selected},
!IsEmpty('SSub-department_1'.Selected),
{'Sub-Department': 'SSub-department_1'.Selected},
!IsEmpty(SProcess_1.Selected),
{Process: SProcess_1.Selected},
!IsEmpty(SAuditID_1.Selected),
{'Audit Id': SAuditID_1.Selected}
)
);
Clear(colSelected);
Reset(checkboxall);
Reset(SAuditName_1);
Reset(SControlOwner_1)
Solved! Go to Solution.
I think this link will help you a lot :Patch function in Power Apps (contains video) - Power Apps | Microsoft Docs
Levi
Another attempt at what I am trying to do, if the dropdown uptop does not have a value then don't update the value in the gallery leave as is. This isn't working either it is just updating the value to blank:
I think this link will help you a lot :Patch function in Power Apps (contains video) - Power Apps | Microsoft Docs
Levi
Levi
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
166 | |
94 | |
64 | |
63 | |
60 |
User | Count |
---|---|
238 | |
162 | |
95 | |
85 | |
80 |