Home Forums Presentation Controls Used Filter name not showing

Viewing 2 reply threads
  • Author
    Posts
    • #15047
      Mark De CarvalhoMark De Carvalho
      Participant

      For the life of me I cant seem to figure out how to get the configured filter to display what the user has chosen. For instance “Client State equals Active”, I can only get it to show “Touch Status” instead of “Touch Status equals Completed” for example. How is that part of the filter configured? See screenshots attached, first one is how it should work, second is how it looks at the moment. Also, I read the docs and this doesnt seem to be covered in the filters docs.

      0
      Attachments:
      You must be logged in to view attached files.
    • #15077
      Atulan ZamanAtulan Zaman
      Participant

      Can you please share your .filter file configuration? It’s hard to tell what the missing configuration is.

      My instinct tells me your “association” property for the <Field> element might be incorrect. Meaning your association path does not match the type of the “items” property or the “picker” property. If your “items” an enum, I would ensure that the association path also indicates an enum.

      In this snippet taken for BaseOpportunity.filter eg. “BaseOpportunity -> template -> type” matches the class type that the picker “mda:OpportunityTypeEnum” is associated with. If these two things match the filter control “should” render the selection correctly.

      <Field association=”template type” caption=”IDS_TYPE” case=”OPTY-ALL OPTY-CONTACT” persistent=”true” picker=”mda:OpportunityTypeEnum”/>

      0
      • #15119
        Mark De CarvalhoMark De Carvalho
        Participant

        Hi Atulan, does the filter file i shared help? Anything else you need to diagnose potential issue?

        0
    • #15098
      Mark De CarvalhoMark De Carvalho
      Participant

      Here is the .filter file:

       

      <Filter class=”EntityTouch”>
      <Field association=”touchType” caption=”ids.touchType” multi=”false” persistent=”true” picker=”mda:TouchType” valueCaption=”description”/>
      <Field association=”touchStatus” caption=”idsf.ActDateTouchList.TouchStatus” multi=”false” persistent=”true” picker=”mda:TouchStatusEnum”/>
      <Field association=”tier” caption=”ids.tier” multi=”false” picker=”mda:ClientTierEnum” valueCaption=”caption”/>
      </Filter>

      0
      • #15134
        Atulan ZamanAtulan Zaman
        Participant

        Hi Mark,

        For “touchStatus”, can you please try setting valueCaption=”caption”? The valueCaption property tells the filter which attribute to use for the selected value to render the caption in the filter chip.

        Regarding “touchType”, I can see that you have specified the valueCaption but still the selection is not appearing. Can you please ensure that the “description” attribute is loaded by the picker during selection? If the selection mode for the filter chip is a picker, the attribute needs to be loaded by the picker. Otherwise the filter might get a null value. You can load the attribute (unless it is loaded already) by specifying the “attributes” property in the .picker file. You can find an example of this in EntitlementDivision.picker.

        0
        • #15143
          Mark De CarvalhoMark De Carvalho
          Participant

          Perfect, all set now! Thanks for your help.

          0
          • #15152
            Atulan ZamanAtulan Zaman
            Participant

            Great! Glad to hear it worked out.

            0
Viewing 2 reply threads
  • You must be logged in to reply to this topic.