Skip to content

row-inline-delete

row-inline-delete Service는 List Component에서 New 또는 Edit Mode가 활성화된 상태에서 Delete Button을 Click할 때 발생하는 Event이다. Click Event는 Platform Type이 Web의 경우에만 발생한다.

Action Designer Example

List Component의 Inline Edit 모드에서 Row 삭제

List Component의 삭제할 그리드를 선택한 후 Delete Button을 Click하여 Inline Edit 형식의 삭제 기능인 row-inline-delete Event에 등록한 Service를 호출하여 선택한 행을 삭제한다.

주요 Action Example

  • Message Box

삭제를 실행할 Lambda를 호출하기 전에 사용자의 삭제 여부를 확인하기 위한 창을 호출한다.

[그림1. Message Box 설정]

  • Lambda

Action에서 Delete Lambda를 선택하고, Component에 List Component를 선택한다.

[그림2. Lambda – deleteData 설정]

선택된 Row를 삭제하도록 selectData에 List Component와 Component의 Key 값인 SYS_ID를 등록한다. 여러 건을 선택하여 삭제할 수 있음에 따라, Parameter Key를 sysIds로 설정한다.

[그림3. Lambda – selectData 설정]

INFO

삭제의 경우, Parameter Key 값이 sysId가 아닌 sysIds인 것에 주의한다.

  • Reload

List Component에서 선택한 Row가 삭제가 되었는지 확인하고, 삭제된 Row를 List에서 제거하기 위해 Component를 Reload한다.

[그림4. Reload 설정]


관련 문서