cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
satishkumark
Helper I
Helper I

how to update a column value for selected items in a gallery

Hi Readers,

I have a collection(colFilter1) which is connected to a gallery 

I have Form which is connected to a SharePoint List (Data source) on the right side and a gallery on the left side of the screen

when I submit a form it will create a row in data source and generated a ID for that row, now I need to update that ID value to one of the column(Release Position ID of Number type) in a collection(colFilter1), only selected items in a gallery.

 

Gallery Items Property Formula:

If(
VarFilterGal = true,
AddColumns(
colFilter1,
"Project Name",
LookUp(
colFilter,
ID = colFilter1[@RefID],
Project_x0020_Name
),
"Stream",
LookUp(
colFilter,
ID = colFilter1[@RefID],
Stream.Value
),
"Period",
LookUp(
colFilter,
ID = colFilter1[@RefID],
Period.Value
),
"Financial Year",
LookUp(
colFilter,
ID = colFilter1[@RefID],
Financial_x0020_Year.Value
)
)
)

Check Box- Oncheck: Formula

Collect(
colselected,
ThisItem
);

 

Find Button-OnSelect Property Formula:

Set(
VarFilterGal,
true
);
Clear(colFilter);
ClearCollect(
colFilter,
Filter(
'Direct Benefit',
(StartsWith(
Project_x0020_Name,
txtProjectName_1.Text
) || If(
IsBlank(txtProjectName_1.Text),
true,
false
)) && (Function.Value = cmbFunction.Selected.Value || If(
IsBlank(cmbFunction.Selected.Value),
true,
false
)) && (Entity.Value = ddlEntity_1.Selected.Value || If(
IsBlank(ddlEntity_1.Selected.Value),
true,
false
)) && (Stream.Value = ddlStream_1.Selected.Value || If(
IsBlank(ddlStream_1.Selected.Value),
true,
false
)) && (Country.Value = ddlCountry.Selected.Value || If(
IsBlank(ddlCountry.Selected.Value),
true,
false
)) && (Work_x0020_Level_x0020_3.DisplayName = cmbWL3.Selected.DisplayName || If(
IsBlank(cmbWL3.Selected.DisplayName),
true,
false
))
)
);
Set(
varIDs,
Concat(
colFilter,
ID & ","
)
);
ClearCollect(
colFilter1,
Filter(
'Direct Benefit Role',
RefID in varIDs
)
)

 

 

satishkumark_0-1631698396607.png

 

Please help me how to achieve this functionality. 

 

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,352)