Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Thursday, June 27, 2013

SelectionChange() in Dynamic AX

Hi,

Validating the radio button with reference to its selection over the stringEdit Field.
On Changeing the option the adjacent stringedit will be enables and remaining will be disable as follows.

public int selectionChange()
{
    int ret;

    ret = super();
     switch(OptionRbt.selection())
     {
            case (1) :
          {
           DateEdit1.enabled(true);
           DateEdit.enabled(false);
              break;
          }

            case (2):
          {

            DateEdit1.enabled(false);
            DateEdit.enabled(true);
              break;
          }

     }
    return ret;
}

Regards,

No comments:

Post a Comment

WorflowWorkitemActionManager- Customizations. - Validation on workflow approval actions in D365 Fno / AX 2012 R3

D365FO Workflow Validation Before Action Execution Workflow Validation Before Executing a Workflow Action in Dynam...