Search - InfoPath Dev

InfoPath Dev

Search

Page 1 of 1 (3 items)
  • Re: Set Value of Drop-Down List Box to Item #1

    [quote user="Greg Collins"] The problem you are having might be coming from the xsi:nil attribute. On non-String data type nodes (including, but not limited to: Date, Time and DateTime nodes), if you want to allow the node to have a blank value, the schema places the attribute: xsi:nil="true" on the node. While this ...
    Posted to Newbie Questions (Forum) by fijaz on 05-12-2008
  • Re: Set Value of Drop-Down List Box to Item #1

    [quote user="Greg Collins"] .SetValue() is the right choice... but DateTime.Today.ToString() fails to give an XML-compatible date string.... XML expects the format of the string to be "YYYY-mm-DD", which you can get from a slight modification of your code: DateTime.Today.ToString("s"). The "s" tells the ...
    Posted to Newbie Questions (Forum) by fijaz on 05-08-2008
  • Re: Set Value of Drop-Down List Box to Item #1

    Hi, I want to assign a date value to DatePicker control (DateTime Data type) on my form. I have tried it using xnMyForm.SelectSingleNode("/my:Main/my:LeaveStartDate", ns).SetValue(DateTime.Today.ToString()); But it gives following exception: System.InvalidOperationException Schema validation found non-data type ...
    Posted to Newbie Questions (Forum) by fijaz on 05-08-2008
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.