Multi – column selection list

Below is the code that will illustrate creating lists with multiple columns and selection check boxes through code.
 
For this we will use two methods from ‘Global’ class
 
1. selectMultiple (Create the multiple selection list)
2. conView (View the selected rows data)
 
Here is the sample code
 
static void selectMultiple(Args _args)
{
    container con;
    container ret;
    str       label;
    int       id;
    boolean   set;
    boolean   ok;
    ;
    label   = ‘Sumit’+’\n’+’Loya’;
    id      = 1;
    set     = false;
    con     += [sysListSelect::packChoice(label, id, set)];
    label   = ‘Sreenath’+’\n’+’Reddy’;
    id      = 2;
    set     = true;
    con     += [sysListSelect::packChoice(label, id, set)];
   
    label   = ‘Kamalakannan’+’\n’+’Elangovan’;
    id      = 2;
    set     = false;
    con     += [sysListSelect::packChoice(label, id, set)];
    [ok, ret] = selectMultiple(‘Names’, ‘Select one or two names’, con, [‘First Name’, ‘Last Name’]);
    conView(ret);
}
Below are the screen shots for the same
 
Multi select list
 
Below is the screenshot of the container view
 
 
 

Leave a Reply

Fill in your details below or click an icon to log in:

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