Insert Rows button - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Insert Rows button

Last post 06-21-2005 03:40 PM by Agni Jonnalagadda. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-21-2005 12:15 PM

    Insert Rows button

    This is driving me nuts.

    Is there a simple logic invloved while inserting a row to a repeating table. I wold like to use a button click instead of standard "Insert item"

    "The reason" - I would like to copy 1 value from the last row into the new inserted row. (clone node, append child, any concepts here)

    BTW I am using a Visual Studio (VB.Net) project for my infopath.

    TABLE
    - Type (Advanced, Basic, Other) (a drop down of 3 values)
    - Field A (some numeric data)
    - Field B (some alpha data)

    If user enters the foll as first row:
    "Advanced", "123.50", "ABCD"

    And then clicks on a button "Insert" say 2 times then I want 2 new rows in the table after the first one eg:
    "Advanced", "123.50", "ABCD"
    "Advanced", "", ""
    "Advanced", "", ""

    I hope the gist is clear.

    Any thoughts or pointers for vb.net would greatly be appreciated.

    Regards,
    NK
  • 06-21-2005 12:19 PM In reply to

    Now the rows contain:

    "Advanced", "123.50", "ABCD"
    "Advanced", "", ""
    "Advanced", "", ""

    user adds one row manually
    "Basic", "234.50", "XYZ"

    And now click on "insert" button twice, so the table would be:

    "Advanced", "123.50", "ABCD"
    "Advanced", "", ""
    "Advanced", "", ""
    "Basic", "234.50", "XYZ"
    "Basic", "", ""
    "Basic", "", ""

    (I think this makes my problem a little more clear)
  • 06-21-2005 03:40 PM In reply to

    Hi,
    Welcome to the Board!
    You can find info about adding rows into a repeating table programatically at
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=282




    Agni
    InfoPathDev India
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.