Accesing a field from code (visual) - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Accesing a field from code (visual) Accesing a field from code (visual) Last post 03-03-2008 10:43 AM by Greg Collins. 5 replies. Page 1 of 1 (6 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-28-2008 08:24 AM wildguixe Joined on 02-06-2008 Posts 24 Accesing a field from code (visual) Reply Contact I want to put the value from a variable (dim hora as string and hora = "13:12:00") in a field form my:hora_ent. How can i do this???? Filed under: field visual variable 02-28-2008 03:13 PM In reply to Greg Collins Joined on 08-07-2006 Posts 2,126 Re: Accesing a field from code (visual) Mark as Not AnswerMark as Answer... Reply Contact Script: use XDocumentIP03 Managed Code: use thisXDocument thisXDocument.DOM.selectSingleNode("/RootNode/XPathToField/my:hora_ent").text = hora; Please Visit:BraintroveGreg's Paintings 02-29-2008 03:14 AM In reply to wildguixe Joined on 02-06-2008 Posts 24 Re: Accesing a field from code (visual) Mark as Not AnswerMark as Answer... Reply Contact Great, thanks, but, the "thisxdocument" does not work to me :( . say that is not declared. i'm using visual basic 2008 with infopath embedded. I appreciate any answer, thanks!!! :) 02-29-2008 09:21 AM In reply to Greg Collins Joined on 08-07-2006 Posts 2,126 Re: Accesing a field from code (visual) Mark as Not AnswerMark as Answer... Reply Contact Then you are probably using the IP07 coding OM. In that case: MainDataSource.CreateNavigator().SelectSingleNode("YourXPathHere") Please Visit:BraintroveGreg's Paintings 03-01-2008 08:42 AM In reply to wildguixe Joined on 02-06-2008 Posts 24 Re: Accesing a field from code (visual) Mark as Not AnswerMark as Answer... Reply Contact Thanks a lot! Is working! :) Now, one little question... do any knows why from one computer i can create an infopath form template from visual basic 9 (visual studio 2008 in "New Project...") and in others computers the option does not appear??? 03-03-2008 10:43 AM In reply to Greg Collins Joined on 08-07-2006 Posts 2,126 Re: Accesing a field from code (visual) Mark as Not AnswerMark as Answer... Reply Contact Most likely the other computers don't have VSTO installed, which is the connector software that allows Visual Studio to create InfoPath and other Office projects. Please Visit:BraintroveGreg's Paintings Page 1 of 1 (6 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I want to put the value from a variable (dim hora as string and hora = "13:12:00") in a field form my:hora_ent.
How can i do this????
Script: use XDocumentIP03 Managed Code: use thisXDocument
thisXDocument.DOM.selectSingleNode("/RootNode/XPathToField/my:hora_ent").text = hora;
Great, thanks, but, the "thisxdocument" does not work to me :( . say that is not declared. i'm using visual basic 2008 with infopath embedded. I appreciate any answer, thanks!!! :)
Then you are probably using the IP07 coding OM. In that case:
MainDataSource.CreateNavigator().SelectSingleNode(
Thanks a lot! Is working! :)
Now, one little question... do any knows why from one computer i can create an infopath form template from visual basic 9 (visual studio 2008 in "New Project...") and in others computers the option does not appear???
Most likely the other computers don't have VSTO installed, which is the connector software that allows Visual Studio to create InfoPath and other Office projects.