written input from textbox send to outlook Calender - InfoPath Dev
in

InfoPath Dev

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: Previous Next
  • 10-24-2009 01:08 PM

    • sheep
    • Not Ranked
    • Joined on 10-24-2009
    • Posts 7

    written input from textbox send to outlook Calender

    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 

     

  • 10-25-2009 11:33 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: written input from textbox send to outlook Calender

    Hello,

    You have to change your code as below to get text box value,

    myItem.Subject = XDocument.DOM.selectSingleNode("XPath of your field");

     

  • 10-26-2009 01:07 AM In reply to

    • sheep
    • Not Ranked
    • Joined on 10-24-2009
    • Posts 7

    Re: written input from textbox send to outlook Calender

    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
    • Not Ranked
    • Joined on 10-24-2009
    • Posts 7

    Re: written input from textbox send to outlook Calender

    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
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: written input from textbox send to outlook Calender

    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

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.