on 11-26-2009 12:46 PM
How to pass information from one SAP standard webdynpro component to another?
On the click of the tabs in one SAP standard webdynpro component, we want to display some help text in the vertical navigation strip which is in another SAP standard Webdynpro component?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Sandeep ,
hv u folowed these steps :
// component B using component A
1 in the component B , Double click the component in the object tree and choose the tab Used Components.
2 Define a usage of your component A within this component.
3 Do a mapping between the interface controller of ur MAIN component B & the component controller of
ur SUB component A 4 Before you can call the Interface Controller method of the used component in ur view ,you have to declare that the view controller can use the Interface Controller of the used component. By default only the component controller can access used components directly, view controllers have to specify this explicitly.
5 go to the tab Properties of the B, click the button Create Controller Use and select the INTERFACECONTROLLER of the component A for component use .
6 go to WINDOWS , inside ur View container right clck to select embed view to select the view to be embedded
n hv u refered this article on component usage :
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Use the concept of Assistance Classes.
REfer teh SAP Online help :
http://help.sap.com/saphelp_nw70/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm
Use the Same Assistance class in all the components and set an Attribute in Assistance class with the information while in One Component.
Now in your 2nd Component , you can access that Attribute of Assistance class and check the value set.
To call the attribute/method use the instance wd_assist.
SAP Standard Component : DEMO_COMMON_ASSISTANCE1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Sandeep ,
u need to do component usage for the same
refer the tutorial :
Example :Declaration of u201CDEPARTMENT_INFO u201CComponent use within the component u201CZWORKEXu201D for Component Usage
follow these steps :
1 Double click the component in the object tree and choose the tab Used Components. Create new Component Use DEPARTMENT_INFO by adding the entries directly in the Used Components List.
Before you can call the Interface Controller method of the used component you have to declare that the view controller can use the Interface Controller of the used component. By default only the component controller can access used components directly, view controllers have to specify this explicitly.
Therefore go to the tab Properties of the ZWORKEX, click the button Create Controller Use and select the INTERFACECONTROLLER of the DEPARTMENT_INFO component use .
2 go to WINDOWS , inside ur View container right clck to select embed view to select the view to be embedded
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.