
I am creating a Multi-select lookup for InventLocationId, and I am using sysoperation framework. When my parm method returns a list, this error happens : List (Object) called with invalid parameters.
Contract class :
Class declaration
[ DataContractAttribute,
SysOperationContractProcessingAttribute(classStr(EB_CollectionUIBuilder)) ]
class .....
{
List inventLocationId;
}
[
DataMemberAttribute,
AifCollectionTypeAttribute(‘ inventLocationId ‘, Types::String)
]
public List parmLocationId( List _inventLocationId = inventLocationId)
{
inventLocationId = _inventLocationId;
return inventLocationId ;
}
*This post is locked for comments
I have the same question (0)I believe you did the same mistake as per this community forum topic, when trying to incorrectly use a List object, which is not going to work. The suggested way is in the last post for using the UI builder class:
community.dynamics.com/.../162468
You need to override the lookup method for the control, and use SysLookupMultiSelectGrid helper class. The class decoration for your method with the List object also needs some changes.