Friday, 24 May 2013

20.ADDING MODEL TO THE UI COMPONENT


ADDING MODEL

Adding MODEL to UI component is just very simple step. However understanding MODEL is complex one. This will be too early to dig into this concept. We will discuss in detail in later chapters as it is a most advanced task. 
We will just have a look at MODEL and how its looks.

Transaction: GENIL_MODEL_BROWSER.


This transaction is used to display the MODELs.  Give component as BT in the component field and press one display. 



It has different objects. All we want to know is, if we want to show contract information, then we will add BTAdminh object into our component. If someone wants item information, we will work with BradminI object.
In order to make all this objects available to our component, we need to add the corresponding model to our component.

Let us add the model ONEORDER to our new component.  go to the component and click on runtime repository. Click on the edit button and right click on the models and choose ADD MODEL. Give the component set name as ONEORDER and choose continue. 





Click on save. We have added the model to our component. So all objects in that model,  are available in our component. As soon as we add the model, there is one more option available ‘BOL Model Browser’.
(If you can’t see this option immediately, just reopen the component). 




2 comments: