Multiple selects through checkboxes(Containers) :

Hi,
select the multiple itemids from a container and send them to info for printing…..

static void selectMultiple(Args _args)
{
container list;
boolean ok;
int i;
InventTable inventTable;
Map Map = new Map(Types::Integer, Types::RString);
int j;
;
while select inventTable
{
j++;
list += [SysListSelect::packChoice(inventTable.ItemId, j ,false)];
Map.insert(j, inventTable.ItemId);
}

if (conlen(list) >0)
{
[ok,list] = selectMultiple(“List of items”,”Select multiple items”,list,[‘Item numbers’]);
if (ok && conlen(list)>0)
{
setprefix(“Selected items are shown below”);
for (i=1; i<= conlen(list) ; i++)
{
info(map.lookup(conpeek(list,i)));
// info(strfmt("%1",conpeek(list,i)));
}
}
}
}
Output:
selectaaaa

Advertisements

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