My requirement like when my purchase order Status = Openorder i don't want new purchase
order Button.
order Button.
Solution::
- in the AOT, expand Forms and find the form for the list page where the action pane button appears.
Use theInteractionClass property of the form to get the name of the interaction
class for the list page. - Expand Designs, expand Design, and then expand the Action Pane. Get the name of each
action pane button that you want to enable or disable based on the list selection. - Expand Classes, right-click the interaction class for the list page, click Override Method, and
then clickselectionChanged. The Editor window opens and displays the selectionChanged method. - Check that Control which you want to Enable or Disable has property AutoDeclaration is set to Yes.
Write code like this before Super()
this.listPage().actionPaneControlEnabled(formControlStr(PurchTableListPage,NewPurchOrder),false);
else
this.listPage().actionPaneControlEnabled(formControlStr(PurchTableListPage,NewPurchOrder),true);
No comments:
Post a Comment