How to store custom data about fields

J

jeverton

Hi,

I'm working on an InfoPath project where if any given field is changed,
some additional steps may need to be taken by the user. These steps
are tracked in a database that I would like to update using a web
service. Different fields may require a different set of steps if
changed.

I've figured out some of the event handlers I could use --
OnAfterChange, for example. What I'm wondering about is how I could
best store and retrieve which set of steps (they're given names),
should be required for a given field. The set names would be defined
in the form design somehow -- it's a sort of custom metadata I guess.

Given an AfterChange event, I'd like to be able to look up that field's
"required steps set" value, store it in a collection of such sets
names, and then when the form is later saved or submitted, make the web
service call to update the database on which sets are now required
based on all changes made.

Any given field could have a set of steps required by its change, so
I'm wondering: How can I store this data in the form so that it can be
retrieved from the OnAfterChange event handler?

(I'm using a form based on a sample XML. I'm using C# for the event
handlers.)

thanks,

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top