InfoPath 2003 Clearing text (data) fields - InfoPath Dev
in

InfoPath Dev

InfoPath 2003 Clearing text (data) fields

Last post 04-26-2009 10:03 PM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-24-2009 12:54 PM

    InfoPath 2003 Clearing text (data) fields

    Good afternoon.

     I was wondering if anyone knew how to clear text fields. I have the following code:

    XDocument.DOM.selectSingleNode("dfs:myFields/dfs:dataFields/d:tbl_GC100/@Lockbox").Text = Empty XDocument.DOM.selectSingleNode("dfs:myFields/dfs:dataFields/d:tbl_GC100/@Cash_Deposit_Date").Text = Empty XDocument.DOM.selectSingleNode("dfs:myFields/dfs:dataFields/d:tbl_GC100/@Batch_Number").Text = Empty

    I have tried = Null, = "", and = Empty, to no avail. I figured this should be pretty straight forward.

    This is on a command button click event.

    Thank you, WHEELS

  • 04-26-2009 10:03 PM In reply to

    Re: InfoPath 2003 Clearing text (data) fields

    Hi,

    I think you are setting the values for secondary data source. For that first get the secondary dom and from that get the nodes and set the values. IF you check out you will get ‘XDocument.DOM.selectSingleNode("dfs:myFields/dfs:dataFields/d:tbl_GC100/@Lockbox")' value as null.

    Swathip
    www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.