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