Menu

ExternalKey filter not applied in remote LinkedSetIndirect attribute

2017-08-24
2017-11-21
  • Pierre DEBRIS

    Pierre DEBRIS - 2017-08-24

    Hello,

    I have started customizing iTop (version 2.3.3) for 6 months now, for a client in the french industry.
    Everything went fine so far (thank you Combodo team for your amazing job !), but since 2 days I got an issue I'm unable to resolve.

    In "classA" I have a LinkedSetIndirect attribute representing a hosts list, and this attribute points to an ExternalKey attribute in "classB" (a link class) with an OQL filter (I want to select FunctionalCI only of final class Server or VirtualMachine). The issue is that this filter is not applied in the GUI, and the list of FunctionalCI users can attach to objects of classA is not restricted to only Server/VirtualMachine ...

    The OQL query is ok, I checked it from the Admin Tools > OQL Queries menu in iTop GUI. The "filter" parameter is working fine when used on a "local" attribute, on a LinkedSet attribute for example, but does not seem to work "remotely" when external attribute of other class point to an attribute with a filter.

    Does anyone has already encountered this kind of issue ? Do you think it is coming from a bad parameter in my customization, or can it be a bug in iTop code ?

    Thank you !

     
  • Vincent @ Combodo

    Hi Pierre,
    It can well be a bug / limitation.

    Is the filter ignored when you edit the relation from a classA object as well as when you edit it from a classB object?

    This topic is scheduled to be addressed in version 2.5 of iTop which is planned for 2018.

    Workaround: Some people managed to prevent this by overwritting the method DoCheckToWrite() but this is far less user friendly.

     
  • Pierre DEBRIS

    Pierre DEBRIS - 2017-08-25

    Hi vdumas,

    The filter is only ignored when I edit the relation (the AttributeLinkedSetIndirect field) from classA objects. From classB objects the filter is well applied (on this side, the attribute is a AttributeExternalKey). The classB is originally a link class, so objects of this class are not indented to be manually edited. But, just for the test, I put <is_link> to 0.

    If there is a ticket opened for this topic, can I have its number please ? Otherwise I'll wait iTop 2.5 version and I'll see ;) In the meantime, I'll try the suggested workaround.

    Thanks a lot for your quick and helpfull answer ;)

     
  • APO

    APO - 2017-11-21

    Ran into the same problem attempting to select on finalclass to link specific FCIs into a list. Filters worked in Admin Tools Query tester just fine but attempting to pre-select only NetworkDevices for instance always returned full list of available FCIs. Worked the problem for several weeks but eventually gave up.

     

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.