WebHare community

WRD: attribute reference to array item

Can a WRD attribute reference an (array) item?

So, if I have this:

<object>
  <attributes>
    <array tag="X">
      ...
    </array>
  </attributes>
</object>

Can I make an attribute in an other object that’s a reference to (one of the array items of) X?

No. You could add a GUID of some sort to the array elements, and refer to that GUID.

Does WRD have helper functions for generating a GUID for array elements, or is it a case of “you’re on your own here”?

Not WRD itself, but there’s GenerateUFS128BitId