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
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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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