Hello everyone,
I am currently working on adding records for the subgrid. everything went well but for some time I was stuck on a problem that I can't refresh the standard component (Subgrid in this case) as there is no way for me to access those standard components from the PCF component.
After some research on PCF documentation and additional google searches, I found a solution to this but I don't think it is a recommended approach.
// @TS-ignore
Xrm._page._ui.getControls().get(grid_component_name).refresh();
As you can see, I need to add @TS-ignore just to fix TS2304: Cannot find name 'Xrm' error, which I think is not a recommended approach.
Is there any recommended solution for this?
User | Count |
---|---|
164 | |
90 | |
72 | |
64 | |
62 |
User | Count |
---|---|
210 | |
152 | |
97 | |
86 | |
66 |