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 / December 2005

Tip: Looking for answers? Try searching our database.

Retrieving the dropdown text via code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack - 20 Dec 2005 02:09 GMT
I have a drop down on a form with a number of options manually added.  These
options have a number for the value and a text description for the display
text.  Via form code I can retrieve the value, but not the display text. I
am using this code to get my value:
ndSample.selectSingleNode("my:SampleField").text
I've discovered that the display text is in the view1.xsl file, and not the
main data set, so essentially I'm asking how to retrieve information from
view1.xsl via code. Thanks.
Franck Dauché - 20 Dec 2005 04:50 GMT
Hi Jack,

Check this: http://www.infopathfaq.com/development.asp?page=2

Regards,

Franck Dauché

> I have a drop down on a form with a number of options manually added.  These
> options have a number for the value and a text description for the display
[quoted text clipped - 4 lines]
> main data set, so essentially I'm asking how to retrieve information from
> view1.xsl via code. Thanks.
Jack - 20 Dec 2005 13:39 GMT
I've been doing that for dropdowns that are bound to datasoures, however my
dropdown lists on this form are all bound to manually entered option items.
How do I retrieve these?

> Hi Jack,
>
[quoted text clipped - 16 lines]
>> main data set, so essentially I'm asking how to retrieve information from
>> view1.xsl via code. Thanks.
 
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.