Thursday, 5 December 2013

14. Features of Window and Creating a new Window

Features of window.

  • A window is a special type of view in a component that defines a root for a hierarchy of view sets and views in the runtime repository, and has no .htm file.
  • It is responsible for the visual output of a UI component. 
  • It has its own controller and a context , it can be published as an interface view for reuse of a component
  • A viewset or view can only be part of exactly one window (still no direct reuse of views).

What is the need of creating new window?

I would like to show usage of window controller, and custom controller.

Let's create a new window, it's so simple.

Go to 'Component Structure Browser', Right clock on 'Windows' -< Select 'Create'.

Wizard will open, Click 'Continue'.

Define Name of a window as : WinOVP (Window for Overview Page). We are not creating any Model Nodes here, just continue.... and complete it.

*Observe the classes generated, Window contains Context (*_CTXT), which means, it is capable for storing the data.









It's very simple. We are done with creating a new window, we will use this window to show overview page 'MobileDetailOVP' in next chapter.


No comments:

Post a Comment