Search - InfoPath Dev

InfoPath Dev

Search

Page 228 of 259 (2583 items) « First ... < Previous 226 227 228 229 230 Next > ... Last »
  • Re: How to code a changed text box?

    I don&#39;t, unfortunately, but I learned almost all of what I know just by tinkering around a lot.&nbsp; For coding with XML in InfoPath, reading the&nbsp;up on&nbsp;the XPathNavigator class will get you a long way.&nbsp; It&#39;s nearly the only XML-related class you&#39;ll need to use with InfoPath, and by far the most important methods are ...
    Posted to Newbie Questions (Forum) by Jimmy on 03-25-2009
  • Re: Check for Malicious code

    What exactly do you mean by malicious code?&nbsp; For what will the field values be used where their values might cause harm?
    Posted to General (Forum) by Jimmy on 03-25-2009
  • Re: How to code a changed text box?

    Yes, putting something like this in the textbox&#39;s changed event would do the trick: XPathNavigator dateNode = MainDataSource.CreateNavigator().SelectSingleNode(&quot;XPath to date node&quot;, NamespaceManager); // Delete the xsi:nil attribute if it is present XPathNavigator nilAttribute = dateNode.SelectSingleNode(&quot;@xsi:nil&quot;, ...
    Posted to Newbie Questions (Forum) by Jimmy on 03-24-2009
  • Re: How to Validate the number of Characters entered?

    To validate that a field has more than 1 character, just use the built-in validation options to mark it invalid if it is blank. Then click the And button and change the dropdown to or to add an expression to mark it invalid if it is greater than 15 characters.&nbsp; That expression would be something like: string-length(XPath to field) &gt; 15
    Posted to Newbie Questions (Forum) by Jimmy on 03-24-2009
  • Re: Current Row in repeating table

    Those instructions make sense to me.&nbsp; Are you sure you modified the manifest the way they described?&nbsp; Perhaps you could attach your manifest.xsf file to this thread so we can have a look?
    Posted to Code (Forum) by Jimmy on 03-22-2009
  • Re: new datasource without connection

    I don&#39;t know of any tutorials, but it&#39;s really not that complicated.&nbsp; Just create an XML file with the structure that you would like to have, and import it as a &quot;Receive data&quot; data source in Tools-&gt;Data Connections.&nbsp; Then use the usual methods (rules/controls/code) to set and receive data from this data source, just ...
    Posted to Newbie Questions (Forum) by Jimmy on 03-22-2009
  • Re: Access control properties with script

    As you have surmised, selectSingleNode() returns a reference to an XML node, not a control.&nbsp; There isn&#39;t really any way to directly interact with an InfoPath control from within the form&#39;s code. To set the value of a node object (usersControl in the code you pasted), you can set the text property. usersControl.text = ...
    Posted to Code (Forum) by Jimmy on 03-22-2009
  • Re: Expected ';' Error

    The code you borrowed is VBScript code, but your form is set for JScript.
    Posted to Newbie Questions (Forum) by Jimmy on 03-22-2009
  • Re: Preventing schema entry for section controls

    A section control can be bound to almost anything, so if it&#39;s not inside any other sections you could even bind it to the myFields node at the top of your data source.&nbsp; If it is inside another section, you can bind it to the same node as the containing section. One other option for showing/hiding text is to put the text in an expression ...
    Posted to Controls (Forum) by Jimmy on 03-19-2009
  • Re: Count results of filtered section/table

    Pardon me for assuming you knew less than you did. I think there are ways to get around using that extra boolean field.&nbsp; For example, there is a way to hack the form to allow calling xdExtension functions from rules and (I believe) expression ...
    Posted to General (Forum) by Jimmy on 03-19-2009
Page 228 of 259 (2583 items) « First ... < Previous 226 227 228 229 230 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.