Skip to Content

Summary: This document explains, way to create UI element as a TEMPLATE.


Requirement : Defining Table UI element as a template and using in other components.


1. Create a component ‘YSG_TEMPLATE’.


template.PNG


2. Create a node ‘MATERIAL’ in the context and design the view with a table UI element.


template.PNG

template.PNG


3. To define TABLE UI element as a TEMPLATE, right click on the ROOTUIELEMENTCONTAINER and select SAVE AS TEMPLATE


template.PNG

4. Enter the details to create Template


Name of Template : Table

Description            : Table UI element as Template

Template ICON      : @BJ@

check Save All Binding check box and then click on Save button

Note: Along with the context binding, context and if any actions are defined to the table will be saved with the template

template.PNG


5. To check whether template is created or not, click on Web Dynpro Icon or Ctrl + F7


template.PNG


Under User: We can see TABLE template is created.

6. Lets create component ‘YSG_TEMPLATE_USAGE’

template.PNG

7. To use the custom TABLE template, click on code wizard icon or Ctrl+F7. Select custom Table template


template.PNG


8. View gets designed with a table and node ‘MATERIAL’ in the context gets created


template.PNG


template.PNG


This is how an UI element can be defined as a TEMPLATE.



To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply