Search - InfoPath Dev

InfoPath Dev

Search

Page 248 of 259 (2583 items) « First ... < Previous 246 247 248 249 250 Next > ... Last »
  • Re: Highlighting Current Textbox

    Ah, I see. You&#39;re using InfoPath 2003.&nbsp; In that case, this should work: Dim oActiveContext As IXMLDOMNode &lt;InfoPathEventHandler(EventType:=InfoPathEventType.OnContextChange)&gt; _ Public Sub FormEvents_OnContextChange(ByVal e As DocContextChangeEvent) &nbsp;&nbsp;&nbsp;&nbsp; If (e.Type = &quot;ContextNode&quot; And Not ...
    Posted to Newbie Questions (Forum) by Jimmy on 12-02-2008
  • Re: Highlighting Current Textbox

    This code should do the trick in VB.NET: Dim oActiveContext As XPathNavigator Public Sub FormEvents_ContextChanged(ByVal sender As Object, ByVal e As ContextChangedEventArgs) &nbsp;&nbsp;&nbsp;&nbsp; If (e.ChangeType = &quot;ContextNode&quot;) Then &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
    Posted to Newbie Questions (Forum) by Jimmy on 12-02-2008
  • Re: Validating StartDate and EndDate

    It looks like this line might be the problem: &nbsp;&nbsp;&nbsp; if (strStartDate != &quot;&quot; || StrEndDate != &quot;&quot;) you should perform the comparison if both are valid dates, not if&nbsp;just one is, so it should be an &amp;&amp; operation.&nbsp; Also, your code could be a bit more robust.&nbsp; Give this a ...
    Posted to Newbie Questions (Forum) by Jimmy on 12-02-2008
  • Re: Querying secondary data connection

    Is the repeating section simply failing to refresh or are you getting an error?&nbsp; If there&#39;s an error, could you tell me what it is?
    Posted to SQL Database Integration (Forum) by Jimmy on 12-01-2008
  • Re: dropdownbox

    Yes, this should work:&nbsp;XPathNavigator source = DataSources[&quot;GetOrders&quot;].CreateNavigator(); XPathNavigator ordernameNode = source.SelectSingleNode(&quot;/dfs:myFields/dfs:dataFields/tns:GetOrdersResponse/tns:GetOrdersResult/NewDataSet/Table/ordername[../orderid=&#39;&quot; + e.NewValue.Trim() + &quot;&#39;]&quot;, ...
    Posted to Code (Forum) by Jimmy on 11-30-2008
  • Re: dropdownbox

    There is no way to directly interact with InfoPath forms, so the only way to accomplish this is to get the current value of the field bound to the dropdown box, and then find the corresponding order name in the secondary data source that is being used to populate the form.
    Posted to Code (Forum) by Jimmy on 11-30-2008
  • Re: Submit form with confirmation (rule or code)

    What type of code do you plan to use (C#, VB...)?&nbsp; Are you using InfoPath 2003 and require using JScript or VBScript?
    Posted to Newbie Questions (Forum) by Jimmy on 11-30-2008
  • Re: Retrieving Column Data from Sharepoint List to a Repeating Table in Infopath

    [quote user=&quot;kelogs1347&quot;] [quote user=&quot;swathip&quot;] Hi, Before getting the value of a node, verify that node is existing or not. Check rows.Current.SelectSingleNode( &quot;@Person_Responsible&quot;, NamespaceManager) is null or not. If it is not null then go for rows.Current.SelectSingleNode( ...
    Posted to Newbie Questions (Forum) by Jimmy on 11-27-2008
  • Re: Retrieving Column Data from Sharepoint List to a Repeating Table in Infopath

    What you can do is put a breakpoint on that line, then do a quick watch on rows.Current, and look at its OuterXml.&nbsp; That should give you some idea of what it looks like and what may be missing. You might have to iterate a few times to find the offending row.
    Posted to Newbie Questions (Forum) by Jimmy on 11-27-2008
  • Re: Retrieving Column Data from Sharepoint List to a Repeating Table in Infopath

    Is it possible that a certain row might not have a Person_Responsible assigned?&nbsp; If so, you&#39;ll probably want to make sure that rows.Current.SelectSingleNode(&quot;@Person_Responsible&quot;, NamespaceManager) Is not null (or Nothing, my VB is a bit shaky), and assign an empty string to owner if it is.
    Posted to Newbie Questions (Forum) by Jimmy on 11-27-2008
Page 248 of 259 (2583 items) « First ... < Previous 246 247 248 249 250 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.