
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi everyone,
Oh man, this new forum is confusing. I hope this is the right place to ask.
I wonder if anybody has a good idea about how I can copy a multi valued attribute from one object, to another multi valued attribute on onother object.
My experience is, that just setting the src attr on the second object to the src attr from the first object, just gives the first value in the multi valued attribute.
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Otherwhise you need to loop over it with a for each and add all values one by one.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thanks
Since the value type can only be specified as dn, string, integer etc, there is not an option to specify that the source attribute value should be a node set (when setting it).
So looping must be it,
First clearing the attribute, and then adding values one by one.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
By nodeset, he meant use a variable, which is a nodeset, for the value to copy. Not the type, not the attribute.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I did try that, and failed miserably.
I ended up looping.