Search - InfoPath Dev

InfoPath Dev

Search

Page 217 of 259 (2583 items) « First ... < Previous 215 216 217 218 219 Next > ... Last »
  • Re: Can we set a default value to radio button?

    &nbsp;Please try the attached template, which uses JScript to store [current date + 3 days] in one of the form&#39;s field when the form loads.&nbsp; To avoid cluttering the form&#39;s main data source, you may want to store the value in a secondary data source, though that would be a bit more complicated.&nbsp; Here is the JScript I used, for ...
    Posted to Controls (Forum) by Jimmy on 07-13-2009
  • Re: SecondaryDataSource - How to access ?

    &nbsp;You can access the secondary data sources by using the DataSources collection, like this: DataSources[&quot;nameOfSource&quot;] So if I wanted to create an XPathNavigator to a data source called Weevils, I would use: DataSources[&quot;Weevils&quot;].CreateNavigator() I&#39;m not sure what to say for your second question.&nbsp; I ...
    Posted to Code (Forum) by Jimmy on 07-13-2009
  • Re: Can we set a default value to radio button?

    &nbsp;If you don&#39;t mind limiting your forms to InfoPath 2007, you can use the handy addDays() function: &nbsp;addDays(today(), 3) If not, you can use code to generate and store the value in a field where you can reference it at any time. Which way do you prefer?
    Posted to Controls (Forum) by Jimmy on 07-13-2009
  • Re: Can we set a default value to radio button?

    &nbsp;It doesn&#39;t seem like you can use a formula to set the values of radio buttons, but what you can do is give the radio buttons simple values (like 1, 2, 3), and then use rules to set the value in another field depending on which one is selected.&nbsp; This should give you some more flexibility.
    Posted to Controls (Forum) by Jimmy on 07-12-2009
  • Re: what is the difference between ".InnerXml" and ".Value"?

    [quote user=&quot;gerry lowry&quot;]Also, is there any difference ever, between &quot;.InnerXml&quot; and &quot;.Value&quot;?[/quote]&nbsp; Sure is.&nbsp; For XML elements, Value contains all the ordinary text between a node&#39;s starting and ending tag, and InnerXml contains everything between a node&#39;s starting and ending tag. So if I have ...
    Posted to Newbie Questions (Forum) by Jimmy on 07-11-2009
  • Re: clearing out a text box with code

    &nbsp;The only way I can seem to reproduce that particular error is if I do SetValue(&quot;&quot;) directly on root (i.e. the object returned from MainDataSource.CreateNavigator() ).&nbsp; Did you use Hilary&#39;s code exactly the way it is or did you modify it somehow?
    Posted to Newbie Questions (Forum) by Jimmy on 07-10-2009
  • Re: Generate reports over a collection of infopath .xml files (data evaluation/analysis)

    DBXL sounds like just what you&#39;re looking for.&nbsp; You can use it to extract data from the XML and into a database as the forms are submitted, and then use Excel&#39;s database-querying functionality to process the data whenever you like. Updating the XML-&gt;DB mapping after the forms are submitted (e.g. to extract more data out into new ...
    Posted to General (Forum) by Jimmy on 07-08-2009
  • Re: Button click Move up/Move down in C#

    &nbsp;The my:group2 part is not generic, but in almost all cases, there is only one repeating node in a given repeating section.&nbsp; Is that not the case in your form?
    Posted to Code (Forum) by Jimmy on 07-06-2009
  • Re: Button click Move up/Move down in C#

    &nbsp;As Hilary already said, the current node can be accessed by e.Source.&nbsp; Here&#39;s code for moving an element up within its section.&nbsp; I&#39;ll let you figure out the down version: &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void CTRL5_5_Clicked(object sender, ClickedEventArgs ...
    Posted to Code (Forum) by Jimmy on 07-06-2009
  • Re: Date calculation

    Hey Hilary, &nbsp;That code actually won&#39;t work when September 1st is a Sunday, as it will calculate the first Monday as September 9th.&nbsp; The following is based off your code and should do the trick: [quote user=&quot;Hilary Stoupa&quot;] //create a variable for the first Monday &nbsp;&nbsp;&nbsp;&nbsp; ...
    Posted to Newbie Questions (Forum) by Jimmy on 07-04-2009
Page 217 of 259 (2583 items) « First ... < Previous 215 216 217 218 219 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.