Change Event handler on text field in a Repeating Section - InfoPath Dev
in

InfoPath Dev

Change Event handler on text field in a Repeating Section

Last post 08-17-2016 04:31 AM by meissen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-10-2016 06:01 AM

    Change Event handler on text field in a Repeating Section

    Hi all,

    I have a repeating section with a textbox.

    The repeating section has rows added programmatically.

    When the code is triggered to programmatically add rows it triggers the Changed handler for one of the fields in the Repeating Section...

    No big deal, I'll preface the code with (pseudo code) "If the field's length is greater than 1, do all this, otherwise do nothing."

    Problem is that when I set the field's value to a variable to then use in the If statement, when the code executes I get "Object reference not set to an instance of an object."

    So now assume Repeating Section 1 has 4 rows, all rows have Field1 on it.

    If I edit row 1's Field1 everything executes OK.

    If I then go to row 2 and add text to Field1, it cycles through Row 1-Field 1 and then goes to Row 2-Field 1 and removes the change I made.

    What am I missing? Is there a VB equivalent to "curent()" field?
  • 08-17-2016 04:31 AM In reply to

    Re: Change Event handler on text field in a Repeating Section

    Locked Reply Contact
    Closing my own post, turns out it was an unrelated issue.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.