Sapui5 为什么sap.ui.table.TreeTable显示虚拟行(不正确的数据呈现)?

Sapui5 为什么sap.ui.table.TreeTable显示虚拟行(不正确的数据呈现)?,sapui5,treetable,Sapui5,Treetable,我在这里发布了问题的重建 该数据应导致树表中2级深度节点的渲染。但是,却有一排幽灵般的队伍把它弄得乱七八糟 有什么想法吗 谢谢我看到了你发布的链接。您创建的JSON对于TreeTable无效。让我指出您在代码中犯的一些错误 检查要点: 1. var tData = {"SessionTransactions":{}} //This is not required its unnecessarily declared // Use this directly var t

我在这里发布了问题的重建

该数据应导致树表中2级深度节点的渲染。但是,却有一排幽灵般的队伍把它弄得乱七八糟

有什么想法吗


谢谢

我看到了你发布的链接。您创建的
JSON
对于
TreeTable
无效。让我指出您在代码中犯的一些错误

检查要点:

1. var tData = {"SessionTransactions":{}} //This is not required its unnecessarily declared  

     //   Use this directly
    var tData = { 
            "":{},
            "SessionTransactions":{//Some Value}
     };

2. tData = {
        "": {},
        "SessionTransactions": {
            0: {
                0: {},
                1: {},
                2: {},
                3: {},
                4 :{   //This was missing which leads to the empty row
                   "__metadata": {},
                   "Service": {},
                   "Poi": {}
                }
            },
            1: {
              0:{}
            }
          }
    };
3. The second level child with empty rows is because of "__metadata","Service" and "Poi"
      0:{
        "__metadata": {},
        "Service": {},
        "Poi": {}
      }

请在更改json后立即尝试。我想这可能会对你有所帮助

我看到了你发布的链接。您创建的
JSON
对于
TreeTable
无效。让我指出您在代码中犯的一些错误

检查要点:

1. var tData = {"SessionTransactions":{}} //This is not required its unnecessarily declared  

     //   Use this directly
    var tData = { 
            "":{},
            "SessionTransactions":{//Some Value}
     };

2. tData = {
        "": {},
        "SessionTransactions": {
            0: {
                0: {},
                1: {},
                2: {},
                3: {},
                4 :{   //This was missing which leads to the empty row
                   "__metadata": {},
                   "Service": {},
                   "Poi": {}
                }
            },
            1: {
              0:{}
            }
          }
    };
3. The second level child with empty rows is because of "__metadata","Service" and "Poi"
      0:{
        "__metadata": {},
        "Service": {},
        "Poi": {}
      }

请在更改json后立即尝试。我想这可能会对你有所帮助

我看到了你发布的链接。您创建的
JSON
对于
TreeTable
无效。让我指出您在代码中犯的一些错误

检查要点:

1. var tData = {"SessionTransactions":{}} //This is not required its unnecessarily declared  

     //   Use this directly
    var tData = { 
            "":{},
            "SessionTransactions":{//Some Value}
     };

2. tData = {
        "": {},
        "SessionTransactions": {
            0: {
                0: {},
                1: {},
                2: {},
                3: {},
                4 :{   //This was missing which leads to the empty row
                   "__metadata": {},
                   "Service": {},
                   "Poi": {}
                }
            },
            1: {
              0:{}
            }
          }
    };
3. The second level child with empty rows is because of "__metadata","Service" and "Poi"
      0:{
        "__metadata": {},
        "Service": {},
        "Poi": {}
      }

请在更改json后立即尝试。我想这可能会对你有所帮助

我看到了你发布的链接。您创建的
JSON
对于
TreeTable
无效。让我指出您在代码中犯的一些错误

检查要点:

1. var tData = {"SessionTransactions":{}} //This is not required its unnecessarily declared  

     //   Use this directly
    var tData = { 
            "":{},
            "SessionTransactions":{//Some Value}
     };

2. tData = {
        "": {},
        "SessionTransactions": {
            0: {
                0: {},
                1: {},
                2: {},
                3: {},
                4 :{   //This was missing which leads to the empty row
                   "__metadata": {},
                   "Service": {},
                   "Poi": {}
                }
            },
            1: {
              0:{}
            }
          }
    };
3. The second level child with empty rows is because of "__metadata","Service" and "Poi"
      0:{
        "__metadata": {},
        "Service": {},
        "Poi": {}
      }

请在更改json后立即尝试。我认为它可能会帮助您下次使用搜索,您必须清除。_uMETADATA=“”;-财产


下次使用搜索时,您必须清除。_uMETADATA=“”;-财产


下次使用搜索时,您必须清除。_uMETADATA=“”;-财产


下次使用搜索时,您必须清除。_uMETADATA=“”;-财产


如果解决方案解决了您的问题,您可以接受答案(通过选择绿色勾号),或者如果您还有其他问题,您也可以问:如果解决方案解决了您的问题,您可以接受答案(通过选择绿色勾号),或者如果您还有其他问题,您也可以问:如果解决方案解决了您的问题,您可以接受答案(通过选择绿色勾号),或者如果您还有其他问题,您也可以问:如果解决方案解决了您的问题,您可以接受答案(通过选择绿色勾号),或者如果您还有其他问题,您也可以问: