콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1840 화면

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.     

     

   


아바타
취소
베스트 답변

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.

아바타
취소
작성자 베스트 답변

Hi K Ch Kumar,

Thank you very much. your suggestion works. 

아바타
취소
관련 게시물 답글 화면 활동
0
6월 24
1398
1
5월 24
1539
0
9월 19
15524
0
7월 25
596
2
7월 25
35