onAfterChange loop error - InfoPath Dev
in

InfoPath Dev

onAfterChange loop error

Last post 05-24-2005 07:36 AM by abrusci. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-22-2005 12:13 PM

    onAfterChange loop error

    Hi,
    I need that a cell change its content just after leave it with a new value based on the input. For example, I want that a number field assume the typed value multiplied by 1000 after the cell has been leaved with a tab or mouse pointing to another field. For this I used onAfterChange event, but this cause the event to loop and report an error.
    Any tips/tricks to solve the question ?

    Many thanks and best regards

    Francesco Abrusci
  • 05-22-2005 12:58 PM In reply to

    Re: onAfterChange loop error

    Hi Abrusci, Welcome to the Forum!
    First thing is it loops because when you are changing value in "OnAfterChange" event you are causing the event to call itself again, and this goes on until the value reaches the max of integer size.
    There is also another limit on the number of onafterchange event getting called.

    If you want to do this operation you need to have two nodes, one which accepts the value and one which stores the multiplied value.

    Agni
    InfoPathDev India
  • 05-23-2005 12:06 AM In reply to

    Re: onAfterChange loop error

    Hi Francesco,
    There is a section in Chapter 2 which discusses how to prevent infinitely percolating events. Good luck!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 05-23-2005 01:17 AM In reply to

    Re: onAfterChange loop error

    Thanks very much for yours replies.
    What about "Chapter 2" ? on what book or pubblication ?
    thanks

    regards

    Francesco


    quote:
    Originally posted by Patrick Halstead

    Hi Francesco,
    There is a section in Chapter 2 which discusses how to prevent infinitely percolating events. Good luck!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev



    Francesco Abrusci
  • 05-23-2005 10:26 AM In reply to

    Re: onAfterChange loop error

    Book is "Developing Solutions with Microsoft InfoPath" by Patrick & Co.
    This book is the best resource for devs working with InfoPath. It will serve from beginner to experienced people.

    Link for the book is under Books section on left side of the window.

    Agni
    InfoPathDev India
  • 05-24-2005 07:36 AM In reply to

    Re: onAfterChange loop error

    Thanks Agni.
    Best regards
    Francesco Abrusci
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.