Posts

Showing posts from June, 2026

SAPUI5 - Drag & Drop Row on List (Re-order Rows)

  <List      id = "idAttachList" headerText = "{i18n>piList}" items = " {      path : 'sendFileData>/Attach' } " mode = "MultiSelect" updateFinished = "onAttachListUpdateFinished" selectionChange = "onAttachListSelectionChange" > <dragDropConfig>           <dnd:DragDropInfo sourceAggregation = "items"                targetAggregation = "items"                dropPosition = "Between"                drop = "onAttachRowMove" /> </dragDropConfig>      <items>      <CustomListItem>           </CustomListItem> </items> </List> //------ controller.js onAttachRowMove : function ( oEvent ) {      var sDropPositio...

SAPUI5 - Disable Checkbox on List

  <List      id = "idAttachList" headerText = "{i18n>piList}" items = " {      path : 'sendFileData>/Attach' } " mode = "MultiSelect" updateFinished = "onAttachListUpdateFinished" selectionChange = "onAttachListSelectionChange" >      <items>      <CustomListItem>           </CustomListItem> </items> </List> onAttachListUpdateFinished : function ( oEvent ) {      var oList = oEvent . getSource (),      oItems = oList . getItems (); oList . selectAll (); oItems . forEach (( oItem ) => {      oItem . getMultiSelectControl ( true ). setEnabled ( false ); }); }