cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PytByt 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:
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 Community Champion
Community Champion

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

Bumping for visibility 

 

@TopShelf-MSFT 

lucia 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

PytByt 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

lucia 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
PytByt 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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

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