Hi
- Embedded Canvas App on Dynamics Quote entity
- Used to add Quote Lines to Quotes
- Gallery of Price List Items displaying available Products with the price for the Product
- On Select of a Price List Item I would like to populate the selected product & price into the Quote Line Form
- The Form is of Type "New"
- On Select of a Gallery item, it UpdatesContext and sets the variables that are used in the Form
Now the issue is: sometimes the OnSelect works and fires, sometimes it doesnt.
It works in only about 20% of the cases.
OnSelect in Gallery:
UpdateContext({pricePerUnit: PriceListItems.Selected.Amount; product: PriceListItems.Selected.Product; unit: PriceListItems.Selected.Unit})
Product_DataCard.DataCardValue.Default = product
Unit_DataCard.DataCardValue.Default = unit
Price_DataCard.DataCardValue.Default = pricePerUnit

Any ideas why the UpdateContext doesnt update my Form?
Thanks!