I know, confusing subject line.
I am just starting to play with generated typed lists, so this might be an easy question.
Here is what I know you can do:
case (int)LookupType.Permission_Lookup:
PermissionListTypedList typedList = new PermissionListTypedList();
fields = typedList.GetFieldsInfo();
relations = (IRelationPredicateBucket)typedList.GetRelationInfo();
break;
Here is what I'd like to do:
case (int)LookupType.Permission_Lookup:
TypedListBase typedList = new PermissionListTypedList();
break;
//then somewhere outside of the switch statement:
fields = typedList.GetFieldsInfo();
relations = (IRelationPredicateBucket)typedList.GetRelationInfo();
I realise that this doesn't work because the GetFieldsInfo() and GetRelationsInfo() methods are not on the TypedListBase class.
The general problem I am trying to solve: dynamically retrieve a (non dynamic
) typed list.
Is there another way I could do this, short of writing concrete field creation methods for each typed list? There are factories for TypedView fields and Entitiy fields, but not TypedList fields, right?
Thanks in advance for any help.
Phil