I never understood :

I never understood :

What’s the difference between the label, and the Name?

I think (say if I’m wrong) that the name is constant over time and can’t be changed with script, and can’t display either. But the label can.

If I’m right, something I don’t understand, and should be in feature suggestions I think :

When we’re adding an action to open a folder, we need to select the label (which can be changed) ? Or the Name? 

]]>

7 Commentsto I never understood :

  1. Anonymous says:

    < ![CDATA[

    Both label and name can be changed by script.


    Difference: label is shown, name is like a textual ID or key of an item.


    Pierre added name as request by me, because I had multiple items showing the same text (label), so the old getItemByLabel function was not usable. Now items can have different names/keys that can be used by getItemByName, yet still have the same text/label.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Open folder by script: getItemByName, then open.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    A label is the displayed text, while a Name is considered to be an unique ID.



    Regarding that: Pierre Hébert I think Lightning should enforce the uniqueness of names, regardless of the method used to set them. (Sideeffect: LL.getItemByName() would eliminate the problems with LL.getItemById() when importing templates)



    The name is not static and can be changed through script.



     I didn’t get the part with the folder…



    Edit: didn’t saw Lutz Linke s comments.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Thanks Lutz Linke I see. As Lukas Morawietz said I think that would be good to use the name as a unique ID…

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Benoît de Chezelles


    The Name is used as unique ID, the problem is: The user has to keep track if it is really unique.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    So there is no error when setting 2 identical name…

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Benoît de Chezelles


    Yes, and you can’t be sure which one is returned by the methods.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *