Home › Forums › Presentation › Controls › Used Filter name not showing
- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by Atulan Zaman.
-
AuthorPosts
-
-
January 18, 2021 at 3:49 pm #15047Mark De CarvalhoParticipant
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.
0Attachments:
You must be logged in to view attached files. -
January 18, 2021 at 4:55 pm #15077Atulan ZamanParticipant
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-
January 20, 2021 at 6:19 pm #15119Mark De CarvalhoParticipant
Hi Atulan, does the filter file i shared help? Anything else you need to diagnose potential issue?
0
-
-
January 19, 2021 at 9:58 am #15098Mark De CarvalhoParticipant
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-
January 21, 2021 at 10:51 am #15134Atulan ZamanParticipant
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-
January 21, 2021 at 3:44 pm #15143Mark De CarvalhoParticipant
Perfect, all set now! Thanks for your help.
0-
January 21, 2021 at 3:48 pm #15152Atulan ZamanParticipant
Great! Glad to hear it worked out.
0
-
-
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.