Hide Technical Stuff
Depending on the value of Ivy variable PortalHiddenTaskCaseExcluded
, hidden
tasks and cases are shown (FALSE
) or hidden (TRUE
). Default value is TRUE
.
Hide Technical Roles
A technical role is not displayed anywhere (e.g. in delegation or absence
management). AXONIVY_PORTAL_ADMIN
is a technical role by default.
To mark a role as a technical role, set the HIDE
property with any
value on the role.
Use the utility method of Portal
- Set property:
com.axonivy.portal.components.util.RoleAPI.setProperty([YOUR_ROLE], ch.ivy.addon.portalkit.enums.AdditionalProperty.HIDE.toString(), “HIDE”)
- Reverse it:
com.axonivy.portal.components.util.RoleAPI.removeProperty([YOUR_ROLE], ch.ivy.addon.portalkit.enums.AdditionalProperty.HIDE.toString())
Hide Technical Tasks
A technical task is not displayed in any task lists of Portal.
To mark a task as a technical task, follow one of the two ways below:
Use the utility methods of the Portal TaskAPI
If your project depends on Portal
- Set task as technical:
com.axonivy.portal.components.util.TaskAPI.setHidePropertyToHideInPortal(ITask)
- Reverse it:
com.axonivy.portal.components.util.TaskAPI.removeHidePropertyToDisplayInPortal(ITask)
Use the customfields of the ITask API
Open the task editor, expand the Custom Fields
section
- Set task as technical:
Define a
STRING
field with the nameHIDE
. Set value toHIDE
- Reverse it:
Remove the custom
STRING
field namedHIDE
Hide Technical Cases
A technical case is not displayed in any case lists of Portal.
Tasks belonging to a technical case are considered technical tasks and should be hidden as well.
To mark a case as a technical case, follow one of the two ways below:
Use the utility methods of the Portal CaseAPI
If your project depends on Portal
- Set case as technical:
com.axonivy.portal.components.util.CaseAPI.setHidePropertyToHideInPortal(ICase)
- Reverse it:
com.axonivy.portal.components.util.CaseAPI.removeHidePropertyToDisplayInPortal(ICase)
Use the customfields of the ICase API
Open the case editor, expand the Custom Fields
section
- Set case as technical:
Define a
STRING
field with the nameHIDE
. Set value toHIDE
- Reverse it:
Remove the custom
STRING
field namedHIDE