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

14 comments:

  1. 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
  2. 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
  3. 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
  4. Subscribe to learn this new technique in Ax . Give like comments and share
    https://youtu.be/8dXjRzSk910

    ReplyDelete
  5. Good information provided it is useful for people so much
    Best Play and Pre School for kids in Hyderabad,India. To give your kid a best environment and learning it is the right way to join in play and pre school were kids can build there physically, emotionally and mentally skills developed. We provide programs to kids like Play Group, Nursery, Sanjary Junior, Sanjary Senior and Teacher training Program.
    Preschool in hyderabad

    ReplyDelete
  6. Thanks for sharing information
    "Sanjary Academy provides excellent training for Piping design course. Best Piping Design Training Institute in Hyderabad,
    Telangana. We have offer professional Engineering Course like Piping Design Course,QA / QC Course,document Controller
    course,pressure Vessel Design Course, Welding Inspector Course, Quality Management Course, #Safety officer course."
    Piping Design Course
    Piping Design Course in India­
    Piping Design Course in Hyderabad
    QA / QC Course
    QA / QC Course in india
    QA / QC Course in Hyderabad
    Document Controller course
    Pressure Vessel Design Course
    Welding Inspector Course
    Quality Management Course
    Quality Management Course in india
    Safety officer course

    ReplyDelete
  7. Nice information
    We are the best piping design course in Hyderabad, India. Sanjary academy Offers Piping Design Course and Best Piping Design Training Institute in Hyderabad. Piping Design Institute in India Piping Design Engineering.
    Piping Design Course
    Piping Design Course in india
    Piping Design Course in hyderabad

    ReplyDelete
  8. Hello, My Self Mahi Chopra. Get to meet high profile independent escorts Girls models and this is the superb mumbai escorts service you can find in the city of Mumbai.

    Mumbai Escorts | Call Girls in Mumbai | Mumbai Call Girls | Escorts in Mumbai | Russian Mumbai Escorts | Call Girls Service in Mumbai | Escort Service in Mumbai

    ReplyDelete
  9. Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. ppc management

    ReplyDelete
  10. Hello my family member! I wish to say that this post is amazing, nice written and come with approximately all important info's. I’d like to peer more posts like this.

    B.B.A. Time Table 2022 - BBA Part 1 2 3 Ka Exam Schedule
    Banasthali Vidhyapith Time Table 2022
    Bilashpur University Date Sheet 2022
    Yogi Vemana University Exam Time Table 2022

    ReplyDelete