cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Personas - Validation of a mandatory specific text field in MM01

BTP_Architect
Participant
0 Kudos

Hello,

I want to add a specific mandatory field in MM01 using Screen Personas.

We are on Screen Personas 3.0 SP14.

Adding my logic in the Save button is working using this line of coding

session.findById("wnd[0]/sbar").setMessage("Field PartGroup in MRP3 is mandatory", "E");

But I cannot get the same blocking error if the user use the enter (I linked my validation to the onBeforeRefresh event)

Do you have a solution blocking the user whatever action he is doing (enter or click on save)?

Thank you in advance

Moez.

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try to add your validation logic to the onEnter screen event.

If the validation fails, you can issue your error message and also use the return; statement to prevent further processing of the transaction's logic.