My application contains a configuration panel that runs when a reference panel is placed, using GEDI, into a parent panel. Among other things, the configuration panel automatically names the reference panel using the setDollarParams() function. Until recently, the name assignment would fail if there already was a panel reference with the same name in the parent panel, and if that happened, my configuration panel would modify the name so that it was different.
It appears that one of the recent patches (I've observed this behavior in v3.15 P006 and P007) changed how this works because now the assignment of the same name from my configuration panel script does not always fail when assigning a name that is already used. That results in two panel references in the same parent panel having identical names. I've identified that if the parent panel has been saved, closed, and reopened since a reference object was placed on it, it will fail when trying to assign the same name to another reference panel just as always. But if a reference panel is placed on the parent panel, and the parent panel is not saved, or only saved but not closed and reopened, the assignment of the same name to another panel reference will not fail.
I've tried to find another way to determine, from the configuration panel, if a name has already been assigned to a reference panel on the parent panel, but have been unsuccessful. Without this ability, I don't know how to automatically assign names and keep them unique.
It seems there would be no good reason to change the way it worked before to how it works now, so I assume that this is an unintentional error that was introduced in one of the more recent patches. Is this known and is it going to be fixed? I
If my explanation is not clear enough, I can attach a sample project with instructions of how to reproduce the problem.
Recent change allows duplicate reference panel names in a parent panel
- tgdannemiller
- Posts:23
- Joined: Thu Apr 21, 2016 3:29 pm
Recent change allows duplicate reference panel names in a parent panel
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Recent change allows duplicate reference panel names in a parent panel
From the description I cannot identify how the configuration panel gets the information which reference names are already in use.
Can you please just provide the panel which is used for the reference configuration. If the panel is using library functions also the libraries are needed.
A complete project is not necessary.
Best Regards
Leopold Knipp
Senior Support Specialist
Can you please just provide the panel which is used for the reference configuration. If the panel is using library functions also the libraries are needed.
A complete project is not necessary.
Best Regards
Leopold Knipp
Senior Support Specialist
- tgdannemiller
- Posts:23
- Joined: Thu Apr 21, 2016 3:29 pm
Re: Recent change allows duplicate reference panel names in a parent panel
The panel and library scripts it uses are attached: https://www.winccoa.com/fileadmin/image ... cripts.zip
The code that tries to set the unique name to the associated reference panel is in the Clicked script of the OK button. You probably don't need to look through the library files because they are not involved in the naming, but I have included them as requested.
The code that tries to set the unique name to the associated reference panel is in the Clicked script of the OK button. You probably don't need to look through the library files because they are not involved in the naming, but I have included them as requested.
- Attachments
-
- PanelandScripts.zip
- (11.65 KiB) Downloaded 188 times
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Recent change allows duplicate reference panel names in a parent panel
I made some tests with the panels and simplified the code.
It looks like the functionality of setDollarParams and getDollarParams has slightly changed.
In your code you are using these functions and if the value for some parameters is the name the name is changed in a loop. The different reference name is assigned by your code and not by the UI.
The different behaviour was reported to our development team for further analysis.
Best Regards
Leopold Knipp
Senior Support Specialist
It looks like the functionality of setDollarParams and getDollarParams has slightly changed.
In your code you are using these functions and if the value for some parameters is the name the name is changed in a loop. The different reference name is assigned by your code and not by the UI.
The different behaviour was reported to our development team for further analysis.
Best Regards
Leopold Knipp
Senior Support Specialist