EXTJS Composite Field 2가지 진실

2012. 8. 9. 21:38프로그래밍/ExtJS

1.  : Boolean

True to combine errors from the individual fields into a single error message at the CompositeField level (defaults to true)

콤포짓 필드 선언하고 2개 items를 등록한후 invaild 체크하니깐 계속 에러를 메제시가 난다 

저기 속성은  composite field 안 항목 개개별로 체크가 가능하고나 composite field 자체에 에러를 주거나;;


2. FORM 안에 수정 내역을 체크하려고 할때

   form 안 composite is_dirty 를 체크해서 값을  변경되었는지 체크하려면 한번더 composite field 의 item을 체크 한 후에 거기 item 의 originalvalue 값을 getvalue 로 바꿔줘야하는 상황이 생겼었다.

내가 짖거려도 못알아 듣겠네;; 

아무튼 아무리 setvalue 해도 reset 하면 원래 초기값을 가지고 있는다는 것 그래서 original value 를 getvalue 해서 넣어주는 식으로 해야됬음;;