on 04-03-2019 5:10 PM
Hi all,
We are trying to design a process flow with UI control sap.suite.ui.commons.ProcessFlow and we are struck in binding children node. Please could you help how to bind children along with other fields. We have created expanded entity set and bind the children and it is showing error as [object object] is not expected, expected is any[]. How do we build type any[] in backend or Is there a way to format in Frontend itself? Thanks in advance
Regards,
Karthick
Just for your information, you need to put that code using the code option in the toolbar, the code will be formatted and readable. Answer section is only to propose solution and for replying, click on comment and you can reply 🙂
Now coming to your issue, please put the screenshot of the error. judging from the error you have pasted, it looks like you are passing object at some place instead of an arrry. so better attach the error screenshot.
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
Thanks for the prompt response. Please find the below error snapshot, data from backend and xml binding.
Data
{
"id":0,
"lane":"TENDER",
"title":"Creation of Tender",
"titleAbbreviation":"Creation of Tender",
"isTitleClickable":true,
"state":"Positive",
"stateText":"Created",
"focused":true,
"highlighted":true,
"texts":"Tender has been created",
"TenderNumber":"",
"RfxNumber":"",
"children":
[{
"children":1,
"id":0,
"TenderNumber":"",
"RfxNumber":""
}
]
},
"id":1,
"lane":"RFX",
"title":"RFX Creation",
"titleAbbreviation":"RFX Creation",
"isTitleClickable":true,
"state":"Positive",
"stateText":"Created",
"focused":false,
"highlighted":true,
"texts":"Rfx has been created",
"TenderNumber":"",
"RfxNumber":"",
"children":
[{
"children”:””,
"id":,
"TenderNumber":"",
"RfxNumber":""
}
]
}
xml Binding
<Panel>
<com:ProcessFlow
id="processflow1"
scrollable="false"
foldedCorners="true"
nodePress="onNodePress"
nodes="{ProcessFlowNodesSet>/}"
lanes="{ProcessFlowLanesSet>/}">
<com:nodes>
<com:ProcessFlowNode
laneId="{ProcessFlowNodesSet>lane}"
nodeId="{ProcessFlowNodesSet>id}"
title="{ProcessFlowNodesSet>title}"
titleAbbreviation="{ProcessFlowNodesSet>titleAbbreviation}"
children="{ProcessFlowNodesSet>children}"
state="{ProcessFlowNodesSet>state}"
stateText="{ProcessFlowNodesSet>stateText}"
texts="{ProcessFlowNodesSet>texts}"
highlighted="{ProcessFlowNodesSet>highlighted}"
focused="{ProcessFlowNodesSet>focused}" />
</com:nodes>
<com:lanes>
<com:ProcessFlowLaneHeader
laneId="{ProcessFlowLanesSet>id}"
iconSrc="{ProcessFlowLanesSet>icon}"
text="{ProcessFlowLanesSet>label}"
position="{ProcessFlowLanesSet>position}" />
</com:lanes>
</com:ProcessFlow>
</Panel>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.