20230212 - IG 수정 모드 제어를 위한 IG 버튼 보이기/감추기

마스터 대표상품 YN에 따라서 하위구성 IG의 버튼을 보이고 감추는 DA

SelectionChange



if (this.data == null || this.data.selectedRecords[0] == null) return;

if(this.data.model.getValue(this.data.selectedRecords[0], "REP_YN") == "Y") {
  var vActions = apex.region("SID_IGPDTL").widget().interactiveGrid("getActions");
  vActions.show("edit");
  vActions.show("selection-add-row");
  vActions.show("save");
  vActions.show("change-view");
}
else {
  var vActions = apex.region("SID_IGPDTL").widget().interactiveGrid("getActions");
  vActions.hide("edit");
  vActions.hide("selection-add-row");
  vActions.hide("save");
  vActions.hide("change-view");
}




참고

https://forums.oracle.com/ords/apexds/post/dynamically-set-options-on-an-interactive-grid-1813

https://docs.oracle.com/en/database/oracle/apex/22.2/aexjs/interactiveGrid.html#event:selectionchange


댓글 없음:

댓글 쓰기

20250202 - IG 다운로드 버튼 바로 보이기

JS initialization Code : function (config) {     var $ = apex.jQuery,         toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),  ...