Forum Discussion
The TGV from my POV is not rendered as classic HTML, but is dynamically built. It seems that we cannot access the buttons inside the TGV with "querySelector" or similiar.
The refresh button is a CUI element and uses following code:
-> inArgs.contextParams.tgvContext.reload();
inArgs typcially comes with the CUI call, so it´s empty when we come from something else.Maybe we can use the available function somehow, but I am not sure.
One simple solution that I have found is, just to reload the frame that is used for the TGV in the Form. But it will reload everything, incl. TGV toolbar:
const x = document.getElementById('xy');
x.contentWindow.location.reload();
- jeff_stroh3 months agoIdeator I
Hey Angela, thanks. I may have not explained correctly. I'm just trying to sort out how to target the HTML control on the Item form from the relationship grid. Any combo of the various selects, when fired from the relationship grid, don't seem to be able to find the element by name.
I believe that the method we have will do what we need it to with the TGV since replaces the iframe contents. We're using the same approach in a 'two column' form which has two side by side TGVs that update/change out depending upon buttons or actions.
Does that clarify?
- AngelaIp3 months agoIdeator I
Ah I see! You come from the relationship, while I did my tests from a Form button. I don´t have an answer know, but I will check. I am interested in this one too.