Help- Intermec-IBrowser - input bind to table

Dear all,
   My application will capture all the scanned value n store inside a table ( which is tie to a context node ),how shd i assign those values into it? i understand tat for single input,i can do like followings..wat if the scanned value is to input into a table? please advice. thank you.
public static void wdDoModifyView(IPrivateMLTMAppView wdThis, IPrivateMLTMAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    //@@begin wdDoModifyView
     if (firstTime) {
                      IWDBarCodeReader barCodeReader = (IWDBarCodeReader)view.getElement("BarCodeReader");
            barCodeReader.mappingOfOnRead().addSourceMapping("data","scanData");
//scanData is the scanned value
  public void onActionScan(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String scanData )
    //@@begin onActionScan(ServerEvent)
    if(wdThis.wdGetContext().currentContextElement().getData() ==null){
          wdThis.wdGetContext().currentContextElement().setData(scanData);
    //@@end

hie,the code is syntax error free,but i havent get to try on the handheld yet
was wondering where shd i write the code to display out the contents in the table? here's my code :
IPrivateWithInvNum.ITableElement element = null;
     element = wdContext.createTableElement();
     if (ScanData.startsWith("M")){
     element.setMatno(ScanData);
     }else if (ScanData.startsWith("B")){
    element.setStrbin(ScanData);
    }else if (ScanData.startsWith("Q")){
    element.setQty(ScanData);
    }else if (ScanData.startsWith("U")){
    element.setUom(ScanData);
    list.add(element);
    wdContext.nodeTable().bind(list);

Similar Messages

  • Urgent help request: User input in empty table

    I am trying to find some idea how does one code so that user can input rows or delete rows in am empty JTable. I would appreciate if any article, example or suggestion on this is extended. Thanks in advance.

    Sun's java tutorial has some examples.
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • Java dynpro - bind a table in the input parameters of an RFC

    Hi ,
      JAVA Webdynpro -  I have to bind a table in the input parameters of an RFC.
      The code below is taking in the N num of rows but is repeating the last row N times and
    sending it to the RFC.
    Ztsgt_Pos_Name postionTab = new Ztsgt_Pos_Name();     
    Ztsgt_Pos_Name.Ztsgt_Pos_Name_List positionTabList = new Ztsgt_Pos_Name.Ztsgt_Pos_Name_List();
             int e = wdContext.nodePosition_List_update().size();
             int f = 0;
             for( f = 0; f < e; f = f+1 )
                  wdContext.nodePosition_List_update().setLeadSelection( f );
         postionTab.setPosition_Nm( wdContext.nodePosition_List_update().currentPosition_List_updateElement().getPosition_Nm() );
                   postionTab.setPosition_Dscr( wdContext.nodePosition_List_update().getPosition_List_updateElementAt(f).getPosition_Dscr());
                  positionTabList.addZtsgt_Pos_Name( postionTab );
                   UpdatePosit.setPosition_List( positionTabList );
            try {
                  wdContext.nodeZRFC_3318_UPDATE_VEND_POSITION().nodePosition_List5().invalidate();
                   wdContext.currentZRFC_3318_UPDATE_VEND_POSITIONElement().modelObject().execute();     
                   wdContext.nodeOutput5().invalidate();
              } catch (WDDynamicRFCExecuteException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();

    Hi SMI SAP Project Team,
    Please check the code for loop and lead selection when you setting the values.
    for( f = 0; f < e; f++)
    Refer to below documents:
    initializing AbstractList Model in Custom Controller
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90?quicklink=index&overridelayout=true
    Hope it will helps
    Regards
    Arun

  • How to get selected row from a non-bind ADF table

    Hi,
    I have an ADF table that is based on a collectionModel built programmatically. The collectionModel is this:
    model = new SortableModel(new ArrayList<ArrayList>());
    Hence, it is not a binding table. My question is how to get the selectedRows from a non-bind table.
    I am used to building binding ADF table and I know we can get it from voiterator.getCurrentRow, since the selectionListener is set to the binding....collectionModel.makeCurrent
    <af:table value="#{bindings.ItasLookupTypesVO1.collectionModel}"
    selectedRowKeys="#{bindings.ItasLookupTypesVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasLookupTypesVO1.collectionModel.makeCurrent}"
    </af:table>
    I am thinking maybe I need to write my own selectionListener, but need more advice/ideas of what's the codes in the customer selection Listener to get it from my SortableModel.
    Please help.
    Thanks
    -Mina

    I'm not sure if this works in your case, but check out the selection listener I write in this blog http://wp.me/pcBZk-eu
    You should use the selection event and check the added set. This should give you access to the selected row.
    Timo

  • How to bind internal table values with RootUIElement(Table) from select Que

    Hello Friends,
           In my view Layout,there r two Input fields ,Submit button and Table... My concept is when user posting values in two input fields and clicking submit button means the result(more than one values) should be displayed in Table...
         I written coding also but i dont know to bind internal table values with Table... My code as follows,
    method onactionsearch .
       data:
         Node_Node_Flight                    type ref to If_Wd_Context_Node,
         Elem_Node_Flight                    type ref to If_Wd_Context_Element,
         Stru_Node_Flight                    type If_View1=>Element_Node_Flight ,
         itab TYPE STANDARD TABLE OF sflight.
    navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
       Node_Node_Flight = wd_Context->get_Child_Node( Name = IF_VIEW1=>wdctx_Node_Flight ).
    @TODO handle not set lead selection
       if ( Node_Node_Flight is initial ).
       endif.
    get element via lead selection
       Elem_Node_Flight = Node_Node_Flight->get_Element(  ).
    @TODO handle not set lead selection
       if ( Elem_Node_Flight is initial ).
       endif.
    alternative access  via index
    Elem_Node_Flight = Node_Node_Flight->get_Element( Index = 1 ).
    @TODO handle non existant child
    if ( Elem_Node_Flight is initial ).
    endif.
    get all declared attributes
       Elem_Node_Flight->get_Static_Attributes(
         importing
           Static_Attributes = Stru_Node_Flight ).
    select * from sflight into CORRESPONDING FIELDS OF TABLE itab
      WHERE carrid = Stru_Node_Flight-carrid and connid = Stru_Node_Flight-connid.
    Node_Node_Flight->bind_table( new_items = itab ).
    endmethod.
    Plz reply me asap...!

    Hi,
    What I understood from your coding is...
    * navigate from <CONTEXT> to <NODE_FLIGHT> via lead selection
    Node_Node_Flight = wd_Context->get_Child_Node( Name = IF_VIEW1=>wdctx_Node_Flight ).
    You are reading values from the above node and binding the values to the same node.Am i right?
    Did you take seperate context node for your input fields or binded the above context to the fields.If not then read the context attribute values which are binded to the carrid and connid then pass these values to select query.
    One more thing is select cardinality 1..n for node NODE_FLIGHT since you are displaying more than one record.
    Go through the some basic tutorials.Search in sdn you will it get.Already there is a tutorial in sdn which explains exactly what do you require.
    Go throgh this link
    Web Dynpro for ABAP: Tutorials for Beginners
    Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
    Edited by: suman kumar chinnam on Mar 26, 2009 10:50 AM

  • SEARCH HELP TO AN INPUT FIELD

    HOW TO APPLY SEARCH HELP TO AN INPUT FIELD FOR FOLLOWING EXAMPLE:
    FOR THE FIELDS LOCATIONS, AND CONFERENCE ROOM NO.
    LOCATIONS ARE A, B, C, D, G AND CONFERENCE ROOMS OF THESE LOCATIONS ARE,
    A1, A2 ,A3,, LIKE WISE FOR REST OF THEM.
    HERE IS THE PROBLEM,
    hi,
    this is a realtime implementation scenario pls provide full coding and answers with screen programming of it.
    it is as follows:
    Business Scenario u2013 conference room booking for the company
    Business Scenario
    You will build a computerized system to automate the process of Conference room booking for a company .
    Xi Infotech, a software company, is having 5 locations at Bangalore. Each location has 3 conference rooms available
    Masters
    Maintain Employee Details
    Maintaining Conference room Details.
    Maintaining booking details
    Transactions
    Maintaining Date and timing of Meeting
    The conference room in any of these locations have to be Pre-booked for the meeting indicating the purpose of meeting & no. Of attendees, date and time for which required.
    Booking Confirmation has to be sent to the employee who blocks the room. If any other person tries to book the same room, he should be able to see that this room is blocked and the details regarding the employee who has blocked and the purpose & time for which the room is blocked
    Reports
    Datewise report on the conference rooms of all locations.
    Month wise reports of conference room booked.

    Hi,
    For a given field if you have more number of possible values then go for the Value table or check table.
    If you have a few values for a given field, then go for Value ranges. These can be maintained at Domain level for a field.
    For each field create a correspondign data element(DE)
    In this DE, we can have the FURTHER CHARACTERISTICS tab we can create a search help Or directly from SE11 we can create a SH then attach this to the DE Or we can directly maintian Or At the DOMAIN level we can  .
    Ex:
    LOCATIONS ARE A, B, C, D, G AND CONFERENCE ROOMS OF THESE LOCATIONS ARE,
    A1, A2 ,A3,, LIKE WISE FOR REST OF THEM.
    Ex:
    SE11->
    DE and Domain names is LOC.
    In SE11->DOMAIN->LOC->
    Here as you have a few values we can maintain it in VALUE RANGES tab->
    like
    A (Description to be given) ie Loc A for Hyderabad
    B Bangalore
    C
    D
    G
    Room Numbers-> here can createa value table with serial numbers at the Domain level.
    Attach the same to the  respective DE in the SE11.
    Similary we can maitain for Conference room numbers or
    We can create a Search help using the two field LOC and RoomNos and create a Elementary search help.
    Like this we can do.
    Get back if you still have queries on this.
    Please refer to this link  for more info-
    SEARCH help
    Regards,
    Chandralekha

  • Error by binding a table to context node

    Hello Experts,
    If I try to bind a table of strings, there comes the error:
    "Dynamic type conflict during the assignment of references."
    Here is my coding:
    METHOD fill_cssref_data .
      "Stores the references to the css
      DATA: lt_cssref TYPE TABLE OF string,
            wb_cssref LIKE LINE OF lt_cssref.
      DATA: lo_nd_cssref TYPE REF TO if_wd_context_node.
      DATA: wb_messages LIKE LINE OF lt_messages.
      lo_nd_cssref = wd_context->get_child_node( wd_this->wdctx_cssref_data ).
      LOOP AT lt_messages INTO wb_messages.
        CONCATENATE 'https://gtp.wdf.sap.corp/sap/bc/webdynpro/qce/msg_gui_edit?sap-language=E&csinsta='
                      wb_messages-installno '&mnumm=' wb_messages-problemno '&myear=' wb_messages-pyear
        INTO wb_cssref.
        APPEND wb_cssref TO lt_cssref.
      ENDLOOP.
      lo_nd_cssref->bind_table( lt_cssref ).
    endmethod.
    The node "CSSREF_DATA" contains just one attribute "CSSREF" type string, so I don't know why there's a problem binding a table of strings to this node.
    I also tried the method "lo_nd_cssref->bind_elements( lt_cssref )", but the result was the same.
    Does anybody know where my mistake is?
    Best regards,
    Lennart

    Hello,
    the problem was, that the string table had not the same name as the context node.
    Best regards,
    Lennart

  • Search help for a Input Field........

    Hi,
      I'm fairly new to BSP and I would like to know how to attach Search Help to the Input Field in BSP application.
    Thanks
    NP.

    Hi nagendra
                        Search Help for input field Provide using attribute of input field is showHelp and onvaluehelp
                      This is providing the search help .

  • Dynamic Search Helps In An Input Field

    Hi Experts,
              I need to populate an input field with different search helps based on the user action i.e when user selects "Audit"  i hav to show the audit search help for my input field, when he selects  "Audit Plan" i would hav to show audit plan search help.
    My Questions >
    1> i intend to use the method set_attribute_value_help of the interface if_wd_context_info and do the coding as :-
    data lo_nd_info  type if_wd_context_node_info.
      lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
            EXPORTING
              name            = 'identification' (attribute Name)
              value_help_mode = '121'
              value_help      = 'plm_auditplan'.(Help Name)
    Is this the correct way to go if not plz suggest a more appropriate method.
    2> in the context for that attribute ,what should i specify for the property input field
        Input Help Mode
        i.e should it be deactivated , automatic or should i give the dictionary serach help and specify  one of the search helps by giving its name.
    Your responses will be greatly appreciated,
    Chaitanya.

    Hi Ebru,
    Yes, it is possible using OVS, freely programmed and dictionary help.
    For OVS, refer this blog: /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    For Dictionary Search Help, refer http://help.sap.com/saphelp_nw70/helpdata/EN/47/9f724642314aabe10000000a42189b/frameset.htm
    For freely programmed, refer:
    http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8cc9b5e3c5ce10000000a421937/content.htm
    I hope it helps.
    Regards
    Arjun

  • Table with XSD binding merge tables data

    Hi All,
    Case 1 : If i bind the table to XSD,and create a few table. After save  the form and re-open the pdf, all the table data are merged.
    Case 2 : If i remove the table binding and create tables., after save  the form and re-open the pdf, then the tables are not merged.
    but, i need to have the table binding as later i will used that to  capture data from the pdf.
    If anyone have any suggestion ,  please  advice.
    The Dinamic PDF Form
    Data entry into the  2 table
    After Save and Re-Open the form ( The table data are merged )

    Hi,
    I could not use both solution because I've two list (two data model) from different source, when the jsf page is generated it generated the correct number of column and output text but when I try to retrieve the component output text for example the 1 row and the second output text I got a null pointer exception because the column only have 1 child and not the full elements that we can see at html rendering.
    There is no solution for getting the full list of components before the page is generated ? because findComponent recursivly called doesn't found what I want.

  • F4 help for a Input Field

    Hi Experts,
    I am New to web Dyn Pro Java.
    I have a requirement in which  I need to impplement F4 help for a input Field. For this I should not use the Back end. I am suppose to hard code the values that will appear in the F4 help. Can I implement it and how?
    Please respond. Thanks in Advance.
    Regards,
    Rohan

    Sure,
    Go by this-->
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ab331b-97c6-2a10-f982-c9f972c34e51|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ab331b-97c6-2a10-f982-c9f972c34e51]
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a1564|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a1564]
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8]
    kunal

  • F4 / Help Functionality for input field in custom java iView

    Hi,
    As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
    Your help is really appreciated.
    Thanks,
    Vijay

    Hi Vijay,
    the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
    https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
    Regards,
    Ulli

  • F4 Help on depending input in other fields

    hi folks,
    how can we use f4 help like dynpro when the result of the search help depends on input fields on the screen.
    how to do thtat with web dynpro?
    kind regards
    oliver

    Hi Thomas,
    yes i did it like that but my problem is, given 2 Files CustomerNumber and CompanyCode.
    When entering 0010 into Field CompanyCode and pressing search Help on CustomerNumber i want only to see customers who are in CompanyCode 0010 -> technicalle companycode is a input for the search help.
    In normal dynpro this works without doing much but how to do with webDynpro or where do i make the "fault".
    kind regards,
    oliver

  • Bind Dynamic Table To a Context Node

    Hello,
    I created an internal dynamic Table. I want to show this table in an ALV-Table. So I want to bind it to a context node.
    I create the context node attributes by this:
    lr_node_info ?= lo_nd_template_exp->get_node_info( ).
    *Type of table type and context type have to be the same
    LOOP AT lt_plchar INTO ls_plchar.
      clear lv_text.
      lv_text = ls_plchar-plchar.
      TRANSLATE lv_text TO UPPER CASE.
      ls_fieldcatalog-fieldname = lv_text.
      ls_fieldcatalog-inttype  = 'C'.
      ls_fieldcatalog-intlen   = '10'.
      APPEND ls_fieldcatalog TO lt_fieldcatalog.
      ls_attribute-name = lv_text.
      ls_attribute-type_name = 'CHAR10'.
      lr_node_info->add_attribute( EXPORTING attribute_info = ls_attribute ).
    ENDLOOP.
    So I create a fieldcatalog and the attributes at once.
    Then I generate the table with  this:
    CALL METHOD cl_alv_table_create=>create_dynamic_table
           EXPORTING
             it_fieldcatalog = lt_fieldcatalog
           IMPORTING
             ep_table = <fs_data>
           EXCEPTIONS
             generate_subpool_dir_full = 1
             OTHERS = 2  .
      IF sy-subrc <> 0.
      ENDIF.
    * So  now points to our dynamic internal table.
      ASSIGN <fs_data>->* TO <fs_1>.
    * Next step is to create a work area for our dynamic internal table.
      CREATE DATA new_line LIKE LINE OF <fs_1>.
    * A field-symbol to access that work area
      ASSIGN new_line->*  TO <new_line>.
      Data: copy_table type ref to data.
      field-symbols: <copy_table> type standard table.
      create data copy_table like table of <new_line>.
      assign copy_table->* to <copy_table>.
    ok, nice. when i now bind the table to  <copy_table> to lo_nd_template_exp it all works fine. But i also want to but the data into the table.
    This also works. When I debug, I can see the table filled with the values. But then there's always this error:
    Invalid operand type for the MOVE-CORRESPONDING statement.
    Ok, I have read, that the types may be  not fit. But I don't know why and how i can solve it.
    Do you have any ideas?

    Hi,
    I've the same problem: I must create all attribute of my node at run-time and then create alv.
    I use the method:
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    Pass context node to ALV
      lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      lo_interfacecontroller->set_data( node_lenght ).  " node_lenght is my dynamic node
    But I receive this message error:
    Invalid operand type for the MOVE-CORRESPONDING statement.
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_BS_SERVICE_MNGR_TABLE=CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    What can I do??? My node doesn't static attribute....
    Thank,
    Federica.

  • Issue with Data binding in Table with Parameters

    When we bind the table rows with parameter 'select', the data is not displayed in the table. Check the snippix file created for this issue: url: http://veui5infra.dhcp.wdf.sap.corp:8080/snippix/#70874
    But the same parameter works with the odata service:
    http://10.66.186.12:8000/OnlineShoppingAnalysis/Services/Analysis_Date_Range.xsodata/Sales_Periodwise?$select=Product_Name,Quantity
    Credentials:
    user: System
    Password: Abcd1234

    I'm not able to access your service,so I can't test it.
    You could try to do a read operation on your model and add the result to a new JSON model which you can bind on to your table:
    var sServiceUrl ="http://services.odata.org/Northwind/Northwind.svc";   
    var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl); 
    var oModelJson = new sap.ui.model.json.JSONModel(); 
    oModel.read("/Customers", null,  {select: "Product_Name,Quantity"} , true, function(oData, oResponse){
            oModelJson.setData(oData.results); 
      sap.ui.getCore().setModel(oModelJson, "Model"); 
        },function(){
            alert("Read failed");});
    OpenUI5 SDK - Demo Kit
    Documentation/AdvancedTopics/DataBinding/ODataWrite – SAPUI5 Wiki (TIP CORE User Interface)   
    Kind regards,
    Wouter

Maybe you are looking for

  • Error 1324 + PDF's are defaulting to Photoshop CS2

    I recently installed a trial version of Photoshop CS2 which was on a disc lent to me. I am now regretting this action because when I go to open a PDF file it defaults to Photoshop instead of Acrobat Reader. When attempting to un-install this trial ve

  • How to read pdf file using file adapter

    Hi..     How to read pdf file using file adapter? regards Arun

  • Plaintalk mic

    My sister can't get her plaintalk mic to work on ichat on her sawtooth G4.

  • Excise invoice backposting

    Hi experts, I want one clarification for following scenario. I want to do excise posting for PO which was before 2 months of material which is non-excisable. What I have done that in T-code J1IH I enter document as PO number that is used before 2 mon

  • Custom Clickable Charts Objects and Legends

    Hi, The Requirement is a little bit weird but urgent as well . Well all I need is a complete flexible chart where each element on x-axis or each element on y-axis is clickable. Also, considering I am using a bar chart. I would want to click on the ba