webservice and repeating table - InfoPath Dev
in

InfoPath Dev

webservice and repeating table

Last post 01-20-2006 06:49 AM by fredarwin. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-19-2006 11:25 AM

    webservice and repeating table

    I have a repeating table with data retrieved from a webservice.
    how i do with jscript when i delete a row from my repeating table delete too the row in my database table.

    I try to using eventObj.Operation=="Delete" OnBeforeChange event but, this event fires always when i change data in my cells and i only need when i delete the entire row.
    thanks

    Fred Darwin Villareal
  • 01-20-2006 02:45 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: webservice and repeating table

    For example repeating table xml as
    <Employees>
    <Employee>
    <FirstName />
    <SecondName />
    </ Employee>
    <Employee>
    <FirstName />
    <SecondName />
    </ Employee>
    </Employees>

    Using below the statement you can get the node name of data cell row.

    //Get the oNode value is “Employee”
    Var oNode = eventObj.Parent.nodeName;

    One more change in your IF condition. Check the above node name is equal to the xml node name or not.

    If(eventObj.Operation == "Delete" && oNode == “Employee”)
    {
    //Your Code
    }

    I hope this helps you

    Shiva
    InfoPath Dev
    INDIA
  • 01-20-2006 06:49 AM In reply to

    Re: webservice and repeating table

    Thank you very much Shiva!!!


    Fred Darwin Villareal
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.