Home > X++ stuffs > Customize your Own sysPickListForm

Customize your Own sysPickListForm

 

Here is a small job which will explain how to add a map object to the sysPickList form. After executing the job you’ll observe something like this

 

img364/8273/44532621qy6.jpg

 

static void SysPickList_Map(Args _args)

{

    Map     s = new Map(Types::Integer, Types::String);

    Object  formRun;

    ;

 

    //Add values to the set

    s.insert(1, ‘Santosh.R’);

    s.insert(2, ‘Chaitanya G.S.S’);

    s.insert(3, ‘Sampath.B’);

    s.insert(4, ‘Madan.T’);

    s.insert(5, ‘Chaitanya.P’);

    s.insert(6, ‘Veeresh.J’);

    s.insert(7, ‘Naveen’);

 

    _args = new Args(formstr(SysPick));

    _args.parmObject(s);

 

    formRun = classfactory.formRunClass(_args);

    formRun.init();

    formRun.run();

    // Returns the sysPick Caption.

    formRun.setCaption(‘Set PickList’);

    formRun.wait();

}

 

For any further reference try to research the Global class & function in AX which explains how can the sysPick be used.

 

 

Advertisements
Categories: X++ stuffs
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: