[DataSource]
class VendBankAccount
{
/// <summary>
/// Add link to parent table VendTable
/// </summary>
public void init()
{
QueryBuildDataSource queryBuildDataSource;
super();
queryBuildDataSource = this.queryBuildDataSource();
queryBuildDataSource.relations(false);
queryBuildDataSource.fetchMode(QueryFetchMode::One2One);
queryBuildDataSource.addLink(fieldNum(VendTable, AccountNum), fieldNum(VendBankAccount, VendAccount));
queryBuildDataSource.addLink(fieldNum(VendTable, BankAccount), fieldNum(VendBankAccount, AccountId));
}
}
{
/// <summary>
/// Add link to parent table VendTable
/// </summary>
public void init()
{
QueryBuildDataSource queryBuildDataSource;
super();
queryBuildDataSource = this.queryBuildDataSource();
queryBuildDataSource.relations(false);
queryBuildDataSource.fetchMode(QueryFetchMode::One2One);
queryBuildDataSource.addLink(fieldNum(VendTable, AccountNum), fieldNum(VendBankAccount, VendAccount));
queryBuildDataSource.addLink(fieldNum(VendTable, BankAccount), fieldNum(VendBankAccount, AccountId));
}
}
HEY HEY HEY!!! HACK OF THE DAY......!!!!
you can refer current form datasource as This.QueryBuilderDatasource
Comments
Post a Comment