Forum Discussion
I am not sure I understood the use case but I want to give it a try.
Do you use the custom HTML element as frame for the TGV rendering? So e.g. instead of having the typical "BOM structure" relationship with the TGV, you show the TGV in your custom element?
Can you provide a rough screenshot? You can hide the actual data!
I think you can use the code that is typical used for TGV CUI Actions as basis. The ES Crawler does something similar, but I would have to check first.
- jeff_stroh3 months agoIdeator I
Hey Angela, sure thing let me give a screen shot (identifiable info blanked out):
Basically if a user selects a row in the bottom I'm wanting to refresh/re-run the TGV in the top form. I can get a specific TGV to display in a dialog, but for whatever reason I can't figure out how to target the top form divs by ID or name from the relationship grid method.
We're more or less looking to invoke sort of a split view wherein we can get additional details and have people do work in the grid at the bottom without extra clicks.
I'm not 100% certain that this will be the way to go as the onSelect event seems to fire EVERY click on a row which is not ideal (e.g. when you go to edit, it's firing...) so I may need to approach another way, but conceptually this is what we were aiming for.
- AngelaIp3 months agoIdeator I
Hey cool, I have tried something like this some time ago, but didn´t use it in the end.
Mainly because I wasn´t able to achieve the TGV filtering that I wanted: link
(The post doesn´t mentioned that the TGV was supposed to be part of a Form, but it was the final goal ).
I still have the concept lying around somewhere and will check if I can find something helpful. But if somebody else has an idea please let us know!
Do buttons like "Refresh" in your TGV work when you click them manually?
A simple/stupid solution would maybe be parent.onRefresh(); which should refresh the Form completely. People will love the constant Form refreshes! But I expect it should be possible to address the TGV itself.
Instead of "onSelect" you can maybe use a right click CUI element or a CUI toolbar button.
- jeff_stroh3 months agoIdeator I
Thanks for looking. I replied on that other thread btw with hopefully a solution for you.
Yeah, all the TGV functions work as normal. I just use a method to insert an iframe and then feed it the necessary parameters. We have it working (all within a form) with side by side TGVs to higher level info on a left TGV and then more details (or different types of details) in a right TGV, but that's all within a form so you can easily access the various div elements...
Right click or toolbar button is next. I hate clicks, so I was trying to avoid that but might be only way to do it if the onSelect doesn't behave like i hope.