on 04-18-2021 4:23 PM
Hello All,
I am trying to show a Tree table in Object Page. I am setting the table type using the "Page Map" option in Business Application. But its rendering the responsive table instead of Tree Table. I tried setting the table type is manifest as mentioned here.
The same works in the List Page. Not sure if there is an issue or am I missing something here. Any pointers please.
Thanks,
Kishore.
The line item referred to in the Reference facet has a qualifier "Hier". So the qualifier also should be used to identify the table in the manifest settings.
Alternatively the reference facet id "DocFlow" can also be used if it is maintained in the annotation.
"sections":{
"toHier::com.sap.vocabularies.UI.v1.LineItem::Hier":{
"navigationProperty": "toHier",
"entitySet": "HierarchySet",
"tableSettings": {
"type": "TreeTable"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The "tableSettings" seems to be under the Object Page settings directly. But the settings for object page table should be present under the "sections settings" , which in this case under "toHier".
"name": "sap.suite.ui.generic.template.ObjectPage"
"settings": {
"sections": {
"toHier::com.sap.vocabularies.UI.v1.LineItem": {
"navigationProperty": "toHier",
"entitySet": "HierarchySet",
"tableSettings": {
"type": "TreeTable"
}
}
}
}<br>
Alternatively, the Guided Development plugin also can be used to set the table type (Guide : Set the table type of tables).
Thanks,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Arun,
Thank you for your inputs. I have tried as per your suggestion but still its the same. Looks like I am missing something. I tried the guided development plugin as well. The issue I observed is
1. The section field is greyed out.
2. Even after applying the table type, its always loading the flat table.
3. Once we change something using the Page Map. After a while the changes are gone.
"pages": {
"ListReport|SalesOrderHeaderSet": {
"entitySet": "SalesOrderHeaderSet",
"component": {
"name": "sap.suite.ui.generic.template.ListReport",
"list": true,
"settings": {
"smartVariantManagement": true
}
},
"pages": {
"ObjectPage|SalesOrderHeaderSet": {
"entitySet": "SalesOrderHeaderSet",
"defaultLayoutTypeIfExternalNavigation": "MidColumnFullScreen",
"component": {
"name": "sap.suite.ui.generic.template.ObjectPage",
"settings": {
"sections":{
"toHier::com.sap.vocabularies.UI.v1.LineItem":{
"navigationProperty": "toHier",
"entitySet": "HierarchySet",
"tableSettings": {
"type": "TreeTable"
}
}
}
}
},
"pages": {
"ObjectPage|toItems": {
"navigationProperty": "toItems",
"entitySet": "SalesOrderItemSet",
"defaultLayoutTypeIfExternalNavigation": "MidColumnFullScreen",
"component": {
"name": "sap.suite.ui.generic.template.ObjectPage"
}
}
}
}
}
}
}
Hello Arun,
I have replicated this issue with a sample application. Here is the Github link Link
Thanks,
Kishore.
User | Count |
---|---|
76 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.