I am trying to retrieve the context information from a subgrid on the new form that is opened (Quick Create in this case) from the "New" button. (see below)
I am trying to retrieve the context information from a subgrid on the new form that is opened (Quick Create in this case) from the "New" button. (see below)
Hi Chaffee007,
Use
formContext.getControl("subgridName").getViewSelector().getCurrentView();
For more details: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/grids/viewselector/getcurrentview
Try to get primary context and from that view id.
Thank you,
Amit Katariya
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156