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

Similar Messages

  • 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

  • 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

  • How to fill the values in List Box?

    Hi Experts,
    Can anyone explain me how to fill the values in the List Box such that the value should be from the table?
    For Example : Fill the EmpID from table T1 into the ListBox?
    Thanks in Advance,
    Regards,
    Raghu

    hi,
    and u doing it through report means from se38 than here is code...
    DATA : BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,
           END OF itab.
    DATA : ok_code LIKE sy-ucomm.
    CALL SCREEN 0200.
    *&      Module  STATUS_0200  OUTPUT
          text
    MODULE status_0200 OUTPUT.
      SET PF-STATUS 'Z200'.
    ENDMODULE.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
          text
    MODULE user_command_0200 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    *&      Module  mat_val  INPUT
          text
    MODULE mat_val INPUT.
      SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE itab
        WHERE matnr BETWEEN '000000000000000101' AND '000000000000000109'.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield               = 'MATNR'
           VALUE_ORG              = 'S'
          tables
            value_tab              = itab
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ENDMODULE.                 " mat_val  INPUT
    <b>And this is flow logic..</b>
    PROCESS BEFORE OUTPUT.
      MODULE status_0200.
    PROCESS AFTER INPUT.
      MODULE user_command_0200.
    PROCESS ON VALUE-REQUEST.
      FIELD itab-matnr MODULE mat_val.

  • 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

  • How to fill more values in one field (JSP / HTMLX)

    When I want to fill one value in a field on a JSP page, I enter:
    value="<%=someClass.getSomeValue() %>"
    How should I enter more values (e.g. street, city, postal code, country) in one field?
    I tried to put those fields together, so I do one getAddress() call, but the output is (initial screen - supposed to be empty) null null null null
    When I enter a customer, the field works ok (no null values).
    TIA,
    Mylene

    JSP:
    <hbj:inputField     
    id="CustomerAddressInputField"     
    type="STRING"     
    maxlength="10"     
    value="<%=quotationHeader.getCustomer().getAddress().getAddress() %>"
    design="STANDARD"
    ... %>"
    getAddress():
    @return String (complete address / positioning
    pCode unsure!)
    public final String getAddress()
    return (street + " " + pCode + " " + city + " " + cCode);
    This is what returns null null null null
    What I want (if possible) is to change the getAddress() in the JSP in subsequent getStreet() - add space - getPCode() - add space - getCity() - add space - getCCode()
    That will not result in null values - I hope.
    But just putting those calls in the string between the
    value ="<%= and the %>" tags doesn't seem to work!
    TIA,
    Mylene

  • How to fill Domain Value range Programatically?

    Hi Experts,
    I like to fill the domain range values from 'ZTABLE' ..
    so please help me how to fill the domain range values programatically .
    Thanks
    Banu.

    Hi Banu,
    You can update these values for Domain using Table *DD07L*.
    DOMNAME " Domain Name
    AS4LOCAL
    VALPOS
    AS4VERS
    DOMVALUE_L " Lower Limit
    DOMVALUE_H " Upeer Limit
    APPVAL
    So in program
    Fill your Work Area and update
    modify table DD07L where DOMNAME = 'YOUR_DOM_NAME'.
    Cheerz
    Ram

  • How to fill column value of a matrix with specific color when there is no value in that specific cell?

    Hi All,
    I need to create a 5/5  matrix in SSRS report. The data will be :
    Col_Side   Col_Header   Col_data
    1                  1                1
    1                  1                 1
    1                  2                1
    1                  5                1
    1                  5                1
    1                  5                1
    2                  3                1
    2                  5                1
    3                  1                2
    3                  1                2
    3                  1                2
    4                   2               1
    4                   4               1
    5                   1               1
    5                   1               1
    5                   5               1
    So, the matrix column will be Col_Header and matrix row will be Col_Side and count(Col_data) will be on the data.
    Finally, it will create a 5 by 5 matrix with Count(Col_data) as its data for each combinations. If there is no combination (for ex: in the above data we do not have no combination of (1,3) , (1,4) , (2,1) etc..) then the matrix will be filling that corresponding
    cell with zero.
    Here I need to fill the cells with some colors based on some criteria.
    I need to fill (5,3), (5,4), (5,5) combination with "Red" color.  Like this , I need to give different colors in each of the cells. Here, (5,5) combination will be having 1 in its cell.  (5,4) and (5,3) will be having zero in its corresponding
    cells. I 'm trying to fill all the 3 cells with "Red" color. But, I am able to fill only (5,5) with "Red" color. Since the other 2 cells (5,3) and (5,4), has zero in their cells, it will not fill the cells with "Red" color. 
    How can I fill those two cells (5,3) and (5,4) with red color?
    I know this is very vague. I have no option to give the picture here..
    Please suggest

    Hi Julie,
    According to your description, there is a 5/5 matrix with three fields: Col_Side, Col_Header, Col_data. You drag Col_Side field to Rows, Col_Header to Columns and Col_data to Data, then filling blank cells with zero using expression. Now you want to fill 
    (5,3), (5,4), (5,5) cells with red color using expression, but it has no effect on cells (5,3) and (5,4).
    According to my test, the expression has on effect on cells (5,3) and (5,4) since there is no corresponding data and the cells are blank. As a workaround, we can insert data for cells (5,3) and (5,4) in dataset, then use expression by following steps:
    In the dataset, insert two sets of data (5,3,0), (5,4,0).
    Right-click the cell of data, click Text Box Properties.
    Click Fill in left pane, click (fx) button, then type the expression like below, then click OK.
    =iif(Fields!Col_Side.Value=5 and Fields!Col_Header.Value >=3 ,"red","white" )
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How to insert object values into table.

    Hi All,
    I have a problem with passing java object to procedure. Procedure is running properly when I execute in oracle,but it is not executing when I call from Java.
    I am getting Error :
    java.sql.SQLException: invalid name pattern: Pkg_Bulk_Insert.ITW_EMP_OBJ_ARRAY
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
         at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java)
         at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java)
         at oracle.sql.ArrayDescriptor.initPickler(ArrayDescriptor.java)
         at oracle.sql.ArrayDescriptor.<init>(ArrayDescriptor.java)
         at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java)
         at JavaObjectToOracle.main(JavaObjectToOracle.java:31)
    Here I am copying my procedure,oracle version is 9i.
    Package specification:
    CREATE OR REPLACE PACKAGE Pkg_Bulk_Insert AS
    TYPE ITW_EMP_OBJ_ARRAY IS VARRAY(20) OF VARCHAR2(200);
    PROCEDURE BULK_INSERT_TEST(strTable IN ITW_EMP_OBJ_ARRAY);
    END Pkg_Bulk_Insert;
    package body:
    CREATE OR REPLACE PACKAGE BODY Pkg_Bulk_Insert AS
    PROCEDURE BULK_INSERT_TEST(strTable IN ITW_EMP_OBJ_ARRAY) AS
    i BINARY_INTEGER;
    BEGIN
    FORALL i IN 1..strTable.COUNT
    INSERT INTO TEMP(NAME)
    VALUES(strTable(i));
    COMMIT;
    END BULK_INSERT_TEST;
    END Pkg_Bulk_Insert;
    Here I am invoking the procedure:
    DECLARE
    x Pkg_Bulk_Insert.ITW_EMP_OBJ_ARRAY;
    BEGIN
    x := Pkg_Bulk_Insert.ITW_EMP_OBJ_ARRAY('A','B','C');
    Pkg_Bulk_Insert.BULK_INSERT_TEST(x);
    DBMS_OUTPUT.PUT_LINE('AFTER INSERTION');
    END;
    Please any body can help me on this regard.

    Your PL/SQL seems reasonable.
    My suspicion would be that the oracle.sql.ArrayDescriptor.createDescriptor class only supports persistent collection types, i.e. those declared at the schema level with CREATE TYPE.

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

  • 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

  • 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

  • How to fill or bind data using Value Node in Tree Node

    Hi Gurus,
    Can anybody help me on how to fill data or bind data using Value Node in Tree Node View. I know how to create Tree Node but not able to show value on the UI in Tree View.
    Can u please let if anybody has done it?
    Thanks in advance.
    Madhusudan

    continued...
    TRY.
              lv_child = me->node_factory->get_proxy(
                        iv_bo = lv_value_node
                        iv_parent_proxy = me
                        iv_proxy_type = 'ZL_CLASS_CN02' ).
              lv_child->is_leaf = 'X'.
              APPEND lv_child TO rt_children.
            CATCH cx_sy_move_cast_error cx_sy_ref_is_initial.
          ENDTRY.
      In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to build table and refresh in do-prepare_output of IMPL class.In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to buid table and refresh in do-prepare_output of IMPL class.
    ztyped_context->resultlist->build_table( ).
      IF ztyped_context->resultlist->node_tab IS INITIAL.
        ztyped_context->resultlist->refresh( ).
      ENDIF.
    Also the EH_ONEXPAND has to be implemented and event handled in DO_HANDLE_EVENT. But this expand event has to be delegated to context node directly as CL_BSP_WD_CONTEXT_NODE_TREE will already have the implementation.
    ztyped_context->resultlist->expand_node( lv_event->row_key ).
    Where in result list is the node ZL_CLASS_CN00.
    After typing the whole content , i found this blog :). There are few things i have written more that in the blog.  /people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
    Regards,
    Karthik

Maybe you are looking for

  • Report with the exemption of all obsolete concepts.

    Hi can any any one gimme some example of report with the exemption of all the obsolete concepts. Plz dont send send any external link except sdn links. Thanks and Regards, Arun

  • File adaptor

    hi, i have a doubt . my requirement is i want to send a flat file as a flat file using file adaptor. in that my structure consists 236 fields, i cant specifiy each and every field in that. it takes more time. is there is any alternative for this.

  • Time machine questions.  Please help

    So,  I'm getting rid of my laptop and switching.    I've had my time machine external HD plugged into my airport extreme doing backups.   Well,  I just plugged it into the laptop directly and hit backup   So is it really just as simple as plugging th

  • BT ID username

    Thank with the help I recently received to change my btinternet email address to something meaningful. I now use my new primary address and I only have one outstanding issue........ My mybt username is the same as the old email address. I've changed

  • Evaluation path - accessing of the direct employees by the manager.

    Hello Experts, I need to configure the evaluation path , using which the managers can access all the direct employees. Can u all please help me with this. It would be really helpful if u could suggest some documents to refer. Your answers will defini