二维码

[教程] CREATING CONTEXT NODE IN CUSTOM CONTROLLER

Twilight发表于 2015-12-05 00:20Twilight 最后回复于 2015-12-05 00:20 [复制链接] 2158 0

Go to the ui component –component structure browser. Open the custom controller. Go to the context node level and right click on context node and choose CREATE option.
CONTEXT NODE 1.jpg

In the wizard, give the context node name and choose the model entity as BTAdminh.
CONTEXT NODE 2.jpg

Why we have chosen BTAdminh as model entity?

Because we need to do data binding between this node and node of view header. The base entity that we mentioned for header view is BTAdminh. Entities must be same to bind the data.

Just complete the wizard and save the entries.  We have created context node.

Then we need to bind the data. Go to the view header and right click on the context node header. Choose the create binding option.
CONTEXT NODE 3.jpg

In the next Dialog box, choose the values as shown below.
CONTEXT NODE 4.jpg   

We have chosen the context node that we have created in the custom controller. Choose continue to complete the binding.

Now data will flow from custom controller context node to header view context node. However we still need to feed the data to the custom controller context node. That we will do in the event handler of result view.
回复

使用道具 举报

快速回帖

本版积分规则
您需要登录后才可以回帖 登录 | 注册有礼

快速回复 返回顶部 返回列表