Coping/Referencing/Cloning list/droplist object values to another list/droplist object

Avatar

Avatar

Yasser__AST-IT_

Avatar

Yasser__AST-IT_

Yasser__AST-IT_

11-08-2011

Hi,

I have a list object (list1) that is empty and another list that have over 1,000 items (list2).

How I can copy the values in list2 to list1 without looping through list2 items? Is there a reference assignment? For example; you can copy the image value of one image object to another image object by using the following assignment:

    ImageField1.rawValue = Image1.value.image.value;

I tried the following for the list but did not work :

list1.rawValue = lsit2.rawValue;

lsit1.value = list2.value;

list1.items = list2.items;

Really appreciate your help,

BR,

Yasser

View Entire Topic

Avatar

Avatar

Yasser__AST-IT_

Avatar

Yasser__AST-IT_

Yasser__AST-IT_

12-08-2011

Thanks Nail,

Yes this will work perfectly if the list of items are minimal, but if you have 1,000's of line items (such product SKU's) then, this will be over killing, especially if you have this DD in a repeatable sub-forms (kind of BoQ). This will be a huge overhead both in size and perfromance...

I'm still researching a kind of "in-memory" or "pointer" referencing of values in DD...I hope someone from Adobe product development team can shade a light on a "non-documented" method.

BR,

Yasser