and when u click the button inside override the Click() and get the all value by container then separate the values then u may show in form or report that ur wish.
Yes, it was written for AX 2012, but enums, temporary tables etc. exist in AX 2009 as well.
You complained that you have an enum, not a string field with a lookup, so you can’t use Caspar’s solution. So I told you to put those enum elements to a temporary table. You asked for a link, so I gave you link where you can see it.
Error executing code: SysLookupMultiSelectCtrl (object) has no valid runable code in method ‘init’.
Tell me the solution…
My coding is ,
super();
//Initialize splitter
// splitter = new SysFormSplitter_X(GrpSplitter, GridContainer, element);
// Populate the data to the temporary table
EnumTemp.setTmpData(element.fillEnumTemp());
qrEnumValues = new QueryRun(queryStr(EnumTemp));
qrEnumValues.setCursor(EnumTemp);
// MultiSelect= StringEdit Control
You said that you can’t use Caspar’s suggestion, because “it is for stringedit control” but you “have to use enum and combobox control”. Now you know how to turn the enum to a temporary table, so you can use Caspar solution.
I didn’t meant you should use SysLookupMultiSelectCtrl instead; that wasn’t the topic.
You can’t expect blog posts covering exactly your scenario in exactly your version. I used this example when you asked for a link regarding how to “put enum elements to a temporary table”. It doesn’t mean that you can copy and paste everything without thinking.
So again, follow the blog post to put values of your enum to a temporary table. Then you can use the Caspar’s suggesting using a lookup with ReplaceOnLookup (the blog post I linked also shows how to put temporary tables to lookups), you can use a grid with multiselection (as suggested in the first reply), a grid with tickboxes for selected values or any other solution based on tables, because you now know how to resolve the limitation of using an enum by converting it to a table.