Dustin Little - 2013-03-28

I'm trying to do something for which I cannot find an example in the distribute datamodels. I'm wondering if the following is possible. I have a class, DomainUserAccount, which is linked to another class, Domain, through an AttributeExternalKey field. I have added an AttributeExternalKey field named domain_id to the PhysicalDevice class. Now I would like to display a LinkedSet of DomainUserAccounts in some classes that inherit from PhysicalDevice (i.e. Server and PC). I have created a lnkPhysicalDeviceToDomainUserAccount modelled after classes such as lnkContactToFunctionCI. In addition to the id and name fields for the two linked classes I have added two AttributeExternalFields named domain_id and domain_name. To get the LinkedSet I've added the following field to the PhysicalDevice class:

<field id="domainuseraccount_list" xsi:type="AttributeLinkedSetIndirect" _delta="define">
    <linked_class>lnkPhysicalDeviceToDomainUserAccount</linked_class>
    <ext_key_to_me>physicaldevice_id</ext_key_to_me>
    <count_min>0</count_min>
    <count_max>0</count_max>
    <ext_key_to_remote>domain_id</ext_key_to_remote>
    <duplicates/>
</field>

So instead of linking to the remote through the physicaldevice_id I am attempting to link through the AttributeExternalKey domain_id. Though there is a Domain defined for the PhysicalDevice and DomainUserAccounts defined for the Domain, no DomainUserAccounts are listed for in the domainuseraccount_list field of the PhysicalDevice descendant.

Is this kind of AttributeLinkedSetIndirect possible?

Thanks for the help!

 

Last edit: Dustin Little 2013-03-28