How to clear model node input table data?

hi experts,
          i am developing one application, which updates database table. i am having one table having all claimids as column, in of view. when i click on any of the claimid, it moves to second details view of that claim id having header and item details in seperate two tables on view.right. that second view is having addrow, deleterow and save button .
          what i am facing problem is : when i add any row it works, delete any row it works and modify item details and save it , it works first time perfectly . bt when second time, i click on same claimid from first view and comes to details view and make any changes in item table and try to save it, it should save whatever is there at that time on table. Bt it takes new item values and as well as old one , all the time.
             In backend , i passed that table and claimid and what i do , i delete all the item details with that claimid  and insert new one . backend works fine.
I have disconnect the model instance as well....
wdContext.currentZbapi_Gen_Clm_Write_InputElement().modelObject().modelInstance().disconnectIfAlive();
any idea?
Plz.
Saurin Shah

Hi Saurin,
It seems that context node value not been clear out.
try to invialidate your node before submitting(Saveing) new value to context node On your details view scrren,.
NodeName().Invalidate();
or
for(int i=NodeName().size(); i++){
NodeName.removeElement( NodeName .getElementAt(i));
Thanks
Anup

Similar Messages

  • How to clear the node which has multiple attributes

    Hello ,
               how to clear the node which has multiple attributes.
    I've tried this using the method SET_STATIC_ATTRIBUTES_NULL but it's not working.
    Thanks,
    Sandhya.

    Hello,
    I suggest you to create an internal table or structure clear it and the bind it to the context node.
    Another possibility is to try to invalidate the node (method INVALIDATE of interface IF_WD_CONTEXT_NODE).
    Regards.

  • How do i find out the tables (data)effected in a schema after a particular time stamp

    how do i find out the tables (data not structure)effected in a schema after a particular time stamp?
    pls email in [email protected]

    You can't do that. That would be a real security risc.
    /KAj

  • Need help to read model node input field attribute present in view - first time developer.

    Hello Experts,
    I am new to CRM Web UI development.
    Presently, I am trying to develop a Guided Activity Page having 2 views.
    First view has the field Business Partner Number, I have added model Node BuilHeader and the attribute BP_NUMBER while creation of the view.
    The Second View consists of 2 fields from the Model Node BuilHeader, namely First Name and Last Name.
    The requirement is to enter the BP Number on the first screen then click on the NEXT button from the Guided Activity buttons, on navigating to the Second View, the Names should auto-populate.
    I have Created both views and the GP page, the GP navigation is also happening. Initially the fields were showing Not Bound text in value, so I commented the line in GET_I and GET methods to enable the field and remove the Not Bound text. I have created a custom controller with BuilHeader
    I have tried doing this but facing the below problems :
    1) When I enter the BP number on the first view and press Enter, the value disappears. How to solve this ?
    2) Does clicking on the NEXT button on the GP Navigation trigger a Server Roundtrip ?
    3) How to read the context node value of BP Number entered on the first view and populate the Name fields on the second view.
    Please help.........

    you can take reference from from below code as in above case we use BuilHeaderAdvancedSearch search object, to get current entity.
    data:    query        TYPE REF TO cl_crm_bol_dquery_service,.
      query ?= me->typed_context->BuilHeaderAdvancedSearch->collection_wrapper->get_current( ).
    Do not remove code from getter setter of fields , it will not clear.
    Check with http://scn.sap.com/thread/3391203 , for basic understanding of UI.
    Regards,
    Harish Kumar

  • How to refresh model nodes in webdynpro java

    Dear Experts,
    I have a table in view which is mapped to a model node . The model node gets populated by calling a RFC.
    Please tell me how to refresh the model node mapped in the view ?
    wdContext.node_Result_Data.invalidate() ;  doesnt work over here . dont know y !!
    Please advise.
    Regards,
    Mamai.

    Hi,
    Please check with this code. Hope this is help full for you.
    wdContext.nodePoDetails_OutTab().invalidate();
    after invalidate u have to write the Execute that BAPI also.
    wdThis.wdGetCO_POPendingDetailsController().executeYmm_Sc_Bapi_Oapending_Getlist1_Input();
    Hope this helps!!
    Thanks & Regards
    Vijay

  • How to clear the contents of table control

    Hi All,
              How to clear the contents that are present in a Table control. If there is any code Please Let me know.
    I will assign full marks to the correct code.
    Pradeep Kumar Kota.

    Hi
    U need to clear the contenents of internal table used to store the record displayed by table control.
    Every time the PBO is triggered the table control is automatically cleared, so you need only not to transfer any data from internal table to table control.
    So you should show how your PBO if you want a right answer.
    Max

  • How to expose model node to other dc

    hi, now i want to expose model node to other dc. so i create data link from interface controller to model.in fact,the model node is exposed to other dc,but when i use it, i can not use it. please tell me the right way to do it.thanks

    Hi Puneet
    Write a method in the interface controller of DC1 where you have created your message pool. This method should take the Message id as input and return the message string.
    Expose this interface as the public part and try accessing the message pool from this exposed method. Evey time you call this method just pass the message id.
    Use the local component messagemanager to display the message.
    Regards
    NagaKishore V

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to clear entries from a table view

    Hi All,
      I am using a tableview in a BSP page. I am setting the attribute allrowseditable = 'TRUE'. The internal table I am using for the tableview contains only initial lines. Once the tableview is displayed i am entering some values on the cells. But even after triggering the DO_REQUEST the values i entered in the tableview remains, its not getting cleared eventhough my internal table contains only initial lines. I am not getting back the values from tableview in HANDLE_DATA or EVENT. Can anyone tell me why the cells in tableview is retaining the values. How can i overcome this.
    Thanks,
    regards
    Vishnu Aravind

    Hi Sebastian,
      The following is the code of my view
    <%@page language="abap"%>
    <%@ extension name="bsp" prefix="bsp" %>
    <%@ extension name="htmlb" prefix="htmlb" %>
    <%@ extension name="xhtmlb" prefix="xhtmlb" %>
    <%@ extension name="PlmHelp" prefix="plmhelp" %>
    <htmlb:gridLayout columnSize="1"
                      rowSize="2"
                      cellSpacing="10">
    <htmlb:gridLayoutCell rowIndex="1"
                          columnIndex="1">
    <htmlb:tableView
                        id                     = "attribute1"
                        allRowsEditable        = "X"
                        table                  = "<%= controller->tbl_attributes %>"/>
    </htmlb:gridLayoutCell>
    </htmlb:gridLayout>

  • How to find that from which table data is coming in datasource?

    Hi friends
    I want to find that from which tables data is coming into datasource 2LIS_04_P_COMP,2LIS_04_P_MATNR..
    I have searched in forums.. I also have checked in sap.help.. but I didnt get any tablename in field "Table of origin"..
    Please tell me how can I find that data is coming from which table into these datasources..
    I dont want name of the setup tables.. I want name of the original tables (in R/3)which has data..
    Regards
    Swati

    Hi......
    For  data source 2LIS_04_P_COMP............MCAFKO, MCAFPO, MCCOMP are the R3 communication structures...........
    Check these commonication Structure in SE11............I think u will get the required information........
    2LIS_04_P_MATNR is Material View from PP/PP-PI ..........check this..........
    http://help.sap.com/saphelp_nw70/helpdata/EN/88/7fc73c0c52085be10000000a114084/frameset.htm
    Check this each field in SE11....from there try to find out these fields belongs to which table..........as I hav explained u in another thread..........
    May be the extractor is using these fields from different tables.....
    Regards,
    Debjani........

  • How to fix the size of table data in html

    I want to fix the size of table data in html. ie if i want to insert only 50 char in a <td> field then it contain only 50 character, after that it switched to another line and contain the remaining character. Means <td> field wil not get automatically adjust there size according to data.

    you cant specify how many characters a td cell can have but u can specify the pixel width of a td cell
    <td width=50>
    as long as you have wrap text on, then text will not force the box size over the 50 pixels
    this wont limit it to only 50 chars though, you will probably have to use some javascript to cut the string down to size (unless youre using something like php or asp then that will do the trick too)

  • Clearing Model nodes

    Hi there,
    Sorry If i have asked it before.. But I am not sure again
    Lets say I want to clear a model node which is bounded to a model,
    do I use:
    wdContext.nodeTest().invalidate?
    (Won't it simply just update the nodes with the result values from the model instead of clearing it?)
    The scenario is like this.. I have some model nodes containing some value of previous result and I want to clear all these values when the user click on "Return to Menu".

    Hi Jason,
    Just Delete the model instance at the end of the process
    <Model> objModel = null;
                   try {
                        objModel =
                             (<Model> ) WDModelFactory.getModelInstance(<Model> .class);
                        objModel.disconnectIfAlive();
                   } catch (Exception e) {
                        IWDMessageManager msgMrg =
                             wdThis.wdGetAPI().getComponent().getMessageManager();
                        String msg = e.getLocalizedMessage();
                        if ((msg == null) || (msg.length() == 0)) {
                             msg = e.getMessage();
                        msgMrg.reportException(msg, true);
                   } finally {
                        objModel = null;
    Do let me know if it works.
    Cheers
    Murali.

  • How I can display images as table data?

    Dear project Marvel,
    I would like to display images as one of table data, but I do not know how to easily store image data into tables using htmldb and whether I can display the stored images. Does anyone knows how I can store/display images using htmldb? If I cannot do this easily then displaying image (which is stored somewhere else but) just looks like one of columns also fine to me.
    Thanks in advance,
    Rui

    you can show those images inline in your report region if you call our "p" procedure in an image tag. so the example above has you creating a table that you then join to the wwv_flow_files view with a query like...
    select htf.anchor('p?n='||f.id, f.filename) name,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...clicking on the links in the first column would return a page that just showed the associated image. if changed that anchor tag to an image one like so...
    select '&lt;img src="p?n=' || f.id ||'&gt;' the_image,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...your images would then appear inline as opposed to on a separate page.
    [Edited by: rmattama on Sep 25, 2003 1:22 PM]
    i'm not sure how, but i'd earlier posted an incomplete answer to rui's question. i've fixed some of the above and added this below...
    just fixed the html above so it renders correctly in this forum. sorry i didn't see that earlier. also, i'm not sure where the rest of my post went, but rui had also wanted to know what the wwv_flow_files was. that's a view to the table we use to store uploaded BLOBs like images, css's, and stylesheets. since you can only identify one document table in your DAD configuration, we give you this view to allow you access to that doc table that HTML DB owns.
    fyi,
    raj

  • How to upload sap r/3 table data to ms-sql 2000?

    Dear Friends
    any one can help me out step by step to upload sap r/3 table data to ms-sql 2000.
    Thanks in advance

    hi
    good
    go through this link
    http://www.itcserver.com/blog/2006/06/29/data-transfer-methods/
    thanks
    mrutyun^

  • How can I tell if any table data has changed?

    HI
    I'm in the process of reverse engineering an application. We don't have the source code, so I've been looking to the Oracle 8 database to give me some clues as to what insert, update, delete operations are being performed.
    Is there any SQL I could run which would indicate the table data has been changed in some way.
    Thanks
    Glenn

    What's the application architecture? Is this a client/server application? Or a three-tier application? Is there a lot of PL/SQL? Or is all the SQL getting generated in the application and sent to the database? Depending on the architecture, a SQL*Net trace on the client may be appropriate-- that will log the SQL the client app is sending to the server. If you have a three-tier app, though, it may be hard to relate the SQL to a particular operation or to relate the SQL statements to each other. If you have a lot of stored procedures, you'd only see the procedure call, not the SQL the procedure executes.
    You could trace a particular database session, which has similar issues in a three-tier environment or if MTS (the precursor to shared server) is in use, but does capture SQL issued by stored procedures. That may put a degree of load on the database server as well.
    You could also query the data dictionary (i.e. V$SQL) periodically to see the SQL statements in the shared pool. You have to ensure that you're polling frequently enough to catch SQL statements before they age out of the shared pool and you won't generally be able to relate one statement to another or to a particular application function. But you could see all the SQL the database is executing.
    Justin

Maybe you are looking for