Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 1 of 2 (11 items) 1 2 Next > Re: Include Statement in Javascript Jimmy, thanks for the quick reply but I forgot to mention, in addition to the variables there are also several functions that are used in all the forms, which would also be nice to manage centrally.. Posted to Code (Forum) by Erich on 08-22-2011 Re: Instances of a Repeating Section based on Field Value Worked like a charm, Thanks for your help! Posted to Controls (Forum) by Erich on 08-22-2011 Re: Instances of a Repeating Section based on Field Value Lockdown, I just have one problem, for 'position() > numberOfSections', what is the correct syntax for numberOfSections? For example, if in javascript I would extract it as XDocument.DOM.selectSingleNode("my:myFields/my:numberOfSections") what would it look like in the condition? Erich Posted to Controls (Forum) by Erich on 08-22-2011 Include Statement in Javascript Hi, Is there a way to have an include statement like in C (#include <otherscript.c>) in the script of a form template? The reason for wanting this is that there are global variables defined that are used for several forms and they may require frequent change.. Erich Posted to Code (Forum) by Erich on 08-22-2011 Instances of a Repeating Section based on Field Value Hi, Is it possible to create 'x' instances of a repeating section based on a number stored in a field? ie. 5 in 'numberOfSections' results in 5 instances of Section Erich Posted to Controls (Forum) by Erich on 08-19-2011 Re: Custom date format? Use the following code in javascript : var zeros = ["01","02","03","04","05","06","07","08","09","10","11","12"]; var oDate = new Date(); date = odate.getDate(); if(date < 10) date = zeros[date-1]; strDate = ... Posted to General (Forum) by Erich on 08-09-2011 Re: Xpath Syntax for Secondary Data Source Yes, what I would like is to store the value of the 'Name' attribute from the secondary data source as a global variable. My problem is that it appears script is executed before rules are, so when I try to extract the 'Name' attribute from a rule-calculated field, it returns an empty string since the rule has not yet been ... Posted to General (Forum) by Erich on 08-09-2011 Xpath Syntax for Secondary Data Source Hi, Here is the selectSingleNode statement producing an error ("Object required") XDocument.UI.Alert(XDocument.DOM.selectSingleNode("dfs:myFields/dfs:dataFields/d:BC_Verification[@BC_ID = my:myFields/my:user]/@Name").text); Where 'dfs' and 'd' are the namespaces of the secondary data source, and ... Posted to General (Forum) by Erich on 08-08-2011 Saving Access DB info onto Form Template Hi, Is it possible to save an Access Database's data into a form template so you can access it without actually having the access database? Erich Posted to General (Forum) by Erich on 08-04-2011 Storing Access Database info Hello, Is there a way to store data from Access into a form template? The database will be on a shared drive, but some users will not have access to said drive.. Erich Posted to General (Forum) by Erich on 07-28-2011 Page 1 of 2 (11 items) 1 2 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.