Thursday, November 27, 2014

How to build a User List Lookup / Drop Down in AX 2009

User List Lookup / Drop Down
Step 1:Create a method in the form to get the user list lookup
void userListLookup(FormStringControl control)
{
    Args                args;
    MenuFunction        menuFunction;
    Object              formRun;
;

    args = new Args();

    menuFunction = new MenuFunction(menuitemdisplaystr(WorkflowUserListLookup), MenuItemType::Display);
    args = new Args(menuFunction.object());
    args.caller(element);
    args.parm(control.text());

    formRun = ClassFactory::formRunClassOnClient(args);
    formRun.init();
    formRun.run();
    formRun.wait();

    if (formRun.closedOk())
    {
        control.text(formRun.parmTo());
        element.redraw();
    }
}

Step 2: Call the method in the lookup event of the EDT
public void lookup()
{
    element.userListLookup(this);
}


Alternative Method: Just select WorkflowUserListLookup as formhelp on your EDT

5 comments:

  1. This article was very helpful in answering alot of questions about Microsoft Dynamics CRM. I will be looking forward to such companies like Evincible Solutions. Thanks for posting.

    ReplyDelete
  2. Hello,your blog it's a wonderful resource for the AX community and for me, Thank you for blogging and sharing of your knowledge.

    ReplyDelete
  3. Hi! Thank you for this useful articles, I really like it and find it very helpful for people who want to learn something new about dynamics ax . I’m just discovering the main tools and tips of this system, so your tutorial about building a User List Lookup was new for me. Hope I will find more information on your blog :)

    ReplyDelete
  4. oracle fusion Cloud HCM online training at erptree.com is worlds best online training center. we have excelent knowledge sharing Platform. we have students from all over the world.We have 10+ years of experience, we can serve various ascent people.
    user friendly website developed for students where you will be provided with all the required details and Self-paced
    DEMO videos.we have our branches in pune, gurgaon, noida, india, usa, uk, uae, oracle fusion hcm training, fusion Procurement training, fusion hcm, scm training


    Oracle Fusion HCM Training

    ReplyDelete