What kind of value you try to publish ?
Check on form option, on property promotion, if your field is publish.
gowtham:And the other question is how can I make a secondary data connection to the library to use it in code?
On manage Data connection, click add, and then follow the wizard. You can use it in your code.