Hello Community,
I have a lead form that has multiple tabs, when I qualify a lead I trigger some javascript to run some validation on some field and verify that the information's are filled.
One of the things that I am trying to achieve, is to be able to see whether a user has created a record in a particular subgrid, by counting the number of records in the following way
formContext.getControl("grid").getGrid().getTotalRecordCount()
The problem that I am facing is that the result of this will always be 0 if I am not on the specific tab where the grid is because the grid has not loaded. I think this happens because dynamics loads data lazily.
How do I count the number of items in the subgrid without navigating to the specific tab, and select qualify?