How to enable or disable menuitem button based on the enum field in ax 2012

Hi ,

I have one requirement in ax 2012…

When we will open the sales and marketing >>all quotations >>quotation

In this form I have one filed called quotation stage (enum type :: Sample and PPAP ) based on the this field I want enable or disable menuitem button on custquotationtrans form …

Already I created 2 menuitem button type display.1.sample card

2.PPAP card information

If we I select the " sample" at quotation stage PPAP card information menuitem should disable …

If we select the PPAP at quotation stage sample card should be disable even enable also no problem …

I added this menuitem buttons at line level not header level …

Ok, so you have added a field to SalesQuotationTableListPage. In which table you have added that field?

Is that a custom form?

You can write your code disable/enable in a method and call then method when the stage is modified and in the active method of the form data source.

we added field at SalesQuotationTableListPage and table SalesQuotationTable …

Have you tried the below?

You can write your code disable/enable in a method and call that method when the stage is modified and in the active method of the form data source.