Expand my Community achievements bar.

Populating text fields via xml...

Avatar

Level 1

I am creating a form where three small fields will be listed generally in the document, like:

[COMPANY], [ADDRESS], [PHONE NUMBER]

And then will be text-replaced programmatically by pulling variables from our DB and populating the fields within the form.

What is the best way to do this?

Regards,

RapidFire

3 Replies

Avatar

Level 9

Hi,

There are many ways to do it. BUt in your case you have to make a DataConnection and populate the value from the DB. Here you have to make an OLEDB data connection. But if you want to make through XML then you have to make a XML schema data connection.

Thanks,

Bibhu.

Avatar

Level 1

Okay, that makes sense.

Once I have connected my DB to my form, how do I associate text fields with values in my DB?

Avatar

Level 9

Once data connection is done, then you can set the Databinding in the fields to capture the values.

After doing dataconncetion if you drag and drop the data conncetion in the design view every field would automatically be binded.

Otherwise you have to go to particular field then select ObjectPalette > Binding > Data Binding > Select the particular data binding from your data conncetion.

Thanks,

Bibhu.