Home Forums Development Adding UI Component for collection association joining model to an enumeration

Viewing 1 reply thread
  • Author
    Posts
    • #10998
      Santhosh ManickamSanthosh Manickam
      Participant

      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)

      0
    • #11007
      Santhosh ManickamSanthosh Manickam
      Participant

      Please give me your suggestion or recommendation to implement a better solutions

      0
Viewing 1 reply thread
  • You must be logged in to reply to this topic.