Hi!
I want to use EmplTable structure and fields as tmp Table. EmplTable.setTmp().
Problem is: How to remove fields which i don’t need. Example, mandatory fields and others. And otrher problem is, how to add other fields, which are not in this table?
After then I store this tmp table in container, and container in other table.
container tmpCon;
container conTable
//store tmp table in container
tmpCon = buf2con(courseTable);
conTable = conins(conTable,conlen(conTable)+1,tmpCon);
Table.containerField = conTable;
In other place I get this table with container, which contain my tmpTable and store this container in tmpTable,
which must be with the same structure as first tmpTable.
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();
}
I now that I can create new tmpTable, but how to solve this problem in this way?
Thanks.