cancel
Showing results for 
Search instead for 
Did you mean: 

OVS over value node

Former Member
0 Kudos

I have a value node with the four attributes.

Person(cardinality 0..n)

--Id

--FirstName

--LastName

--E-Mail

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Ajay,

i have a similar requirement now. So can u plaese post the code samples.

Former Member
0 Kudos

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

Former Member
0 Kudos

Senthil,

Thanks for your reply. The link you pointed refers to the OVS over model node rather value node.

Any thoughts?

Thanks

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Ajay,

Did you create Custom Controller ?

I hope your structure (which you have mentioned) is defined in Custom Controller Context.

Thanks

Senthil

Former Member
0 Kudos

I defined this structure in View Controller!

Can somebody please post the example code?

Thanks!