Hi Ashok,
As for as I know, tree table is not designed to working with OData service, since this model does not have a tree structure like JSON, but using deep entity (with navigation property) instead.
I suggest that you get the data from OData service, then store in a JSON model. Then you can bind this JSON model to the tree table. It should work and it's easier for you to customize the table.
Regards,
Victor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashok,
Try this:
rows="{
path : 'modelTree>/WBS_HierarchySet',
parameters : {
countMode: 'Inline',
treeAnnotationProperties : {
hierarchyLevelFor : 'modelTree>Level',
hierarchyNodeFor : 'modelTree>WbsElement',
hierarchyParentNodeFor : 'modelTree>Up'
}
}
}"
Regards,
Suriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additionally the property 'hierarchyDrillStateFor' has to be set. The information should also be provided by the BES Model
treeAnnotationProperties : {
hierarchyLevelFor : 'HierarchyLevel',
hierarchyNodeFor : 'NodeId',
hierarchyParentNodeFor : 'ParentId',
hierarchyDrillStateFor: 'DrillState'
}
Best regards
Christian
Hi Ashok,
Were you able to resolve the issue? I was able to get the Odata map to a local JSON and display the table information. However the table is displaying a flat structure and I am not able to show the children under the parents. The columns names I have used is correct. But I am not sure why the Tree annotation is now working as I am expecting it to work like how Suriya had provided the below sample. Please any advise on how to perform the tree notation from a local json object that will be great.
treeAnnotationProperties :{
hierarchyLevelFor :'modelTree>Level',
hierarchyNodeFor :'modelTree>WbsElement',
hierarchyParentNodeFor :'modelTree>Up'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If using any parameters like countmode:inline. , Make sure oData call fulfill this request or else remove that line from it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashok,
Firstly, do you observe any errors in the console of the browser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.