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

Similar Messages

  • 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 (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

  • 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>

  • 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

  • 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

  • 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

  • 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

  • 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 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

  • GlobalContainer object values acessed among UDF's  in message mapping ?

    hi
    i have scenario where i am using globalContainer variable functionality in my message mapping.
    in edit java section
    String usr;
    Container container ;
    GlobalContainer globalContainer ;
    intialize usr = "";
    in First UDF
    String inlogin_sess =  " ashutosh test value" ;
    globalContainer.setParameter(usr,inlogin_sess);
    return any value :
    now if i create another 2nd UDF and use :
    String  out =globalContainer.getParameter(usr);
    return out ;
    now 2nd UDF is giving null pointer exception...
    for testing the code functionality..
    IF i  use the  SET and GET in 1st UDF :
    globalContainer.getParameter(usr);   in 1st UDF than it is working sucessfully...
    globalContainer.setParameter(usr,inlogin_sess);
    String  out = globalContainer.getParameter(usr);
    return out ;
    in help.sap it is mentioned that Globalcontainer objects  values can be fetched   among UDF's in one message mapping....
    [http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm]
    i have gone a lot of thread in sdn where Global container are used like sequence no creation etc, but every where  the
    GET and SET are used in SAME UDF...
    any clue where is leak..
    Regards,
    ashutosh R

    Hi Abhishek
    Your point is legimate, but for my their is no such issue..
    even i try to use it as :see image..
    [http://www.screenshots.cc/show.php/14137_GlobalVariable.JPG.html]
    UDF1 :
    globalContainer.setParameter(usr,inlogin_sess);
    return any value :
    and in UDF2 
    String  out = globalContainer.getParameter(usr);
    return out ;
    mainting the sequence
    My concern is object globalContainer is local in UDF1, so it will through nullpointer ,if we try to access in UDF2.
    if we declare globalContainer   in edit jave -GlobalVariables also, still it is having the error..
    Regards
    AshutoshR

  • How to Catch the Event when a Row is Selected in Extended value Selector

    Hi All.
    I Want to Call the Action when a perticular row is selected in Extended value Selector.
    How can I do it
    Thanks & Regards
         Kiran

    Hi Kiran,
                  Create a seperate view with the table of records same u are showing EVS because with EVS it is not possible to raise any event.
    So add ths view to a seperate window and open that window instead of EVS .So here you can raise an event becuse it a view.
    Regards
    Padma N

  • 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

Maybe you are looking for

  • My xml publisher report not display chart/graph in r12 apps

    dear all my xml publisher report is not showing chart/graph in oracle apps r12.1.1, but it's locally preview fine in MS word when i register rtf template in apps it just show data in xml not apply template without chart/graph it's work fine in apps p

  • No unpaid tax lines exist for the given selection criteria.

    Hi at the time of remittance challan,getting following error: No unpaid tax lines exist for the given selection criteria. Message no. 8I702 Diagnosis The corresponding withholding tax line  &1& is not present in WITH_ITEM table. System Response For w

  • How do I open PDF files on ipad

    I cannot open some PDF files on my ipad3. Some seem to open, but not all..... Any suggestions?

  • Battery gauge error running Power Manager for Windows XP version 5.20

    Last week on my R61 (8932-CTO),  Update Retriever and System Update requested that I download and install ThinkPad Power Manager for Windows XP version 5.20. After rebooting, I immediately received an error box with the following message:  An excepti

  • DS Files in WebDav

    This apple article http://support.apple.com/kb/ht1629   is not working for me.  DS files are continually created in a WebDav structure for me even after I run the command in terminal.  Does someone have a fix for this?