Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Populating text fields via xml...

RapidFire_Tools
Level 1
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
Bibhu_Bikash_Na
Level 9
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.

RapidFire_Tools
Level 1
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?

Bibhu_Bikash_Na
Level 9
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.