Not even sure this is possible but lets see...
Example: I have a panel which holds a PANEL_REF1 which has an embedded PANEL_REF555. I was trying to use removeSymbol on the top panel to get rid of the PANEL_REF555 which is "inside" PANEL_REF1, but for the life of me cannot figure out the correct syntax to do this. If I use:
removeSymbol(myModuleName(), myPanelName(), "PANEL_REF555");
Then of course it doesn't work as it cannot see PANEL_REF555 on the panel, which is true as that panel ref is embedded inside PANEL_REF1. I tried:
removeSymbol(myModuleName(), myPanelName(), "PANEL_REF1.PANEL_REF555");
but that also fails cause I don't think the dot notation for the panel ref name actually works here (it works for symbols).
I reckon I somehow need to point the function to the embedded panel in order for it to "see" PANEL_REF555, but I have no idea how to do this. Is this even possible? anyone tried this?
Running removeSymbol inside PANEL_REF1 also fails, for example doing:
removeSymbol(myModuleName(), "", "PANEL_REF555");
ends up with the same error as before ie. PANEL_REF555 not found as it "searches" for it on the top panel and its the same problem as if trying to run the function on the main panel itself.
How to remove a Panel Ref embedded in another Panel Ref?
- tpjctrl
- Posts:145
- Joined: Tue May 08, 2018 10:30 am
How to remove a Panel Ref embedded in another Panel Ref?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: How to remove a Panel Ref embedded in another Panel Ref?
I did some tests and I also could not find a solution.
Why do you want to remove the reference?
Would it be sufficient to set the reference invisble?
This can be done with the dot notation to address an object.
E.g. setValue("PANEL_REF3.PANEL_REF1","visible",false);
Best Regards
Leopold Knipp
Senior Support Specialist
Why do you want to remove the reference?
Would it be sufficient to set the reference invisble?
This can be done with the dot notation to address an object.
E.g. setValue("PANEL_REF3.PANEL_REF1","visible",false);
Best Regards
Leopold Knipp
Senior Support Specialist
- tpjctrl
- Posts:145
- Joined: Tue May 08, 2018 10:30 am
Re: How to remove a Panel Ref embedded in another Panel Ref?
Yes, hiding those embedded panel refs would also work fine, so thanks Leopold.
I have a panel ref which holds a large amount of other panel refs and there's a few scenarios where some of those embedded panel refs are not required to be shown. Instead of holding two separate panel refs with very minor differences, I thought I can have one and simply remove some of the embedded panel refs which are not needed in particular cases.
I have a panel ref which holds a large amount of other panel refs and there's a few scenarios where some of those embedded panel refs are not required to be shown. Instead of holding two separate panel refs with very minor differences, I thought I can have one and simply remove some of the embedded panel refs which are not needed in particular cases.