on 05-26-2012 7:18 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.