on 12-25-2005 11:54 PM
I have a value node with the four attributes.
Person(cardinality 0..n)
--Id
--FirstName
--LastName
I want to implement OVS for Id, First name and last name. Same value help will be attached all three attributes.When user clicks the valuehelp, he will be displayed with the table Id, FirstName, LastName, E-Mail. When ever user selects a row Id, FirstName, LastName will be copied back.
Any help is greatly appreciated.
Thanks
hi Ajay,
i have a similar requirement now. So can u plaese post the code samples.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check out this link
http://help.sap.com/saphelp_nw04s/helpdata/en/bf/867842fdb70f53e10000000a155106/frameset.htm
Thanks
Senthil
P.S.Reward Points for useful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go through the tutorial and get a good idea on OVS.
Here (in the tutorial) the values are populated with the data from SAP R/3. For your requirement, change the code accordingly and populate your node with values which you need it.
Even the WD project (with the code) is available for download in SDN.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on advanced value help and object value selector - 9.htm
Thanks
Senthil
P.S:Reward Points if the answer are useful/helpful
I am not using Adaptive-RFC. Value node is populated with data within Web Dynpro.
I defined context structure as required by OVS.
Context
|-Input(Cardinality:0..n, Singleton: True)
|---Output(Cardinality:0..1, Singleton: True)
|-----MyResults(Cardinality:0..n, Singleton: True)
|-------ID
|-------FirstName
|-------LastName
|-----ID
|-----FirstName
|-----LastName
|-ID
public void wdDoInit() {
IWDAttributeInfo[] ovsStartupAttributes =
{ wdContext.getNodeInfo().getAttribute("ID") };
WDValueServices.addOVSExtension("OVS Over Value Node",
ovsStartupAttributes,
(IWDNode)wdContext.nodeInput(),
(IWDNode)wdContext.nodeMyResults(),
//null,
new OVSListener());
}
private class OVSListener implements
IWDOVSContextNotificationListener {
//Three required methods are implemented here.
}
All the above code is defined in the View controller.
When I run this code I get the error
"com.sap.tc.webdynpro.services.exceptions.WDRuntimeException:
result node should be declared in a custom controller! "
Even when I pass null for ovsListener in addOVSExtension()
also I get same error. So above error is not due to
the IWDOVSContextNotificationListener implementation.
Anybody can pls help on this?
Thanks
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.