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

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:
i want to edit my collection item that i get from the gallery in that gallery again.i 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
Anonymous
Not applicable

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

Bumping for visibility 

 

@Anonymous 

Highlighted
Resolver II
Resolver II

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

Highlighted
Post Prodigy
Post Prodigy

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

Highlighted
Resolver II
Resolver II

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.

Highlighted
Post Prodigy
Post Prodigy

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

@lucia 

I'll get back to you later.

 

Cheers,

pytbyt

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,649)