Тема: Container in Grid
Показать сообщение отдельно
Старый 04.09.2009, 11:01   #3  
Kent is offline
Kent
Участник
 
46 / 10 (1) +
Регистрация: 24.01.2007
I have problem with displaying. Axapta tray display it as image and I got an error. That is the problem.
I have code: I collect data from ListView and insert it in container, and container I post in table. 'Field' have extended data type "Container".

X++:
    container    con;
    Set          set = new Set(Types::String);
    ;

    idx = ListSelected.getNextItem(FormListNext::All);
    while (idx != -1)
    {
        item = ListSelected.getItem(idx);
        set.add(item.data());
        idx = ListSelected.getNextItem(FormListNext::All, idx);
    }
    con = [set.pack()];
    table.Field= con;
    table.insert();
After this, in table in container field I got this result: The question is - how to display this in Grid ?
Миниатюры
Нажмите на изображение для увеличения
Название: container.JPG
Просмотров: 668
Размер:	77.4 Кб
ID:	5092  

Последний раз редактировалось Kent; 04.09.2009 в 11:05.