1

SAPui5 1 つのテーブルで開発しており、1 つのセル (製品名と会社) に 2 つのデータを含む 1 つの列があります。タイトルを表示するために multiLables オプションを使用しますが、タイトルごとに 1 つの並べ替え関数が必要です。それは可能ですか?

これは私のコードです:

//Create an instance of the table control
    var oTable2 = new sap.ui.table.Table('table1',{
        visibleRowCount: 12,
        selectionMode: sap.ui.table.SelectionMode.Single,
        navigationMode: sap.ui.table.NavigationMode.Paginator,
        editable: false,
    });

    //Define the columns and the control templates to be used
    oTable2.addColumn(new sap.ui.table.Column('colkag', {
        visible: false,
        label: new sap.ui.commons.Label({text: "kag"}),
        template: "kag",
        sortProperty: "kag",
        filterProperty: "kag",
    }));
    oTable2.addColumn(new sap.ui.table.Column('colname', {
        multiLabels: [
            new sap.ui.commons.Label({text: "Fondsname"}), 
            new sap.ui.commons.Label({text: "Verwaltungsgesellschaft"}) ],
        template: new sap.m.ObjectIdentifier({title:"{name}", text:"{kag}"}),
        sortProperty: "name",
        filterProperty: "name",
        width: "400px"
    }));

そして、これが結果です:

multiLables を含むテーブル

4

0 に答える 0