This entry is part of the Conditional Expressions HowTo.
In this post I will show how to make the Remarks field required in the Receiving application when returning items. This is just an example and the same configuration can be used to hide or show any field based on a particular condition.
A similar post describes how to achieve the same functionality using Data Restrictions.
Define conditional expression
Open Administration – Conditional Expression Manager application. Create the following conditional expression.
- Condition: MATRETURN
- Description: Return material
- Expression: issuetype=’RETURN’
- Always Evaluate: False
Configure RECEIPTS application
Open System Configuration – Platform Configuration – Applications Designer application and edit the RECEIPTS application. Select the Remarks field of the Material Receipts section of Material Receipts 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: required
Here is how the Conditional Properties properties should look like.
Now open the Receipts application you will see that the remarks field is now required when returning an item.
hi,
I have made a field mandatory through the application designer.But when when i try to import data from flatfile i'm able to import null value
Request your support
This is the correct behavior. This article use the TPAE Conditional UI functionality that allows to dynamically change the presentation elements for an application based on a combination of the security groups the user belongs to, and the conditional expression being used.
You should look at this posts to achieve what you are looking for:
Set an attribute as required with no default value
How to make a attribute required using Data Restrictions
I followed the above procedure for Incidents application, yet I can still save the record without populating the field that the condition expression made it a required field.
Hi Bruno and others, How can we set required to a londdescription field (in a separate multilinetextbox, not part of a multiparttextbox) using conditional expression? When you select properties, it says invalid binding opposite Signature Option. I am using Service Request Application with lookup table domain for SR.Description, and based on the selection, more details are required. Thanks.
Is there any way to set value to the field using Conditional Expression UI?
Bi Bruno,
I hope you are doing well. Can we make objects read only if they are in workflow so that nobody can make any kind of changes in the document.
Regards,
Hamid
Look at those two articles.
Hide data conditionally for a specific group
Is an object in a workflow?
Hi Bruno,
How can i use a condition expression to archieve the following statement;- when Any change is made to ticket dates (affected, reported, actual or finish), priority, ownership, or re-classification it should requires a work log entry. Changes to these fields then click on Save should result in a message advising user to enter a work log entry prior to saving the changes.
I think you have to go with Java or scripting.
Otherwise you may try to play with this variable in conditional expression
:$OLD_[attrname] – The initial value of the attribute
See this: http://maximodev.blogspot.com/2012/08/variables-dynamic-queries-conditional-expressions.html
Thanks Bruno!
Hi Bruno, thanks for all the great snippets for Maximo. Just wondered if you know how to make a meter reading a required field on work order tracking….?
Hi Bruno, thanks for all the great snippets for Maximo. Just wondered if you know how to make a meter reading a required field on work order tracking….?
Hi Bruno
How to Hide Table.Column:-SR.RESPONSE1_LONGDESCRIPTION filed
Thanks
Hi Bruno,
I have a need to make packing slip a required field for selected rows in the "Select Order Items" dialog, for selected rows. I have set the packing slip field as readonly in this dialog, but it now wants a packing slip number for all rows regardless of if they are checked or not. So I am thinking conditional expression, but I can't find a way to set a condition on the "select row" check box, as it is not a matrectrans attribute. Is there anyway set a condition against that "select row" check box?
Thanks
Hi,
I am trying to make the remarks field on the Maximo Receipt screen a required field for Returns, and although I can do this using the conditional expression, this only works if the user opens the drop down to expose the detail of the return line.
When the user selects the item to return and then hits save without performing any other action, the check is not carried out and the user is able to save without populating the remarks field. Any idea how to solve this?
Hi,
the same requirement i also trying. But till now not got any proper solution.
Hi
I have implemented a condition to make a field required in moving the status to particular status by means of signature options as provided above.
It works fine when some changes are done and save button is clicked.
But when I click on Change Status without making any changes the signature validation is not being applied.
Can conditional expression be used to make e-sig required when changing the status of a record? The condition would be based on a YORN field.
This is where the Conditional Expression Manager comes in. We can set up a rule or condition to say something like this: if the workorder status does not equal WAPPR (which is the default workorder status when a new one is created), and the GLAccount field is null or empty, then evaluate the rule or condition to true, otherwise the rule is false. And depending on whether the rule returns true or false, you can do certain things like make the GL Account field required. So in this scenario, when are user creates a new workorder with a NULL GL Account value, since the default status is WAPPR , this rule will return false, therefore not making the GL Account field required. Now if this user where to go ahead and try to change the status to APPR , the rule would evaluate to true, and the user will see an message saying the GL Account field is required.