Pages

May 22, 2012

Hide data conditionally for a specific group

This entry is part of the Conditional Expressions HowTo.

A very typical customization task is to restrict the visibility of data within Maximo/TPAE applications based on certain conditions.
For example you may wish to hide all the purchase orders that have a total costs higher than 1000$ for a specific group. Here is a small tutorial about how you can achieve this.

Open Administration - Conditional Expression Manager application and create the following conditional expression.

  • Condition: POCOST
  • Description: Total cost is less than 1000
  • Type: EXPRESION
  • Expression: totalcost<1000




Now go to the Security - Security Groups application. Choose the desired group and open the Data Restrictions tab.
Create the following Object Restriction:

  • Object: PO
  • Type: QUALIFIED
  • Reevaluate: true
  • Condition: POCOST




If you now logon with a user belonging to the chosen group and open the Purchase Orders application you will see that only POs with a total cost of less than 1000 will be listed.

There are three types of object restrictions that may be used to accomplish different goals:
  • Hidden: The objects for which the condition is evaluated to true will be displayed as XXXXX and cannot be selected.
  • Qualified: The objects for which the condition is evaluated to false will be hidden.
  • Readonly: The objects for which the condition is evaluated to true cannot be updated.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi,
    I am facing a problem.While I am clicking the look up,no data is displaying for one user.But for another user data is coming properly.what would be the problem.? Where should i check for the same?

    Thanks in Advance

    ReplyDelete

Note: Only a member of this blog may post a comment.