Object Value Selector OVS

Hi Experts,
I have a question, I need two OVS with different Nodes in a single view, is it possible?.  I need to know to differentiate at the time of executing the RFC in OnQuery.
Thanks in advance for your help.
I implemented this wiki: [http://wiki.sdn.sap.com/wiki/display/WDJava/ValueHelp-ObjectValue+Selector]

Hi Briger,
Check below document. this might help you -
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8?QuickLink=index&overridelayout=true
Regards,
Sen

Similar Messages

  • Object Value Selector (OVS) Tutorial Help!

    Hi,
    I am working on the advanced input help: The Object Value Selector (OVS) tutorial. I downloaded the ready- to- use from SDN and tried to deploy and run it. I don't know what user name and password to use in order to maintain JCo to create the MODELDATA and METADATA in local J2EE engine. In NetWeaver Developer Studio, the models AdRFCFlightListModel, Model Classes, and the BAPIs have been created by SDN already, so I don't really know what username and password to use. If anyone could help me with this, I would greatly appreciate that.
    Regards,
    -Napadol

    Hi,
    For creating JCO,
    SAP JCo Functions,Architecture,Applications,Installation,Client & Server Programming :
    http://help.sap.com/saphelp_nw70/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    Creating Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm
    Maintaining Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
    The SAP JCo Repository :
    http://help.sap.com/saphelp_nw70/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
    Dynamic Jco creation Blogs:
    /people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
    /people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3

  • Using OVS (Object value selector) inside a tabe.

    I am new to the WebDynpro Java development. I am developing a simple UI ,where I have to put inputfield in table row and apply OVS to that inputField. I have already done that , but the problem is when selecting the inputField the value hep button is showing and , when clicking on the value help button nothing happens.Can any body suggest me , how to use OVS inside a table row.
    Thanks,
    Srikanta

    Hi Srikanta,
    you can use object value help selector in table by creating a singleton node attribute by this you will make sure that one row's value is not affected by other row's value selection for object value help please refer to this wiki article [Value Help - Object Value Selector|http://wiki.sdn.sap.com/wiki/display/WDJava/ValueHelp-ObjectValue+Selector]. Please let us know if you need any help.
    Regards
    Jeetendra

  • Object Value Selector

    Hi,
    can you please tell me
    How to create Object Value Selector ?
    Thanks in Advance,
    Ravi Kiran

    Hi Ravi,
               refer this link for OVS:
    [https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/valueHelp-ObjectValue+Selector]
    Thanks and Regards

  • Problem while running OVS(Object value Selector)

    Hi,
    I am getting a Nullpointer exception at
           <b>WDValueServices.addOVSExtension</b>("Flight Selection", ovsStartUpAttributes,          
           wdThis.wdGetOVSTestCompController().getOVSInputNode(),
           wdThis.wdGetOVSTestCompController().getOVSOutputNode(),listener);
    Any help?
    regards,
    Deepika

    Thanks Valery.
    I have checked the parameters and none of them are null.
    <i><b>WDValueServices.addOVSExtension(</b>"Flight Selection",
         ovsStartUpAttributes,
         wdThis.wdGetTestOVS_CustomController().getOVSInputNode(),
         wdThis.wdGetTestOVS_CustomController().getOVSOutputNode(),listener);</i>
    How do we get/give the provider (first parameter)? I have put it as "Flight Selection". Will this make any difference?
    Exception message is below
    The initial exception that caused the request to fail, was:
       <i>java.lang.NullPointerException
        at com.sap.tc.webdynpro.progmodel.valuehelp.ContextBasedOVSProvider.<init>(ContextBasedOVSProvider.java:47)
        at com.sap.tc.webdynpro.progmodel.valuehelp.ValueServices.addOVSExtension(ValueServices.java:49)
        at com.sap.tc.webdynpro.progmodel.api.WDValueServices.addOVSExtension(WDValueServices.java:86)
        at com.sap.training.ovs.strtview.OVS_testView.wdDoInit(OVS_testView.java:104)
        at com.sap.training.ovs.strtview.wdp.InternalOVS_testView.wdDoInit(InternalOVS_testView.java:121)</i>
    OVS_testView is the view where i am implementing the OVS. Please help
    regards,
    Deepika

  • Problem running Object Value Selector

    Hi,
    We have implemented OVS for GetFlightList BAPI. We are able to get the data on the OVS selector. But once we click on a particular record of the table, the value is not passed to the base control and we get <b>ClassCastException</b> in applyResult() method of the listener.
    The code is pasted below.
    public void applyResult(IWDNodeElement applicationNodeElement,
         IWDNodeElement queryOutputNodeElement) {
    try
    <b>IPrivateOVS_testView.IFlight_dataElement ovsCallerNodeElement =(IPrivateOVS_testView.     IFlight_dataElement) applicationNodeElement;</b>
    The exception thows on this line of the code.
    Any help?
    regards,
    Deepika

    I am still getting the same Exception.I am explaning the scenerio:
    I created a set of Flight_data attributes in the custom controller and mapped to a similar set in the view controller to fix the error.The listener is implemented in the Custom controller.On selecting a row from the OVS table i get the CastClass Exception in the applyResult()method of the listener at the following point of code:
    <b>IPublicTestOVS_Custom.IFlight_dataElement ovsCallerNodeElement =
         (IPublicTestOVS_Custom.IFlight_dataElement)
         applicationNodeElement;</b>
    The exception is given below:
    <i>java.lang.ClassCastException
        at com.sap.training.ovs.cust.TestOVS_Custom$OVSDemoContextNotificationListener.applyResult(TestOVS_Custom.java:235)
        at com.sap.tc.webdynpro.progmodel.valuehelp.OVSCMIQuery.applyResult(OVSCMIQuery.java:143)
        at com.sap.tc.webdynpro.components.ovs.ResultView.onActionLeadSelected(ResultView.java:195)
        at com.sap.tc.webdynpro.components.ovs.wdp.InternalResultView.wdInvokeEventHandler(InternalResultView.java:149)</i>

  • Object Value Selector in Webdynpro

    Hi I'm trying to use in OVS in my WebDynpro Application,
    I'm trying to create a Custom Controller to implement helper context, where do i get the APIs for WDValueServices.
    When I try to declare a method in the custom controller with return type <i><b>com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener</b></i> local dictionary doesn't show this type. Can anyone help me ?
    Raj.

    Hi Raj,
    the requested type is not a dictionary type, it's bloody plain old Java type Please select the "Java Native Type" radio button when editing the "type" property of the corresponding value attribute, press "Browse...", then type IWDOVSContext.. in the following search dialog and select the listener in the list below.
    Hope that helps.
    Regards
    Stefan

  • Implement Object Value Selector

    Hello,
    We are implementing ESS Business Package 1.0 on EP7.0 and in Travel and Expense we are using 'Switch Personnel Number' service which allows the user to select a personnel number and create expense reports for them...but currenlty it does not have a OVS which will allow them to select an employee from the list rather than entering it....please let me know how to implement it...
    Any help would be highly appreciated.

    Hi Anil,
    Refer to the following links to implement OVS:
    /people/valery.silaev/blog/2006/07/18/ovs-rfc
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8
    Thanks n Regards,
    Jhansi Miryala

  • How to fill Object Value Selector

    Hello All,
    I want to fill values for my value help node dynamically. Where should I write the code. I mean in which Method I should write.
    Any help on this is highly appreciated.
    Regs,
    Venkat

    Venkat,
    if you want to get the help, before view is shown to user , then write the code in WDDoInit() , if you want to get the help on performing any action lets say, on clicking button then
    create one action , bind this to the OnAction of button , then you can write the code in the action event handler of that button; so value help will be recieved on clicking the button.
    if you want to refer any tutorial , here it is:
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/5dcbe990-0201-0010-2c99-a2bc9e61acfc [original link is broken]
    let me know if you have any problem
    regards

  • How to call BAPI in Extended Value Selector in Webdynpro for java

    Hi all
    i need to call a BAPI and populate the data in Extended Value Selector UI element.
    can you please provide sample codes and required help.
    Regards
    Sunil

    Hi,
    Go through the following link
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/391ee590-0201-0010-1c89-f1193a886421]
    [Re: Creat organization tree in OVS]
    and also you can search in SDN, there are lots of threads
    Regards
    Raghu

  • Add columns to extended value selector

    Hi All,
    I have created an Extended value selector that has 2 columns(KEY column and VALUE column). How do I add columns to Extended Value Selector.
    Thanks,
    Tom

    HI Tom,
    ->EVS just picks value from enumeration type which you must have created and displays those value.
    ->ONLY key and Value are the two columns possible. You cannot add any new columns to that.
    ->F4 help  helps only to get values for a particular field which are already present somewhere ex may be some bapi or database.
    ->OVS is new version and you can look for that also if it suits you.
    Thanx.

  • WS & WD context binding: SVS & EVS (help value selector)

    Hello !
    I've built the J2EE and WS example described here: http://help.sap.com/saphelp_nw04/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    On top of that I've built with Web Dynpro an input form, reservation view and cancel form: all works fine.
    I'd like to provide a help value selector for the input fields of the form (Drop down list, and external window containing a list or even an OVS retrieving possible locations in a DB) to make the WD app more user friendly.
    The solution I'd like to implement: to bind the context of another input to a local dictionary and "map" it to the real input field (mapped to the controller context) which should be hidden. How can I do that at runtime ?
    Thanks in advance !

    Finally I solved my problem by myself after having a look at this thread: serialization error [problem with setting attr values in the context]

  • How to set a object value bound to a session to JavaScript variable

    In a JSP, I store an object value in a HttpSession and I also write a Javascript function to display something on the screen. I need to use the Javascript function to display the object value which is stored in the session. How to set the object value to variable of the JavaScript function. Thanks.

    I write a class JavaScriptHelper to convert the object value to variable of the JavaScript;
    1.get the data to a javabean from database;
    2.convert the data to variable of the JavaScript as a String ;
    3.store the object in a HttpSession or Httprequest ;
    4.use in Jsp get the String (variable of the JavaScript )
    YourBean bean = (YourBean) request.getAttribute("model");
         if (bean != null) out.println(bean .getJsCode())
    convert function,(this is only for the matrix):
    public static String formatJsCode(Vector vector) {
    String sJsCode = "";
    //get js head
    sJsCode = getJsHeader();
    //define js array;
    sJsCode += "var data=new Array();\n";
    Vector v = null;
    String sTemp = "", sLine = "";
    for (int i = 0; i < vector.size(); i++) {
    v = (Vector) vector.get(i);
    sLine = "";
    for (int j = 0; j < v.size(); j++) {
    sTemp = (String) v.get(j);
    //replace " to \"
    sTemp = sTemp.replaceAll("\"", "\\\\\\\"");
    //escape Html Tag
    //sTemp = StringUtil.escapeHTMLTags(sTemp);
    //replace \r\n to <br>
    sTemp = sTemp.replaceAll("\r\n", "<br>");
    if (j != 0)
    sLine += ",";
    sLine += "\"" + sTemp + "\"";
    sJsCode += "data[" + i + "]=new Array(" + sLine + ");\n";
    //get js foot
    sJsCode += getJsFooter();
    return sJsCode;
    public static String getJsHeader(){
    return "<script language=\"JavaScript\">";
    public static String getJsFooter(){
    return "</script>";
    }

  • Portal Runtime Error while clicking on value selector

    Hi,
    I am facing problem while clicking on value selector on Picklist search iview and also any lookup table value selector.
    If I assign the same role to my portal user(Admin rights) working fine...but if I assign it to end users...not accessible on popup and giving portal runtime error.
    Currently i have assigned standard "eu_role" to the end users...Do I need to give any special permissions to some of end users?
    Appreciate all your help in this regard.
    Thanks,
    Pooja

    System Administration > Permission > Security Zones >
       com.sap.pct.mdm.appl.masterviews > high_safety >
       com.sap.pct.mdm.appl.masterviews > low_safety >
    com.sap.pct.mdm.tech.systems > high_safety
    com.sap.pct.mdm.tech.wizards > high_safety
    give Read / Write and End User access to the custom role/standard role that has to access MDM Views.
    Regards,
    Nitin

  • How to set a Object value by JDI

    How to set a Object value using JDI?
    For example:
    class User{
      private String name;
      private String id;
    set and get method;
    public static void main(String[] args) throws Exception {
            VirtualMachineManager vmm = Bootstrap.virtualMachineManager();
            List<AttachingConnector> connectors = vmm.attachingConnectors();
            SocketAttachingConnector sac = null;
            for (AttachingConnector ac : connectors) {
                if (ac instanceof SocketAttachingConnector) {
                    sac = (SocketAttachingConnector) ac;
                    break;
            if (sac == null) {
                System.out.println("JDI error");
                return;
            Map<String, Connector.Argument> arguments = sac.defaultArguments();
            Connector.Argument hostArg = arguments.get("hostname");
            Connector.Argument portArg = arguments.get("port");
            hostArg.setValue(HOST);
            portArg.setValue(String.valueOf(PORT));
            vmMachine = sac.attach(arguments);
            List<ReferenceType> classesByName = vmMachine.classesByName(CLSNAME);
            if (classesByName == null || classesByName.size() == 0) {
                System.out.println("No class found");
                return;
            ReferenceType rt = classesByName.get(0);
            List<Method> methodsByName = rt.methodsByName(METHODNAME);
            if (methodsByName == null || methodsByName.size() == 0) {
                System.out.println("No method found");
                return;
            Method method = methodsByName.get(0);
    I will connect to server and monitor the remote server JVM , There is a object of User, I want to change its value by the Java Debugger Interface by client.
    so how to set its value by the client, and I can not got the User bean at client.
    I know the basic type filed value changed as follows:
    Value newValue = vmMachine.mirrorOf("change var value");// this field is a string.
    stackFrame.thisObject().setValue(field, newValue);
    But a Object , how can I change its value.
    Thanks Advanced.

    ObjectReference.setValue() is the method for chaining the value of an Object's field. First you need to find the specific Object you want to change, though.
    /Staffan

Maybe you are looking for