Menu

Removing Tab for single input - converting 'linkedsetindirect' to 'externalkey'

2013-11-12
2013-11-13
  • jitsobullet

    jitsobullet - 2013-11-12

    Hi All,

    Under the Server CI, there is currently a tab labelled 'Contacts'. In my case, there will always just be a single contact, and therefore i want to now remove this tab and place a dropdown box on the properties page - to make life easier. Is this possible?

    Kind Regards

     
  • jitsobullet

    jitsobullet - 2013-11-12

    Basically asking if it possible to have an ExternalKey connect to a lnk table, and then by default the current ID of the contact alongside the new chosen Server CI.

     
  • Denis

    Denis - 2013-11-12

    You can add a new ExternalKey field to the Server class, pointing to a Person (or a Contact, as you prefer). Add it to the "details" Zlist and you can then pick a contact on a server.

    However the n:n link between Contacts and Servers is actually defined between Contacts and FunctionalCIs, so it applies to all the (20+) classes derived from FunctionalCI.

    Therefore it's not that easy to change this behavior just for Servers.

    You can remove the field "contacts_list" from the "details" ZList of the class Server. This will hide the "Contacts" tab on Servers, but be aware that the tab "CIs" will remain on Contacts and nothing will prevent you from adding a server on a contact...

    Hope this helps,

     
  • jitsobullet

    jitsobullet - 2013-11-13

    Denis, thank you for the response

    I am aware that the Server class can be directly linked to the Person/Contact Class, but this will then prevent me seeing the CI's linked under Contacts automatically - the tab CI's?

    The N:N link class labelled 'lnkContactToFunctionalCI' is the key here, and i am fine with having all FunctionalCI's as having a single Contact.

    Based on this, can a solution be derived?

    Kind Regards

     

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.