Adding UI Component for collection association joining model to an enumeration in a Many to Many relationship. I’ve added below facet to the collection attribute of call record
(f_ui_component_field ((allow_associated_fields . #f) (caption .”idsc.CallRecord.callrecordANZCampaign”) (type . “CallRecordANZCampaign”) (tag . “_ac_”)))
Which gives me an error in the console “nexj.core.meta.TypeMismatchException: Type mismatch in oid”
Then, I had tried an alternative solution by using UIComponentSeeder option
(:: nexj:ui:UIComponent:1.0:type:UIField
:name “callRecordANZCampaigns anzCampaign”
:type “enum”
:isEnumeration #t
:localizations (getLocalizations “idsf.CampaignList.campaigns”)
)
Throws a different exception when adding new call records
nexj.core.meta.AttributeTypeMismatchException: Type mismatch in attribute “stringValue” of “TypedBasicObject<nexj:ui:UIComponentClient:1.0:type:UIFieldValue@806215135>(type=”enum”, name=”callRecordANZCampaigns anzCampaign”)” (expected “string”, got “any”). (err.meta.attrTypeMismatch)