cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Binding Children in sap.suite.ui.commons.ProcessFlow

Former Member
0 Kudos

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

maheshpalavalli
Active Contributor
0 Kudos

You need to provide the code where you are doing the binding and what kind of data you are passing there as well.

former_member435529
Participant
0 Kudos

Hello Karthick,

Did you manage to solve that issue with Children object ?. I have similar issue and I am stuck trying to find a solution ?

Thanks,

Javier

Accepted Solutions (0)

Answers (2)

Answers (2)

maheshpalavalli
Active Contributor
0 Kudos

Hi MUTHUKANNAN MUTHUKUMARAN,

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

Former Member
0 Kudos

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>