Search - InfoPath Dev

InfoPath Dev

Search

Page 39 of 49 (487 items) « First ... < Previous 37 38 39 40 41 Next > ... Last »
  • Re: setting focus on another control with a command button.

    Hi, Add the following code lines in the button click event.&nbsp; IXMLDOMNode focusNode = thisXDocument.DOM.selectSingleNode(&quot;xpath of the field in which the focus comes&quot;);&nbsp; If(focusNode!= null)&nbsp; {&nbsp; thisXDocument.View.SelectText(focusNode ,Type.Missing);&nbsp; }&nbsp;This is for a normal button placed from ...
    Posted to Code (Forum) by swathip on 11-13-2008
  • Re: Repeating table and behind code

    Hi,&nbsp; Every time you are setting the first row total value. You can solve your problem by altering some code which is formatted as BOLD. &nbsp;public void DateFin_Changed(object sender, XmlEventArgs e) {XPathNavigator MainData2 = MainDataSource.CreateNavigator(); &nbsp;if (e.Site.SelectSingleNode(&quot;../my:DateDebut&quot;, ...
    Posted to Newbie Questions (Forum) by swathip on 11-13-2008
  • Re: Repeating table and behind code

    Hi, DateFin_Changed(..) event will be called every time when the DateFin field value is changed. The field name should not be changed when we insert a new row. But if we use MainData2.SelectSingleNode(&quot;/my:DemandeConge/my:Conges/my:DateFin&quot;, NamespaceManager), in the changed event, every time the first row’s DateFin is considered. If ...
    Posted to Newbie Questions (Forum) by swathip on 11-12-2008
  • Re: Repeating table and behind code

    Hi,Every time you are calculating the first rows field’s difference. You can call the newly inserted “DateEnd” using e.Site.SelectSingleNode(&quot;../my:DateEnd&quot;,NamespaceManager) Use the following code.public void field2_Changed(object sender, XmlEventArgs e){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XPathNavigator ...
    Posted to Newbie Questions (Forum) by swathip on 11-12-2008
  • Re: Same values in repeating section

    Hi, Set the following xpath as default value to achieve your requirement.&nbsp; xdXDocument:GetDOM(&quot;secondary datasource name&quot;)/RootNode/RepeatingNode[count(preceding-sibling::RepeatingNode) = count(current()/../preceding-sibling::my:RepeatingNodeOfMainDataSource)]/IDFieldNode&nbsp; ...
    Posted to Browser Forms (Forum) by swathip on 11-12-2008
  • Re: Getting nth element from secondary data source

    Hi,If the form is a browser form, [n] does not work. Use the following xpath as default value for a text box to get the nth element in a browser form.xdXDocument:GetDOM(“Secondary DOM Name&quot;)/RootNode/NodeName/RepeatingNodeName[count(preceding-sibling::RepeatingNodeName) = (n-1)]/fieldNodeExample: ...
    Posted to Browser Forms (Forum) by swathip on 11-12-2008
  • Re: list a field result in an expression box

    HiYes. It is possible. Follow the below steps.1.&nbsp;&nbsp;&nbsp; Click on fx button in expression box properties.2.&nbsp;&nbsp;&nbsp; Click on ‘Insert a field’ in ‘Select 1 Field or Group’ window.3.&nbsp;&nbsp;&nbsp; Select the source from where you are getting the Id and Name in Source drop down.4.&nbsp;&nbsp;&nbsp; Select the ‘Name’ field and ...
    Posted to Controls (Forum) by swathip on 11-11-2008
  • Re: Add dynamic records to Repeating table on button click using c#

    Hi, Get the last record of the repeating section using last() function. In that get the one field value. If that field value is blank then set the three text box values to the repeating nodes values like thisXDocument.DOM.selectSingleNode(&quot;/my:myFields/my:group1/my:group2[position() = last()]/my:field1&quot;).text = ...
    Posted to Newbie Questions (Forum) by swathip on 11-11-2008
  • Re: Infopath form created in 2003 cannot open on a machine with 2007

    Hi, Make sure that they have permissions to access the data base. And the form should be a full trust form.&nbsp;
    Posted to Data Connections (Forum) by swathip on 11-11-2008
  • Re: open different view for approval form

    Hi, Set the status of the form in a hidden field (ex: status). And put a rule for the form using that field. 1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to Tools-&gt; Form Options. 2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In Open and save tab, Click on Rules button. 3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Click on Add&nbsp; and then click on ...
    Posted to General (Forum) by swathip on 11-10-2008
Page 39 of 49 (487 items) « First ... < Previous 37 38 39 40 41 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.