Skip to Content
Menu
This question has been flagged
2 Replies
1746 Rodiniai

Hi all,

I want to hide the page of "Measurement Setting" when the field "test_type_id != 5". this setting works. If "test_type_id ==5" I want the user to enter values in "measure_data_ids" (o2m field). 

The problem is that "required ="test_type_id ==5" does not do the job. User can save the record with an empty "measure_data_id". Please correct me.     

     

   


Portretas
Atmesti
Best Answer

you can add a constraint to check if the o2m is empty. So that if test_type_id==5 and length of o2m is 0, you can raise an error to stop the record in saving.

Portretas
Atmesti
Autorius Best Answer

Hi K Ch Kumar,

Thank you very much. your suggestion works. 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
birž. 24
1290
1
geg. 24
1442
0
rugs. 19
15437
0
liep. 25
453
2
liep. 25
35