cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between View Controller and Interface view controller

Former Member
0 Kudos

Hi Experts,

Can anyone explain me what is the difference between View Controller and Interface View Controller.

What is the purpose of View Layout.

Thanks & Regards,

Muhammad Imtiyaz

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

InterfaceConterlloer - To transfer/ expose the data (through context) and to exposte the methods to another WDComponent.

The context of a view differs from the contexts of other controllers by its restricted visibility. Nodes and attributes that you create within a view context can only be used there, whereas the context elements of other controllers can be used for the cross-view data transport through binding to several other contexts. Data can even be transported across components using the interface controller

Answers (4)

Answers (4)

Former Member
0 Kudos

View Controllers are visual building block of a Web Dynpro component and are designed to handle all

aspects of data display and user interaction. Only view controllers have a visual interface. In order for a

view to be seen on the screen, it must be embedded into a Window

Interface view controllers are very similar to view controllers u2013 but with an important restriction. An

interface view controller is executed as a Java interface by the FDOOLQJ controller (usually the Web

Dynpro Framework). Consequently, an interface view controller has neither its own context, nor any of

the standard hook methods

Former Member
0 Kudos

Hi,

Interface Controller:

There is only one interface controller for a component. It is mainly used when we need to communicate between two components.There is sample application for communication between two components in the sample codes and application section.

View Layout

The Layout tab page is divided into three areas:

● The left column of the editor contains the UI element categories (internally these are divided into libraries), a number of smaller tab pages with grouped UI elements. You can insert these in the View Designer in the view layout using drag and drop.

● A simple presentation of the view layout appears in the graphical View Designer in the middle part of the editor window. You can use this layout editor to directly edit the design of the view. Selected elements can be moved using drag and drop.

● The right area of the editor window is divided into two areas:

○ In the upper part, the UI elements contained in the layout are displayed hierarchically. You can change the order or nesting of the individual UI elements in this hierarchy.

○ In the lower part, the properties of the currently selected UI elements are listed in a table.

View Controller

Some UI elements, such as the button element, can react to a useru2019s interaction: Clicking on the corresponding pushbutton can trigger a handling method to be called within the view controller. Such UI elements are equipped with one or several general events that can be linked with a specific action at design time (switching to a subsequent view, for example). If such an action is created, an event handler method for this action is created automatically. In this way, you can equip a UI element event (that has been inserted several times into a view) with different actions as necessary. The event is then processed by the corresponding event handler depending on the action that is linked.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi Gulam

Check following link

jsut check out following links,

check out these ex for the Component Interface and node under this,

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/19e6e990-0201-0010-eca6-a62e342eaa... [original link is broken]

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/1208c2cd-0401-0010-4ab6-f4736074ac... [original link is broken]

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/1ee0e990-0201-0010-75bf-a087c241cb... [original link is broken]

Regards

Ruturaj

Former Member
0 Kudos

Hi,

Have a look at below threads.

/message/2423617#2423617 [original link is broken]

Regards,

krishna chaitanya.