What is the best way to change the properties of multiple items via script at once?

What is the best way to change the properties of multiple items via script at once? A “for” loop could do it but is there a simpler way?

Can we set items to the same name and use getItemByName?

]]>

4 Commentsto What is the best way to change the properties of multiple items via script at once?

  1. Anonymous says:

    < ![CDATA[

    getItemByName returns the first item with this name. Names should be always unique. A For loop is pretty much all you can do.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    thanks … good to know! saved me a ton of time trying to find alternatives

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Or you may edit the property at the container level too, items would inherit the containers value.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Pierre Hébert that’s a great point, will try that instead. Would that also allow also swipe actions across the items in the container (i.e. swipe zone extends across container not confined to individual items), simultaneously with swipe zones for each item in the container?

    ]]>

Leave a Reply

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