Reputation: 198
I create a temporary table TmpTable(TradeAgreement)
In Relations, I refer TradeAgreement field of TmpTable with RecId field of table TradeAgreementTable.
I create a form TmpForm with datasource is TmpTable
public class FormRun extends ObjectRun
{
TmpTable tmpTable;
}
public void init()
{
TradeAgreementTable tradeAgreement;
super();
while select tradeAgreement
{
tmpTable.clear();
tmpTable.TradeAgreement = tradeAgreement.RecId;
tmpTable.write();
}
TmpTable.setTmpData(tmpTable);
TmpTable_ds.executeQuery();
}
I open TmpForm to see result and try to sort but nothing happens
Upvotes: 1
Views: 817
Reputation: 1874
Set you table type to TempDB
and then your data can be filtered and sorted like regular tables.
Upvotes: 1