cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
u4jaanus
Level: Powered On

thisitem in Gallery issues while working with collections

Hi All,

I am working on an app where I have a product list stored in SP containing 2 columns. Code and Name.

I have pulled data into Gallery and added 1 more Custom Field name for Qty.

I have added a checkbox on Gallery item to let people choose the product they want.

OnCheck property of Checkbox I am creating a collection which have Code, Name and Qty in it which is then is pulled in Data table on my ordering page with other customer details. I have given a button to add/edit the quantity which takes user back to product page with check box and qty text field. There I have tried to add update function on ONCHANGE of Qty text field to update the collection but having errors. Most approaches I have used are giving evaluation error "formula uses scope which is not presently supported for evaluation".

 

Flow of the application is as below.

 Open Ordering Form > Choose Add/Edit products > Check the Checkbox for products to order > OnCheck create Collection to add selected item into collection & create another collection to compare Auto Hide function for Qty text field. i.e. if thisitem is in collection show Qty Field, if not Hide Qty Field.. > if user wants to change Qty, Onchange event update new Qty in collection. (problem underdiscussion)

 

Please advise.

Thank you.

Capture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
u4jaanus
Level: Powered On

Re: thisitem in Gallery issues while working with collections

Found the answer.

 

We would need to find the record against which an update is needed. Using Filter option.

Which should look like below.

 

Patch(Source,First(Filter(Source,ColumnToFindValueIn= ThisItem.ColumnToMatchValueOf)),{ColumnNameToUpdateValueIn:TextInPutField.Text})

View solution in original post

1 REPLY 1
Highlighted
u4jaanus
Level: Powered On

Re: thisitem in Gallery issues while working with collections

Found the answer.

 

We would need to find the record against which an update is needed. Using Filter option.

Which should look like below.

 

Patch(Source,First(Filter(Source,ColumnToFindValueIn= ThisItem.ColumnToMatchValueOf)),{ColumnNameToUpdateValueIn:TextInPutField.Text})

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

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

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 (9,294)