Populating InfoPath fields from database

A

AL

I'd like to populate some textboxes on an InfoPath form as a result of
choosing an item in a combo. The textboxes would be populated as a result of
a database lookup. Can anybody point me toward some useful coding samples
online?

Many Thanks
 
F

Franck Dauché

Hi,

You don't automatically need to use code for this. Did you try to use rules
in your drop-down to set the value of your textbox?

If your logic is too complex and that you want to use code behind, you need
to:
1. Catch the OnAfterChange event of you drop-down
2. Look at the NewValue
3. Based on your logic, set the values of the nodes associated with your
textbox(es).

Are you using script or Managed Code?

Regards,

Franck Dauché
 
Top