Need help regarding SysLookupMultiSelectCtrl in X++


I am facing a problem, i am using SysLookupMultiSelectCtrl class to create a multiselt lookup grid.The lookup contains two columns Code, Description.But the problem is that i want to show the values of the 2nd column (Description) on selecting a record from the grid.but this does,'t happen, it will always show the first column value (Code) when ever i select a record from the grid. My requiremnt is that i want to show the description on selection in the control.

Hope you aomeone might have a solution regarding that.


This is the syntax of syslookupMultiSelectCtrl:

client server public static SysLookupMultiSelectCtrl constructWithQueryRun(

FormRun _frmRun,

FormStringControl _namesCtrl,

QueryRun _queryRun,

[boolean _isMandatory,

container _selectField])

Where ‘_selectField’ parameter is the one which will come in selection if you specify it. Here it is optional. Try to give and check.