Minggu, 27 April 2014

How to make a field readonly using conditional expressions

This entry is part of the Conditional Expressions HowTo.

One of the most common Maximo customization scenarios is to make a textbox readonly based on some business rules.
This could be easily achieved using Maximo/TPAE Conditional UI.
As an example, I will describe how to make readonly the Priority in the Asset application when the asset is in 'OPERATING' status.

Define conditional expression

Open Administration - Conditional Expression Manager application and Create the following conditional expression.
  • Condition: OPERSTATUS
  • Description: Status is 'OPERATING'
  • Expression: status='OPERATING'
  • Always Evaluate: True



Configure ASSET application

Open System Configuration - Platform Configuration - Application Designer application and edit the ASSET application. Select the Priority field of the Details section of Asset tab and open the properties window. Click on Configure Conditional Properties button (on TPAE 7.5 it is in the Advanced tab) and configure it as follows.
  • Signature Option: READ
  • Security Group: EVERYONE
  • Property: inputmode
  • Value: readonly



Now open the Asset application and select and OPERATING asset and you should see the Priority field marked as readonly.



Source:http://maximodev.blogspot.com/2012/06/make-field-readonly-conditional.html

Tidak ada komentar:

Posting Komentar