Hi guys,
In my task, I want to make a standard RetailTransactionSalesTrans form to be editable. One of the caveat is this form must be call from my custom menu. So I'm creating CoC for FormDataSource but seems not working,
Here is the code, Forgive me to not using Code block because in my experience it is un-usable.
[ExtensionOf(FormDatasourceStr(RetailTransactionSalesTrans, RetailTransactionSalesTrans))]
internal final class MY_FormRetailTransactionSalesTrans_Extension
{
public int active()
{
boolean ret;
ret = next active();
if(ret && this.formRun().args().menuItemName() == menuitemdisplaystr(MYInquiriesTransactions))
{
this.allowEdit(NoYes::Yes);
}
return ret;
}
}
When debug, seems nothing's wrong with the IF condition, the code to make it allowEdit is executed. But somehow the form is still not editable.
For the standard form we can find in Retail and Commerce > Inquiries and reports > Store transactions, which if we go through its menu Transaction -> Sales Transactions ->
So we will have the form ->
What I intended is to be able to edit the Financial Dimension of the current row. May I know how to make this form editable ? especially Financial Dimension tab part.
Thanks