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

Similar Messages

  • 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

  • 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

  • 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

  • Unable to update rating (rating column) on host document using JavaScript Object Model API inside sharepoint hosted apps

    Hi Everyone,
    We are developing SharePoint hosted apps for Office 365, for that we are going
    to implement document rating functionality inside Sharepoint app. The host web contain document library (“Documents”) and from apps we need to rate each document. The rating functionality working fine with CQWP in team site  using
    JavaScript Object Model API.
    But the same code is not working inside apps and giving error:-
    If we are using app context than error will be:-
    "List does not exist.
    The page you selected contains a list that does not exist.  It may have been deleted by another user."
    And for Host context than error will be:-
    "Unexpected response data from server."
    Please help on this
    Please see below code..
    'use strict';
    var web, list, listItems, hostUrl, videoId, output = "";
    var videoLibrary = "Documents";
    var context, currentContext;
    var lists, listID;
    var list, parentContext;
    var scriptbase;
    (function () {
        // This code runs when the DOM is ready and creates a context object which is 
        // needed to use the SharePoint object model
        $(document).ready(function () {
            hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
            context = SP.ClientContext.get_current();      
            SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);
        function sharePointReady() {
            scriptbase = hostUrl + "/_layouts/15/";
            // Load the js files and continue to the successHandler
            $.getScript(scriptbase + "SP.Runtime.js", function () {
                $.getScript(scriptbase + "SP.js", function () {
                    $.getScript(scriptbase + "SP.Core.js", function () {
                        $.getScript(scriptbase + "reputation.js", function () {
                            $.getScript(scriptbase + "sp.requestexecutor.js", execCrossDomainRequest);
        //Query list from hostweb
        function execCrossDomainRequest() {       
            //Load the list from hostweb
            parentContext = new SP.AppContextSite(context, hostUrl);
            web = parentContext.get_web();
            list = web.get_lists().getByTitle(videoLibrary);
            context.load(list, 'Title', 'Id');
            var camlQuery = new SP.CamlQuery();
            camlQuery.set_viewXml('<View><Query><OrderBy><FieldRef Name="Modified" Ascending="FALSE"/></OrderBy></Query><RowLimit>1</RowLimit></View>');
            listItems = list.getItems(camlQuery);        
            context.load(listItems);
            context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
        //Process the image library
        function onQuerySucceeded() {       
            var lstID = list.get_id();
            var ctx = new SP.ClientContext(hostUrl);       
            var ratingValue = 4;
            EnsureScriptFunc('reputation.js', 'Microsoft.Office.Server.ReputationModel.Reputation', function() {      
            Microsoft.Office.Server.ReputationModel.Reputation.setRating(ctx, lstID, 1, ratingValue);       
            ctx.executeQueryAsync(RatingSuccess, RatingFailure);
        function onQueryFailed(sender, args) {
            alert('Failed' + args.get_message());
        function failed(sender, args) {
            alert("failed because:" + args.get_message());
        function RatingSuccess() {
            alert('rating set');
            //displaystar();
        function RatingFailure(sender, args) {
            alert('Rating failed : : ' + args.get_message());
        //Gets the query string paramter
        function getQueryStringParameter(paramToRetrieve) {
            var params;
            params = document.URL.split("?")[1].split("&");
            for (var i = 0; i < params.length; i = i + 1) {
                var singleParam = params[i].split("=");
                if (singleParam[0] == paramToRetrieve) return singleParam[1];
    Thanks & Regards
    Sanjay 
    Thank you in advance! :-)
          

    Hi,
    According to your post, my understanding is that you want to update list column in SharePoint hosted apps using JavaScript Client Object Model.
    Based on the error message, it seems not retrieve the list object in context. I suggest you debug the code step by step using Internet Explorer Developer Tools to
    find the problem.
    Here are some demos about using JavaScript Client Object Model in SharePoint hosted app:
    http://blogs.msdn.com/b/officeapps/archive/2012/09/04/using-the-javascript-object-model-jsom-in-apps-for-sharepoint.aspx
    http://sharepoint.stackexchange.com/questions/55334/how-to-access-list-in-sharepoint-hosted-app
    http://www.dotnetcurry.com/showarticle.aspx?ID=1028
    Best regards
    Zhengyu Guo
    TechNet Community Support

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

  • BUG: Sorting drop-down lists from the field tab when using "specify item values"

    Hi all,
    I've finished creating my form now, but I came across this whilst writing up my documentation for maintenance tasks.
    This occurs when adding new values to a drop-down list that has the "Specify item values" checkbox in the binding tab checked.
    When I then try to sort my list using the built in sort buttons, it will sort the items, but the list of specified values in the binding tab does not sort reorder to stay with the original items in the list.  This is hapenning when I sort from the Object > Field tab.  If I sort in the Object > Binding tab then the sort will include the specified values.
    For example:
    A    5
    C    2
    D    9
    Add a new value to get:
    A    5
    C    2
    D    9
    B    10
    Sort the list using the button:
    A    5
    B    2
    C    9
    D    10
    But it should be:
    A     5
    B     10
    C     2
    D     9

    I was able to duplicate this problem and it looks like a possible bug.  I've submitted it to support.

  • Scale Object with Panel, but what about inside a Tab control?

    The Scale Object with Panel option works very well for simple UI
    objects.  I like to use it for VIs that display tables or
    multicolumn listboxes, etc.  I am finding a limitation when I use
    the Tab control.  If I have a table or listbox in each tab, I
    would like them to scale with the panel.  I would also like the
    tab to scale.  It should look like an Excel workbook where all
    sheets scale with the window even though they are each on their own
    tab.  If I could only Group the various tables / lists with the
    Tab itself....
    This wouldn't be such an issue if the Bounds property of the
    multicolumn listbox was writable.  I can set the number of rows
    and columns, but column size can be variable and not uniform across all
    columns.  Also, that solution looks and behaves much different
    from the Scale Object with Panel approach.... not to mention the extra
    coding required.
    I'm guessing that this amounts to a feature request, but if anyone has a present-version workaround, I'd love to hear about it.
    See you at NI Week!
    Dan Press
    PrimeTest Automation

    Hi Kalin T,
    Thanks for your prompt reply. I am running version 8.01. My problem is that i cannot select "Scale object with pane" for the controls inside a Tab control if the Tab control "Scale object with pane" is turned on. I want both the Tab control and the controls inside to be scaled, for instance an Waveform graph or an textbox  when i resize my main window.
    Best regards,
    Mattis
    Attachments:
    Scale.vi ‏11 KB

  • Setting the default value to taxonomy column in sharepoint 2010 using client object model

    I am creating a metadata column and I want to set its default value in sharepoint 2010 using client object model. Can anyone help me?
    My code for creating metadata column is as below:
                ClientContext clientContext = new ClientContext(siteUrl);
                Web site = clientContext.Web;
                List list = site.Lists.GetByTitle("LibraryName");
                FieldCollection collField = list.Fields;
                string fieldSchema = "<Field Type='TaxonomyFieldType' DisplayName='SoftwareColumn' Name='SoftwareColumn' />";
                collField.AddFieldAsXml(fieldSchema, true, AddFieldOptions.DefaultValue);
                //oneField.DefaultValue = "ASP.NET|4c984b91-b308-4884-b1f1-aee5d7ed58b2"; // wssId[0].ToString() + ";#" + term.Name + "|" + term.Id.ToString().ToLower();
                clientContext.Load(collField);           
                clientContext.ExecuteQuery();

    Hi,
    Please try the code like this:
    ClientContext clientContext = new ClientContext("http://yoursite/");
    List list = clientContext.Web.Lists.GetByTitle("List1_mmsfield");
    clientContext.Load(list);
    clientContext.ExecuteQuery();
    FieldCollection fields = list.Fields;
    clientContext.Load(fields);
    clientContext.ExecuteQuery();
    Field f = fields.GetByTitle("mms");
    clientContext.Load(f);
    clientContext.ExecuteQuery();
    Console.WriteLine(f.Title + "---" + f.DefaultValue);
    //2;#A2|a0a95267-b758-4e4d-8c39-067069fd2eef
    //1;#A1|641f5726-992c-41c8-9ddc-204a60b88584
    f.DefaultValue = "1;#A1|641f5726-992c-41c8-9ddc-204a60b88584";
    f.Update();
    clientContext.Load(f);
    clientContext.ExecuteQuery();
    Console.WriteLine(f.Title + "---" + f.DefaultValue);
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Just upgraded to lateste verison of Firefox and started using the Tab groups. Like them, but noticed that Save all bookmarks is now gone. How do I save all my bookmark stored inside the tab groups?

    I am using Firefox 6.0 (and still using windows XP ). I have a habit of opening tons of tabs and the new Tab group feature seems perfect for me. But I couldn't find anywhere to save all my tabs as the Save all bookmarks is now gone. How do I save all my bookmarks stored inside the tab groups?
    thanks

    I had to restart firefox because of an update and I saved all my tabs and when I restarted firefox it has lost all of my saved bookmarks...won't be using the new tab groups again..very disappointed

Maybe you are looking for

  • Changing unloading point using BAPI

    Hello Gurus,                      Can we change unloading point(item level) in the sales order using BAPI_SALESORDER_CHANGE. If so please let me know how to do it. Thanks, KB

  • Iphoto 8 after update won't import RAW files

    I'm running iphoto 8 version 7.1.3 and just updated the software from Apple's auto update (Jun 30th is when the update installed). Now I can't import RAW files from my canon 30D, from a memory card or from existing files. Every time I try iphoto free

  • Hide ToDos in printout (or main view?)

    Hey all - I'm trying to figure out how to hide ToDo items from the list in iCal. The drop down has an option for "Show all completed items" and when I do not have it selected it hides SOME of the completed ToDo items, but not all. More importantly, I

  • Opening wmv attachment

    Is there any way to open a wmv attachment files for mail in iphone 3G?

  • How to use member variable to all my pakages

    i want to use some member variables to all my packages in my project how to declare it.