2020-09-10 18:26发布
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
大家好,
我们正在尝试使用UI控件sap.suite.ui.commons.ProcessFlow设计流程,但是我们遇到绑定子节点的问题。 请您帮忙将孩子与其他领域捆绑在一起。 我们已经创建了扩展的实体集并绑定了子代,并且由于[object object]不是预期的,期望是any [],因此它显示错误。 我们如何在后端构建类型any []或在Frontend本身中格式化? 预先感谢
此致
Karthick
嗨,Mahesh,
感谢您的及时答复。 请找到以下错误快照,来自后端的数据和xml绑定。
数据
{
" id":0:
"车道":"标书",
"标题":"创建招标",
" titleAbbreviation":"创建投标",
" isTitleClickable":true,
"状态":"正",
" stateText":"已创建",
" focused":true,
"突出显示":true,
"文本":"投标已创建",
" TenderNumber":"",
" RfxNumber":"",
"孩子":
[{
"孩子":1,
" RfxNumber":""
}
]
},
" id":1,
"车道":" RFX",
"标题":" RFX创建",
" titleAbbreviation":" RFX创建",
"聚焦":false,
"文本":" Rfx已创建",
"孩子":"",
" id":,
xml绑定
<面板>
id = " processflow1" scrollable = "假" foldableCorners = "真" nodePress = " onNodePress" nodes = " {ProcessFlowNodesSet>/}" lanes = " {ProcessFlowLanesSet>/}" > laneId = " {ProcessFlowNodesSet>通道}" nodeId = " {ProcessFlowNodesSet> id}" title = " {ProcessFlowNodesSet> title}" titleAbbreviation = " {{ProcessFlowNodesSet> titleAbbreviation}" children = " {{ProcessFlowNodesSet> children}" state = " {ProcessFlowNodesSet> state}" stateText = " {{ProcessFlowNodesSet> stateText}" texts = " {{ProcessFlowNodesSet> texts}" 高亮= " {ProcessFlowNodesSet>突出显示}" focused = " {{ProcessFlowNodesSet> focused}" /> laneId = " {ProcessFlowLanesSet> id}" iconSrc = " {ProcessFlowLanesSet> icon}" text = " {ProcessFlowLanesSet> label}" position = " {ProcessFlowLanesSet> position}" />
id = " processflow1"
scrollable = "假"
foldableCorners = "真"
nodePress = " onNodePress"
nodes = " {ProcessFlowNodesSet>/}"
lanes = " {ProcessFlowLanesSet>/}" >
laneId = " {ProcessFlowNodesSet>通道}" nodeId = " {ProcessFlowNodesSet> id}" title = " {ProcessFlowNodesSet> title}" titleAbbreviation = " {{ProcessFlowNodesSet> titleAbbreviation}" children = " {{ProcessFlowNodesSet> children}" state = " {ProcessFlowNodesSet> state}" stateText = " {{ProcessFlowNodesSet> stateText}" texts = " {{ProcessFlowNodesSet> texts}" 高亮= " {ProcessFlowNodesSet>突出显示}" focused = " {{ProcessFlowNodesSet> focused}" />
laneId = " {ProcessFlowNodesSet>通道}"
nodeId = " {ProcessFlowNodesSet> id}"
title = " {ProcessFlowNodesSet> title}"
titleAbbreviation = " {{ProcessFlowNodesSet> titleAbbreviation}"
children = " {{ProcessFlowNodesSet> children}"
state = " {ProcessFlowNodesSet> state}"
stateText = " {{ProcessFlowNodesSet> stateText}"
texts = " {{ProcessFlowNodesSet> texts}"
高亮= " {ProcessFlowNodesSet>突出显示}"
focused = " {{ProcessFlowNodesSet> focused}" />
laneId = " {ProcessFlowLanesSet> id}" iconSrc = " {ProcessFlowLanesSet> icon}" text = " {ProcessFlowLanesSet> label}" position = " {ProcessFlowLanesSet> position}" />
laneId = " {ProcessFlowLanesSet> id}"
iconSrc = " {ProcessFlowLanesSet> icon}"
text = " {ProcessFlowLanesSet> label}"
position = " {ProcessFlowLanesSet> position}" />
您需要提供执行绑定的代码以及在那里传递的数据类型。
您好, MUTHUKANNAN MUTHUKUMARAN ,
您只需输入以下信息即可: 使用工具栏中的代码选项进行编码,代码将被格式化并可读。 回答部分仅用于提出解决方案,如果需要答复,请单击评论,然后您可以答复:)
现在是您的问题,请输入错误的屏幕截图。 从您粘贴的错误来看,好像您是在某个地方传递对象而不是在传递错误。 因此最好附上错误屏幕截图。
BR,
Mahesh
最多设置5个标签!
嗨,Mahesh,
感谢您的及时答复。 请找到以下错误快照,来自后端的数据和xml绑定。
数据
{
" id":0:
"车道":"标书",
"标题":"创建招标",
" titleAbbreviation":"创建投标",
" isTitleClickable":true,
"状态":"正",
" stateText":"已创建",
" focused":true,
"突出显示":true,
"文本":"投标已创建",
" TenderNumber":"",
" RfxNumber":"",
"孩子":
[{
"孩子":1,
" id":0:
" TenderNumber":"",
" RfxNumber":""
}
]
},
" id":1,
"车道":" RFX",
"标题":" RFX创建",
" titleAbbreviation":" RFX创建",
" isTitleClickable":true,
"状态":"正",
" stateText":"已创建",
"聚焦":false,
"突出显示":true,
"文本":" Rfx已创建",
" TenderNumber":"",
" RfxNumber":"",
"孩子":
[{
"孩子":"",
" id":,
" TenderNumber":"",
" RfxNumber":""
}
]
}
xml绑定
<面板>
id = " processflow1"
scrollable = "假"
foldableCorners = "真"
nodePress = " onNodePress"
nodes = " {ProcessFlowNodesSet>/}"
lanes = " {ProcessFlowLanesSet>/}" >
laneId = " {ProcessFlowNodesSet>通道}"
nodeId = " {ProcessFlowNodesSet> id}"
title = " {ProcessFlowNodesSet> title}"
titleAbbreviation = " {{ProcessFlowNodesSet> titleAbbreviation}"
children = " {{ProcessFlowNodesSet> children}"
state = " {ProcessFlowNodesSet> state}"
stateText = " {{ProcessFlowNodesSet> stateText}"
texts = " {{ProcessFlowNodesSet> texts}"
高亮= " {ProcessFlowNodesSet>突出显示}"
focused = " {{ProcessFlowNodesSet> focused}" />
laneId = " {ProcessFlowLanesSet> id}"
iconSrc = " {ProcessFlowLanesSet> icon}"
text = " {ProcessFlowLanesSet> label}"
position = " {ProcessFlowLanesSet> position}" />
您需要提供执行绑定的代码以及在那里传递的数据类型。
您好, MUTHUKANNAN MUTHUKUMARAN ,
您只需输入以下信息即可: 使用工具栏中的代码选项进行编码,代码将被格式化并可读。 回答部分仅用于提出解决方案,如果需要答复,请单击评论,然后您可以答复:)
现在是您的问题,请输入错误的屏幕截图。 从您粘贴的错误来看,好像您是在某个地方传递对象而不是在传递错误。 因此最好附上错误屏幕截图。
BR,
Mahesh
一周热门 更多>