Тема: tmp fields
Показать сообщение отдельно
Старый 30.09.2009, 16:21   #1  
Kent is offline
Kent
Участник
 
46 / 10 (1) +
Регистрация: 24.01.2007
tmp fields
Privet!

Estj, naprimer, table EmplTable. Hochu ispoljzovat jevo strukturu in polji, kak tmp table

EmplTable.setTpm();

No kak ubrakj fields katoriej nenuzhni (naprimer, kakie polji, katorie mandatory, nu mne ix nenuzhnji) i tak zhe podlazhit novix fields ???

Patom ja store etot tabljicu v konteinere, a konteiner v tabljice.

X++:
container tmpCon;
container conTable
        //store tmp table in container
        tmpCon = buf2con(courseTable);
        conTable = conins(conTable,conlen(conTable)+1,tmpCon);
        Table.containerField = conTable;
A vtarom mestje iz etova tabljice ja palucjaju etot container c etom tmp tabljicu.

X++:
    tmpTable.setTmp()
    con = Table.containerField;
    //store data in tmpTable from container
    for (i=1;i<=conlen(con);i++)
    {
        con2buf(conpeek(con,i),tmpTable);
        tmpTable.insert();
    }

Последний раз редактировалось Kent; 30.09.2009 в 16:24.