PHP код:
// Another example working with Form Data Source
InventTable inventTable;
FormDataSource fds;
Common common;
;
fds = inventTable.dataSource();
if (fds.anyMarked())
{
inventTable = fds.getFirst(1);
while (inventTable)
{
// do something with cursor InventTable
}
}
else
{
inventTable = fds.cursor();
// do something with cursor InventTable
}
// refresh datasource
common = fds.cursor().data();
fds.research();
fds.findRecord(common);
fds.refresh();