Tuesday, May 12, 2015

Code for status change for menuitem button(access a class through menuitem button) in a listpage based on enum value

class EmpAccountstatusChange_s
{
    EmpFullDetails_s emp;//table declaration

}

public static void main(Args args)
{
    EmpFullDetails_s emp;//table declaration
    EmpAccountstatusChange_s EmpASC ;//class declaration
    EmpASC = new EmpAccountstatusChange_s();


    emp=args.record();
    emp.AccountStatus_s=AccountStatus_s::Active;
}

Note:If u click on statuschange with selection of inactive field then it become active after clicking status change button

No comments:

Post a Comment

Export a copy of the standard user acceptance testing (UAT) database

 Reference link: Export a copy of the standard user acceptance testing (UAT) database - Finance & Operations | Dynamics 365 | Microsoft ...