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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good morning,
is there a way to hide custom field on Lnkcontacttofunctionalci for some Ci's?
Best,
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.
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.
The best might be a create a separate lnkContactToPC class for that particular need
Thanks for your advice!
May you share a sample InkContactToPC class to follow better your instruction please?
Thanks a lot!
Just extend the existing
LnkContactToFunctionalCI
and add your new field there. On classPC
, You will need to add a new AttributeLinkSet and on the presentation hide the oldcontacts_list
field.If we understand correctly what You want, that should be working..
Hello.
Can you share a sample code?
Best,
VK