cancel
Showing results for 
Search instead for 
Did you mean: 

what is interface controller ?

Former Member
0 Kudos

How to create INTERFACE CONTROLLER ans what is the use of interface controller.

-I never see an option to create INTERFACE CONTROLLER

-But in standard components i have seen INTERFACE CONTROLLER how he had created

Some where i seen the purpose of INTERFACE CONTROLLER is to use the data one component in another component....but for that we have COMPONENT CONTROLLER, Then what is exact requirement for INTERFACE CONTROLLER.

Plese very helpful to many people if anyone clear it.

Thanks In Advance

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member202598
Participant
0 Kudos

Hello Shiva

No we do not create an interface controller, like a component controller an interface controller is only available once for each UI Component.

A component( Embedded ) can publish context nodes, Events, and Interface views (Windows) to an Embedding component

Publishing the context nodes allows users to access UI Component data in read/write Mode.

Publishing a window as an interface view enables the Embedding Component to use the visual parts of an embedded component & the UI Component events enable other UI Components to be informed about status change

These elements (context nodes, events and interface views ) are provided declaratively by the Interface controller which facilitates access to a UI component using a usage object.

Consider the Example of publishing the context node of an embedded componet (say component X1) in the  embedding component  say  X2

Go to the runtime repository of X1

Select 'context' under the interface controller

right click on it

Add your context node (say BUILEMP)

Save

Now we'll see how we can access BUILEMP in Component X2

Go to the runtime repository in component X2

select .component usage'.

right click on it

Add Component usage ( Used component X1)

Interface view = Main window

Check & Save.

Binding

Now in the component controller class of component X2

Implement "WD_USAGE_INTIALIZE" Method

Case iv_usage-> usage_name

WHEN 'X1'

iv_usage-> bind_context_node

exporting

iv_controller_type = cl_bsp_wd_controller=> co_type_component

iv_target_node_name = 'BUILEMP'

iv_node_2_bind =  'BUILEMP'  .

endcase.

Hope this Helps

Regards

Sanguine

Former Member
0 Kudos

Thanks for reply...

What ever you explained example We can do this with help of component controller without using interface controller,Then what is scenario exactly when interface controller should use...And Is there any difference between interface controller and component controller....