Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2004

Tip: Looking for answers? Try searching our database.

Howto: Address a field from a data source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lidschi - 27 Oct 2004 15:15 GMT
Hi Newsgroup,

I can hardly explain what I want so I use an example:

If I start a blank new form and put a text box called "test" in the form I
can address the field in code via my:test.
BUT: If I already have data from a SQL Server connection in myFields and
then create a new text box called "test" it gets listed as my:test.

How can I then address this field inside code? And how can I address fields
that are e.g. in myFields==>queryFields==>q:[query_name]==>Account?

Thanks in advance for your kind help.

Regards
Lidschi.

P.S Can someone recommend a good book about Infopath since there is none
available yet in German language.
Matthew Blain \(Serriform\) - 28 Oct 2004 07:35 GMT
Here's a trick I use a lot:

Create an Expression box bound to the field you want. In either the primary
or a secondary data source.
Then look at the expression, it will have something very close to what you
want.
You'll also need to set the namespace prefix properties correctly on the
secondary DOM
(XDocument.GetDOM("yourdom").setProperty("SelectionNamespaces",'xmlns:ns0="s
omething"'))

--Matthew Blain
http://tips.serriform.com/
http://www.microsoft.com/mspress/books/7128.asp

> Hi Newsgroup,
>
[quoted text clipped - 15 lines]
> P.S Can someone recommend a good book about Infopath since there is none
> available yet in German language.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.