When adding an action within the Select Action menu in Maximo Application Suite, we may want the action to be only visible to certain people in a Person Group. Let's take a look at practical implementation of conditional control within the MAIN tab and in List view.

Conditional Control on Select Action Menu in MAIN tab

For such conditional UI controls, we can create a Signature Option for the Action and grant access to the users with a condition which checks whether the current person is in the required/specific Person Group.

  1. Create a Signature Option for the Action and select, “This is an action that must be invoked by user in the UI” in the Advanced Signature Options.

A screenshot of a computerAI-generated content may be incorrect.

  1. Create a condition to check whether the current person is in the required/specific Person Group.

A screenshot of a computerAI-generated content may be incorrect.

  1. Grant the Signature Option access in Security Groups to users with the new condition.



Note that the above approach only works in MAIN tab (Record detail tabs) for a single record. If we want the Action to be invoked from application LIST tab (List View), where multiple records can be selected and actioned at once, then you will find the new Action menu is still visible for all users in the Security Group, not limited to certain people in the Person Group, even the condition is applied.


This is not a Maximo bug though and it is working as designed, because:

  • Conditional UI can only operate within the context of a record. On the MAIN tab (Record detail tabs), you have a record in the database.
  • When on the LIST tab (List View), you are only in the resultsetbean so the condition calculations are not the same, hence it doesn't get evaluated on the LIST tab, only on the record detail tabs.

Conditional Control on Select Action Menu in List View

So, how do you create a conditional control on Select Action menu in the List view? Below is an alternative approach.

  1. We still create a Signature Option for the Action and select, “This is an action that must be invoked by user in the UI” in the Advanced Signation Options.

A screenshot of a computerAI-generated content may be incorrect.

  1. Add the Signature Option to Select Action Menu and specify Tabs as LIST.

A screenshot of a computerAI-generated content may be incorrect.

  1. Create an error message in the Database Configuration.

A screenshot of a computerAI-generated content may be incorrect.

  1. Create an automation script with Action Launch Point, which will create an Action with the same name as the Signature Option.

A screenshot of a computerAI-generated content may be incorrect.
A screenshot of a computerAI-generated content may be incorrect.

  1. In the automation script, include below scripts to display error message if the current person is not in the required Person Groups.

from psdi.server import MXServer

from psdi.security import UserInfo

# Get the current user's PERSONID

current_personid = mbo.getUserInfo().getPersonId()

pgtSet = MXServer.getMXServer().getMboSet("PERSONGROUPTEAM", mbo.getUserInfo())

pgtSet.setWhere("persongroup = 'PG_SCDR' and RESPPARTYGROUP = '" + current_personid + "'")

pgtSet.reset()

# Error out if the current person not in Person Group PG_SCDR

if pgtSet.isEmpty():

   service.yncerror("wo", "woCdrAccess")

pgtSet.cleanup()

pgtSet.close()

  1. Test with a user who is not in the required Person Group; the Action is still visible in Select Action in List view, but an error message will pop up when the user tries to run the Action.

A screenshot of a computerAI-generated content may be incorrect.
A screenshot of a computerAI-generated content may be incorrect.

Unlock the Ultimate Guide to IBM Maximo Application Suite (MAS)

Discover everything you need to know to modernize your asset management strategy.

Inside, you’ll learn:

  • What’s new in IBM Maximo Application Suite 9.0
  • Key differences between Maximo 7.6 and MAS
  • How AppPoints and OpenShift change the game
  • Industry use cases across energy, manufacturing, and transportation
  • Step-by-step guidance for upgrading and migration readiness
Cover of 'The Ultimate Guide to MAS Maximo Application Suite' by Naviam featuring a man in a yellow construction helmet and safety vest holding a tablet.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
×

ActiveG, BPD Zenith, EAM Swiss, InterPro Solutions, Lexco, Peacock Engineering, Projetech, Sharptree, and ZNAPZ have united under one brand: Naviam.

You’ll be redirected to the most relevant page at Naviam.io in a few seconds — or you can go now.

Read Press Release