Interview Questions

Wednesday, May 14, 2014

Validate an enum in Dynamic AX

//Validate an enum

 if(NetOccupied.valueStr() == enum2str(NetOccupied::Vacant))
        CreateReservation.enabled(true);
    else
        CreateReservation.enabled(false);

No comments:

Post a Comment