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
Community Champion
Community Champion

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

Bumping for visibility 

 

@TopShelf-MSFT 

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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