Rename variable based on structure datatype in editor wizard
Hello,
Is it possible to rename variables based on structure datatypes by using the addin-framework?
Simple datatypes like i.e. bool is working, but when retrieving all variables I only get the subvariables from the structures. These cannot be renamed of course.
In other words I need to get a list of all variables based on structure datatypes without the structure element variables.
For now I have solved this in the project SQL tables. But I prefer to do it outside the database with the API.
3 Attachment(s)
Re: Rename variable based on structure datatype in editor wizard
Hello bartsmets, <br> <br>If I am understanding you correctly you want to rename a structure variable and all sub elements.<br>I tried this with the following variable setup: <br><br><img src="https://forum.copadata.com/attachment.php?attachmentid=2790&stc=1" attachmentid="2790" alt="" id="vbattach_2790" class="previewthumb"><br><br>With directly accessing the root-element of the structure it is possible to reaname the structure. <br><br><img src="https://forum.copadata.com/attachment.php?attachmentid=2791&stc=1" attachmentid="2791" alt="" id="vbattach_2791" class="previewthumb"><br><br>After executing the code above the variables should be renamed like this: <br><img src="https://forum.copadata.com/attachment.php?attachmentid=2792&stc=1" attachmentid="2792" alt="" id="vbattach_2792" class="previewthumb"><br> <br>I hope that helps! <br><br>