Search - InfoPath Dev

InfoPath Dev

Search

Page 246 of 259 (2583 items) « First ... < Previous 244 245 246 247 248 Next > ... Last »
  • Re: thisxdocument error

    Thank you, but all that code does is assign the value &quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN &quot; to that field. I&#39;m pretty sure that if all you want to do is assign the user name to that field you can use a rule the way I described and skip using code altogether.
    Posted to Code (Forum) by Jimmy on 12-11-2008
  • Re: thisxdocument error

    Remove the line that uses System.Environment.UserName&nbsp;from your code&nbsp; Place a button on the form in the designer. Double-click the button. Click Rules... Click Add... Click Add action... Select &quot;Set a field&#39;s value&quot; Select the /dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN field Click ...
    Posted to Code (Forum) by Jimmy on 12-11-2008
  • Re: thisxdocument error

    You can use C# with the 2003 OM&nbsp;(note my previous post saying to select &quot;C# (2003 Object Model)&quot;. But the 2007 one is just as good, if not better.&nbsp; My guess is that you are getting that error because of this line: System.Environment.UserName; Your form probably needs to be full trust to access System.Environment, but you ...
    Posted to Code (Forum) by Jimmy on 12-11-2008
  • Re: thisxdocument error

    If you would like to try programming with the InfoPath 2003 object model and try out the code involving thisXDocument that you seem to be finding, you can switch to that by going to Tools-&gt;Form Options-&gt;Programming, clicking Remove Code and selecting C# (2003 Object Model).
    Posted to Code (Forum) by Jimmy on 12-11-2008
  • Re: to assign value to node

    What type of function is this code in?&nbsp; You will not be able to change a node value in a Changing or Validating&nbsp;event.
    Posted to Code (Forum) by Jimmy on 12-10-2008
  • Re: Code to Iterate through Secondary DataSource

    Code for this would not require iteration.&nbsp; It would look like this: XPathNavigator iLoveSharePointSource = DataSources[&quot;GetGroupsFromCurrentUser&quot;].CreateNavigator(); if (iLoveSharePointSource.SelectSingleNode(&quot;//s1:UserGroups[s1:string = &#39;Human Resources&#39;]&quot;, NamespaceManager) != null) { &nbsp;&nbsp;&nbsp;&nbsp; ...
    Posted to Code (Forum) by Jimmy on 12-10-2008
  • Re: Infopath: Rich TextBox

    I can only guess, but it seems that InfoPath interperets newlines as soft returns (&lt;br/&gt;) when you paste data into a Rich Text Box.&nbsp; If you press Shift+Enter while typing in a rich text box&nbsp;it will insert a &lt;br/&gt; there too. &nbsp;What would you prefer it do instead of using &lt;br/&gt;s?
    Posted to Newbie Questions (Forum) by Jimmy on 12-10-2008
  • Re: A lightweight approach to retrieving the solutionVersion attribute from the xsn?

    Cool.&nbsp; We use CabLib in our solutions here at Qdabra, and while it has a few flaws and its error messages aren&#39;t great, it tends to get the job done. Best of luck.
    Posted to Code (Forum) by Jimmy on 12-08-2008
  • Re: A lightweight approach to retrieving the solutionVersion attribute from the xsn?

    I don&#39;t understand your situation entirely, as in how exactly you are using these InfoPath files, but I will answer it as well as I can. The .NET foundation classes, to the best of my knowledge, do not provide any good functionality for CAB extraction and that requires an external library.&nbsp; One such library is CABLIB, which is free to ...
    Posted to Code (Forum) by Jimmy on 12-08-2008
  • Re: problems with buttons in repating table

    It will be difficult to help you without some more information about how you are implementing the Show/Hide functionality.
    Posted to Browser Forms (Forum) by Jimmy on 12-08-2008
Page 246 of 259 (2583 items) « First ... < Previous 244 245 246 247 248 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.