Menu

Itop 3.2.1 AttributeLinkedSet Filter

2025-03-11
2025-03-14
  • Guillaume Vaillant

    Hello,
    Are filters on AttributeLinkedSet fields planned for the future?
    Or do you have an alternative to display a filtered list ?

    Thank you
    Regards

     
  • Vincent @ Combodo

    The filter have already an effect in one corner case, when you edit such AttributeLinkedSet(Indirect) as a "property" and not as a tab. The filter is used for edition.
    If your purpose is to have a filter in display, you must use AttributeDashboard to display a filtered relationship.
    If your purpose is to filter in edition as a tab get a look at PrefillSearchForm() as well as the ExternalKey filter tag for AttributeLinkedSetIndirect

     
    • Guillaume Vaillant

      Thank's for your answer.
      For the context i'm trying to add a tab in view mod on the Location Class.
      the AttributeLinkedSet work great but i can't filter the result on a specific field.
      The DisplayBareRelations seem to not work on Location Class, maybe i'm doing something wrong, but when i try the same method on a custom class it's working well and add the Tab.

       
  • Guillaume Vaillant

    So i should use AttributeLinkedSetIndirect instead of AttributeLinkedSet ?
    In this following code, the filter is not working
    <fields>
    <field id="toto_list" xsi:type="AttributeLinkedSet" _delta="define">
    <linked_class>TOTO</linked_class>
    <filter><![CDATA[SELECT TOTO AS D WHERE D.tv='yes']]></filter>
    <ext_key_to_me>location_id</ext_key_to_me>
    <edit_mode>add_only</edit_mode>
    <count_min>0</count_min>
    <count_max>0</count_max>
    </field>
    </fields>

     
  • Vincent @ Combodo

    DisplayBareRelations works on all class, but it's much more work than adding a simple AttributeDasboard which would display what ever filtered lists and dashlets related to the current object, you want.

     
    👍
    1
    • Guillaume Vaillant

      Great thank you, it's works with a Dashboard

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.