cancel
Showing results for 
Search instead for 
Did you mean: 

Table in SAPUI5 js and event selection row

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharadha1
Active Contributor
0 Kudos