cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PytByt
Level 8

Adding collection data to a gallery items (for edit purpose)

hi all..

 

i want to edit my input that i get from my gallery radio control, which i save it into a collection in that gallery again.

this is the formula i use to get the collection items:

ForAll(Gallery5.AllItems, Collect(FormColl, {SO_Number: TextInput1.Text, AssignedEngineer: TextInput2.Text, Description:TextInput3.Text, SiteName: TextInput4.Text, ActualEngineer: Dropdown2.Selected.Value, AssignedDate: TextInput6.Text, ActualDate: DatePickerAct.SelectedDate+HourPickerAct.Selected.Value+MinutePickerAct.Selected.Value, Visit: TextInput7.Text, Question: Title1_2.Text, Responds: Radio1_2.Selected.Value, Remarks: TextInput1_3.Text, Status: "Saved Local"}));

 

Here is the picture references:
gall item4.pngi want to edit my collection item that i get from the gallery in that gallery again.

How am i could achieve this?

Please help.

 

BR,

pytbyt

5 REPLIES 5
Highlighted
TopShelf-MSFT
Level 10

Re: Adding collection data to a gallery items (for edit purpose)

Bumping for visibility 

 

@TopShelf-MSFT 

lucia
Level 8

Re: Adding collection data to a gallery items (for edit purpose)

Hey,

 

it depends what do you want to achieve. Do you want to update your items in a list/collection, then you have to set Patch() on each radio button on OnCheck field. So everytime you choose particular radio button you update your item in the Gallery. Do not foget to set the default value for the radiobuttons as well. Eg 

If(ThisItem.Responds.value="pass",true,false)

 

For example,

OnCheck:

 

Patch(DataSource/Collection, ThisItem, {Responds: {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",Id: ID,Value: "Pass"}});

 

Hope this helps

PytByt
Level 8

Re: Adding collection data to a gallery items (for edit purpose)

Hi @lucia 

Thanks for the reply.

 

Just to be confirmed.. when you say each radio button, you know that in a gallery its only have one radio button control represent for all the item in the gallery right?

Therefore, can i still use this formula below?

Patch(DataSource/Collection, ThisItem, {Responds: {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",Id: ID,Value: "Pass"}});

 

Thanks,

pytbyt

lucia
Level 8

Re: Adding collection data to a gallery items (for edit purpose)

Hey,

 

your each item in the gallery has 3 radio buttons, so for each of these.

 

Hope this helps.

PytByt
Level 8

Re: Adding collection data to a gallery items (for edit purpose)

@lucia 

I'll get back to you later.

 

Cheers,

pytbyt

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,908)