Wednesday, 29 May 2013

51.ASSIGNING DESIGN OBJECT TO CONTEXT NODE



Let us a ui object type that we created in the previous chapter to the required context node. 


Go to the UI component and then required view and then required context node. In my case, I am assigning this to the header context node of the header view as shown below. Go to the target context node and right click on it and choose the option Assignment to design layer.
 






In the next screen, click on +assignment. 






In the same screen, it will list all available UI object types. Expand the object type that we created in the previous tutorial and choose the design object under it. 






Then out UI object type will be available under the section ASSIGNMENT FOR. Choose it and click on save button to save the settings.  Then continue on the next popup.

Assignment is done. Then our duty is to make one new configuration for that view using the newly created UI object type. Let us do that.
Go to the view configuration tab and create new configuration. Here I am copying the existing configuration to the new one.

Click on the copy configuration and accept the next popup.  Then give our UI OBJECT type in the next dialog box.





New configuration made. As soon as you click on continue, you can notice the change in the label of field OBJECT_ID.





Just select that field and click on show field properties and choose the option show technical details.






It will show the label origin as DESIGN LAYER. 





Save the configuration.  We can edit this label as well if we want to change the label. Here design layer main advantage is, if one design object is associated with more context nodes and if we want to change one field label across all context nodes , we have to change it at one single place i.e. design object. This change automatically applies to all context nodes which are associated with this design object. 

if we test this application, we cannot see this change on web ui because  framework will still show old configuration on the UI. We need to tell the framework to load the configuration that we have defined above.  For that we use do config determination method. Let us discuss it in the next chapter.

1 comment:

  1. Here there is one minor step missed out which is essential to get the latest field label updated from design layer. Step: Before the last screen shot - We need to click the 'Delete' icon beside the 'Label origin' in order to get the label refreshed and latest one will appear.

    ReplyDelete