Skip to Content

Object ID - What is the best practice for inserting objects in a flavor?

Hi,

I have noticed that the unique ID associated with objects that I add to a flavor seem to be dependent on where the object first drops on the screen.

For instance, I just added a number of radio buttons to a group container. Of these radio buttons, I have three different lengths of IDs.

The shortest IDs have a format like: wnd[0]/usr/radPersonas_123456789012345.

The next shortest ones have a format like: wnd[0]/usr/subPersonas_123456789012345/radPersonas_123456789012346.

And the longest ones have a format like: wnd[0]/usr/subPersonas_123456789012345/boxPersonas_123456789012345/radPersonas_123456789012347.

I believe the length of the ID depends on if the new object first lands on the basic screen canvas, within an existing object on the screen (such as a group box), within an existing object that is already located within another existing object, etc, etc.

They seem to behave the same way, regardless of how they are defined. And they cannot be shortened by removing a parent object, once they are created.

I'm wondering if anyone else has noticed this, and if so, if you make an effort to control the length of your IDs.

To me, the shorter the better for the IDs, so I believe it would be beneficial to always have new objects created on the basic screen canvas. I believe this can be fairly easily controlled by initially including some blank space at the top of your page for new objects to initially land on.

I'd be interested to hear your thoughts on this topic, and if anyone knows of a reason to not create the shortest possible IDs. Thanks for your help!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 30 at 10:44 PM

    Hi Jeff,

    The important here is to have Personas knowing the objects you intend to work with.
    The IDs per se should not cause any issue.
    You mentioned "To me, the shorter the better for the IDs". Have you faced any issue with longest IDs?

    Kind regards,
    Cris

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 11 at 02:28 PM

    Hi Cris,

    Sorry, I missed your reply since this post had sat so long.

    You are correct, everything seems to function correctly, regardless of the length of the ID.

    And no, I haven't really had issues with the longer IDs, other than having to do a lot of scrolling to the right sometimes if I'm working on a line of code with one or more long names embedded in it. This isn't as much of an issue now that we can undock the script window, but still annoying at times.

    I've kind of got in the habit of making sure I click in the main user area before I create a new screen object, regardless of where it will reside. This seems to create the shortest IDs.

    Thanks for your reply.

    Jeff

    Add comment
    10|10000 characters needed characters exceeded