written input from textbox send to outlook Calender - InfoPath Dev Sign in | Join | Help in Newbie Questions 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 » Newbie Questions » written input from textbox send to outlook Calender Use our Google Custom Search for best site search results. written input from textbox send to outlook Calender Last post 10-29-2009 02:49 AM by Shiva. 4 replies. Page 1 of 1 (5 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-24-2009 01:08 PM sheep Joined on 10-24-2009 Posts 7 written input from textbox send to outlook Calender Reply Contact Hi everyone, I am a new user of Infopath, and I totally love it. I found this VBScript in this forum: see below. How can I change e.g. “test” into a text written by a user, using textbox in infopath Thank you! ------------------- Sub CTRL33_7_OnClick(eventObj) Dim dateIndex, timeIndex, descriptionIndex, duration, reminderTime Dim eventDate(), eventTime(), eventDescription(), i Dim objOutlook Dim myItem Set objOutlook = CreateObject("Outlook.Application") Set myItem = objOutlook.CreateItem(1) myItem.MeetingStatus = 1 myItem.Subject = "test" myItem.Location = "B" myItem.Start = #20/10/09 1:30:00 PM# myItem.Duration = 60 Set myRequiredAttendee = myItem.Recipients.Add ("email") myRequiredAttendee.Type = 1 Set myOptionalAttendee = myItem.Recipients.Add ("email") myOptionalAttendee.Type = 2 myItem.SendEnd Sub Filed under: Outlook calendar Event VBScript 10-25-2009 11:33 PM In reply to Shiva Joined on 04-15-2005 India Posts 694 Re: written input from textbox send to outlook Calender Mark as Not AnswerMark as Answer... Reply Contact Hello, You have to change your code as below to get text box value, myItem.Subject = XDocument.DOM.selectSingleNode("XPath of your field"); Shiva / http://www.ggktech.com 10-26-2009 01:07 AM In reply to sheep Joined on 10-24-2009 Posts 7 Re: written input from textbox send to outlook Calender Mark as Not AnswerMark as Answer... Reply Contact Thank you I used your code but a error occured. myItem.Subject = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Leveranciers/@Adres"); can you tell me my mistake? 10-27-2009 01:10 AM In reply to sheep Joined on 10-24-2009 Posts 7 Re: written input from textbox send to outlook Calender Mark as Not AnswerMark as Answer... Reply Contact Thank you, problem solved. I have new question: XDocument.DOM.selectSingleNode(... transfers data from a textbox to outlook calender. the text of the database.is it posible to send a text before it is part of the database, and only written on the screen? Kind regards! 10-29-2009 02:49 AM In reply to Shiva Joined on 04-15-2005 India Posts 694 Re: written input from textbox send to outlook Calender Mark as Not AnswerMark as Answer... Reply Contact Hello, After get the value you use substring function to get partial values. We can send this partial data to database. Go through the below link for more information on substring function, http://www.w3schools.com/jsref/jsref_substring.asp Shiva / http://www.ggktech.com Page 1 of 1 (5 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.
Hello,
You have to change your code as below to get text box value,
myItem.Subject = XDocument.DOM.selectSingleNode("XPath of your field");
Thank you
I used your code but a error occured.
myItem.Subject = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:Leveranciers/@Adres");
can you tell me my mistake?
Thank you, problem solved.
I have new question: XDocument.DOM.selectSingleNode(... transfers data from a textbox to outlook calender. the text of the database.is it posible to send a text before it is part of the database, and only written on the screen?
Kind regards!
After get the value you use substring function to get partial values. We can send this partial data to database.
Go through the below link for more information on substring function,
http://www.w3schools.com/jsref/jsref_substring.asp