on 03-29-2017 3:20 PM
Hello All,
I'm looking for a control like the SelectDialog with a Tree as aggregation. I know that the sap.ca.ui.HierarchicalSelectDialog control is deprecated but what is the alternative? How can I create a control like that? I'v tried to add the StandardTreeItem in the aggregation of the SelectDialog but without success. I can only see the first node and cannot expand further nodes...
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
<SelectDialog title="Equipment" search="_handleValueHelpSearch" confirm="_handleValueHelpClose"
cancel="_handleValueHelpClose" multiSelect="false" items="{EquipmentTree>/nodes}">
<StandardTreeItem title="{EquipmentTree>description}"/>
</SelectDialog>
</core:FragmentDefinition>
{
"nodes": [
{
"id": "ZZ-1801",
"description" : "Elektrische locomotief 18",
"nodes" : [
{
"id": "L18-1/18011",
"description" : "Kast HLE18",
"nodes": [
{"id": "BL18/118-117", "description" : "Draaistel HLE18"},
{"id": "SL20597/6596", "description" : "Motor-compressorgroep HLE18"},
{"id": "TBL1A/11591", "description" : "Antenne Eurobalise"},
{"id": "TL18/N-311-685-1", "description" : "Hoofdtransformator HLE18"},
{"id": "BL18/118-041", "description" : "Draaistel HLE18"}
]
}
]
}
]
}
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.