RE: Create View with field from display method
Hi Ajit,
Yes, this is what I initially thought, so I create something like this:
1. In my view, I added this method :
public static server str projInvoiceStatus()
{
DictView dictView = new DictView(tableNum(MyView));
str projInvoiceStatus = dictView.computedColumnString('ProjPostTransView', 'projInvoiceStatus', FieldNameGenerationMode::FieldList);
return projInvoiceStatus;
}
over there, ProjPostTransView is my data source in the view, and "projInvoiceStatus" is the display method of ProjPostTransView.
2. On the Fields node of that view, add new String computed column and use the method no.1, specified in that field -> View Method property.
Is this correct ?
Using my example of BankAccount, is something like this, right ?
DictView dictView = new DictView(tableNum(BankAccountView));
str balance = dictView.computedColumnString('BankAccountTable', 'getBankBalanceAccountCur', FieldNameGenerationMode::FieldList);
return balance;
something not really same is this "getBankBalanceAccountCur" on the example is a display method in the view it self while mine, the display method is in the table's side of the data source.
Thanks,