I have implemented the code described in the following link:
https://github.com/volkanceylan/Serenity/wiki/Lookup-Editors:-How-to-Create-Lookup-Editor-for-code-description-tables
On the form file ModulesDefaultEstimationsDetailEstimationsDetailForm.cs I have use the ItemsEditor2 custom Lookupeditor and it works perfectly:


But after running the T4 templates , the generated file ImportsServerTypingsDefault.EstimationsDetailForm.ts does not have the ItemId field:

If I use instead the standard [LookupEditor(typeof(ItemsRow))], the field ItemId is generated. I need that field as I need access to the changeSelect2 event in the dialog file.
In wiki, at this point there is an error
public partial class LKCodeDescrAttribute : LKCodeDescrAttribute
is instead
public partial class LKCodeDescrAttribute : LookupEditorBaseAttribute
Your source is correct?
(now I correct the wiky)
Don't know whether it is a bug or not. For some reason, the serenity does not generate for sub-namespace like RootNamespace.Default
I think your namespace in customEditor.ts is other than your RootNamespace (maybe it is RootNamespace.Default) remove the .Default part from namespace then build and t4. I hope your issue will be resolved.
In wiki, at this point there is an error
public partial class LKCodeDescrAttribute : LKCodeDescrAttribute
is insteadpublic partial class LKCodeDescrAttribute : LookupEditorBaseAttribute
Your source is correct?
(now I correct the wiky)
Thanks, I have fixed that part although it was not the reason why the field was not being generated. Additionally I needed to remove the base prefix from the values below:
CodeName = codeFieldName;
DescrName = descriptionFieldName;
Don't know whether it is a bug or not. For some reason, the serenity does not generate for sub-namespace like
RootNamespace.DefaultI think your namespace in customEditor.ts is other than your RootNamespace (maybe it is
RootNamespace.Default) remove the.Defaultpart from namespace then build and t4. I hope your issue will be resolved.
It worked, thanks!!!
Most helpful comment
Don't know whether it is a bug or not. For some reason, the serenity does not generate for sub-namespace like
RootNamespace.DefaultI think your namespace in customEditor.ts is other than your RootNamespace (maybe it is
RootNamespace.Default) remove the.Defaultpart from namespace then build and t4. I hope your issue will be resolved.