Skip to Content
avatar image
Former Member

Table in SAPUI5 js and event selection row

Hi All,

I want to row click action in table sapui5, but I can't show checkbox for table row,

            var oColumn1  = new sap.ui.table.Column({
                label : new sap.ui.commons.Label({
                    text: "KODE KELOMPOK", 
                    textAlign : "Center"}),
                template : "KODE_KELOMPOK",
                sortProperty : "KODE_KELOMPOK",
                filterProperty : "KODE_KELOMPOK"
            });
            
            var oColumn2  = new sap.ui.table.Column({
                label : new sap.ui.commons.Label({
                    text: "NAMA", 
                    textAlign : "Center"}),
                template : "NAMA",
                sortProperty : "NAMA",
                filterProperty : "NAMA"
            });    
            
            var oColumn3  = new sap.ui.table.Column({
                label : new sap.ui.commons.Label({
                    text: "MINIMAL USIA MASUK", 
                    textAlign : "Center"}),
                template : "MINIMAL_USIA_MASUK",
                sortProperty : "MINIMAL_USIA_MASUK",
                filterProperty : "MINIMAL_USIA_MASUK"
            });
            
            var oColumn4  = new sap.ui.table.Column({
                label : new sap.ui.commons.Label({
                    text: "MAKSIMAL USIA MASUK", 
                    textAlign : "Center"}),
                template : "MAKSIMAL_USIA_MASUK",
                sortProperty : "MAKSIMAL_USIA_MASUK",
                filterProperty : "MAKSIMAL_USIA_MASUK"
            });
            
            var oColumn5  = new sap.ui.table.Column({
                label : new sap.ui.commons.Label({
                    text: "TERUSAN", 
                    textAlign : "Center"}),
                template : "TERUSAN",
                sortProperty : "TERUSAN",
                filterProperty : "TERUSAN"
            });

How to add properties for show a checkbox? because if I see SAP documentation for SAPUI5, I still confuse for best practice add a SAPUI5 element . and how to best practice? Thank you.

Regards,

Bobby

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 17, 2017 at 01:44 PM
    Add comment
    10|10000 characters needed characters exceeded