Start a new topic

Is there a way to stash data between rows?

Hi all,

Related to a feature request I've just made on UserVoice.

Is there a way to persist data between rows during an import? If I wanted to, say, remember that this address has already cropped up, so that I can blank it out. Can I keep an array alive somewhere between rows?

Cheers,

Tom


Tom,

Yes you can. The Profile class is kept in memory from row to row. You can create a variable that exists outside of the methods and its value will be available for each row.
Excellent! So, if I take a hash of the address components and store these in a list, I should be able to blank them out during AfterConstituentOpen on subsequent rows so that they don't keep popping up with suggestions. Wish me luck...
Login or Signup to post a comment