Menu

field hiding

Vincenzo K
2023-01-11
2023-01-12
  • Vincenzo K

    Vincenzo K - 2023-01-11

    Good morning,

    is there a way to hide custom field on Lnkcontacttofunctionalci for some Ci's?

    Best,

     
  • Vincent @ Combodo

    You can check this Tutorial for hiding a field. Where it says OPT_ATT_READONLY replace it by OPT_ATT_HIDDEN

    But as you want it on a linked set attribute, those methods will have no effect. Only if you display explicitly the Link object, they will have an effect.
    As those fields are displayed in a table, hiding a column for some CIs only, does not make sense.
    If you have in your table a CI for which it's applicable and one for which it should be hidden, well, it's not possible.

     
  • Vincenzo K

    Vincenzo K - 2023-01-12

    I'll try to explain my requirement as best I can:

    I need to make visible the custom field that I declared in the Lnkcontacttofunctionalci class which can be for example administrative permission, only if the selected ci is PC.

    This is because it would not make sense to display the administrative permission custom field on a ci that does not have administrative permissions.

     
  • Vincent @ Combodo

    The best might be a create a separate lnkContactToPC class for that particular need

     
    • Vincenzo K

      Vincenzo K - 2023-01-12

      Thanks for your advice!

      May you share a sample InkContactToPC class to follow better your instruction please?

      Thanks a lot!

       
      • Hipska

        Hipska - 2023-01-12

        Just extend the existing LnkContactToFunctionalCI and add your new field there. On class PC, You will need to add a new AttributeLinkSet and on the presentation hide the old contacts_list field.

        If we understand correctly what You want, that should be working..

         
        • Vincenzo K

          Vincenzo K - 2023-01-12

          Hello.

          Can you share a sample code?

          Best,
          VK

           

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.