Tuesday, 15 October 2013

Switch statement : SelectionChange() in Dynamic AX

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;
}

No comments:

Post a Comment