Rules - Greg Collins Sign in | Join | Help in Current Tags Greg Collins Tutorials (Entire Site) 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 This Blog Home About Syndication RSS Atom Comments RSS Recent Posts Swap the AD Alias and Name Fields in Place Create a Split Public/Private Form Display a Save As Dialog Box Highlight the Active Field Use the SharePoint '[Me]' Filter with a Promoted Property Tags Active Server ADWS Alias ASPX Background Borders Bugs Bullets and Numbering Buttons Cache Cascading Check Boxes Code concat() Conditional Formatting Conditional Visibility copy-of count Cross-Domain current Data Validation Debugging DisplayName domEventHandlers E-Mail Error Errors Events Expression Boxes Extract Form Files File Extension File Types Filters Focus Footer Formatting Forms Full Trust GetNamedNodeProperty Greg Collins Header Help Hyperlinks Internet Explorer Lists Managed Code Me Namespaces New NewFromSolution NewFromSolutionWithData number Numbered Lists OnAfterChange OnClick OnContextChange OnLoad OnSwitchView Operating System Option Buttons Outlook Picture Pictures position preceding preceding-sibling Preserve Code Blocks Printing processing-instructions Promoted Property References RegForm Repeating Sections Repeating Tables Rich Text Boxes Roles Rules Save As Schema Script Secondary Data Sources Sections Security SetNamedNodeProperty SharePoint SQL Style Sheets Submit Task Panes Template Text Boxes Tile Views Visual Studio Warning Windows Explorer Workarounds xdExtension xdXDocument XPath Archives October 2009 (1) April 2009 (1) March 2006 (1) November 2005 (1) September 2005 (1) July 2005 (4) June 2005 (24) March 2005 (2) January 2005 (1) November 2004 (1) October 2004 (1) September 2004 (6) August 2004 (5) July 2004 (20) June 2004 (5) Greg Collins Browse by Tags All Tags » Rules (RSS) ADWS Alias Bugs Buttons Code Conditional Formatting count current Data Validation DisplayName domEventHandlers Expression Boxes Greg Collins Launch Lists Managed Code number OnAfterChange OnClick OnLoad OnSwitchView preceding-sibling Repeating Tables Roles ruleSets Views Visual Studio Workarounds xdExtension XPath Swap the AD Alias and Name Fields in Place In this tutorial you will learn how to use perform an in-place swap of an Active Directory alias and display name so as to conserve space in the view. This sample uses a text field and a button along with conditional formatting, rules and data validation... Posted Oct 09 2009, 02:53 PM by Greg Collins with | with 1 comment(s) Filed under: Rules, Data Validation, Conditional Formatting, Greg Collins, DisplayName, ADWS, Alias Switch Views via Code and Rules There will be times when you will want to switch views during unsupported events, such as the OnAfterChange event. Due to technical reasons in the underlying platform, InfoPath only allows you to switch views during the OnLoad event and the OnClick event... Posted Jun 10 2005, 03:04 PM by Greg Collins with | with no comments Filed under: Rules, Code, Views Keep Track of List Selections At some point it might be necessary to keep track of order of the selections a user makes in a single list box or drop-down list box. You can accomplish this by writing your own code in an OnAfterChange event handler, or you can use rules. In this task... Posted Jun 09 2005, 06:56 AM by Greg Collins with | with no comments Filed under: Rules, Code, Lists Bringing Expressions Out of the Box I uncovered this problem on 2004.09.17. I actually noticed it happening several weeks earlier, but didn't have the time then to find out what was going on. I've reported this problem to Microsoft. In order to avoid numerous potential problems... Posted Sep 17 2004, 04:44 PM by Greg Collins with | with no comments Filed under: Rules, Views, Expression Boxes, Conditional Formatting, Workarounds, Bugs Use Code to Determine a Rule Condition One of the great and power features InfoPath provides is the xdExtension prefix. This feature allows your form to call into your code from areas like conditional formatting. It provides you with greater flexibility in determining the validity of a condition... Posted Sep 15 2004, 05:20 PM by Greg Collins with | with 7 comment(s) Filed under: Rules, Code, xdExtension, Greg Collins Order of Processing at OnClick In InfoPath, the order of processing when a user clicks a button is: Rules Code When you write your OnClick event handler, take into account that any rules associated with the button will be processed before the code is reached. This can be very useful... Posted Jul 15 2004, 10:00 AM by Greg Collins with | with no comments Filed under: Rules, Code, Buttons, OnClick Identify the Current Table Row If you are trying to identify the current table row so that you can make modifications to other field in that row, the safest thing to do is to make those modifications using code. This will be the fastest (performance-wise) solution. You can see how... Posted Jul 08 2004, 11:54 AM by Greg Collins with | with no comments Filed under: XPath, Rules, Repeating Tables, preceding-sibling, count, number, current Using Rules to Update Fields in a Table Row While working today on my example form, Populating Table Row After Selection (Rules) , I had an epiphany—a possible way of accomplishing this without resorting to manually editing the XSL or using code. The concept was to create a Support secondary... Posted Jul 06 2004, 04:28 PM by Greg Collins with | with no comments Filed under: Rules, Repeating Tables, Workarounds, Bugs Too Lazy to Switch Views STATUS: Fixed in InfoPath 2003 SP1 DESCRIPTION: While working on a project for Microsoft, Patrick Halstead and I were using some complex Open Rules and were having trouble getting things to work right. So, under the pressure of a deadline, we decided... Posted Jul 01 2004, 04:37 PM by Greg Collins with | with no comments Filed under: OnLoad, Rules, Views, Workarounds, Bugs I Just Can't Keep the Rules! STATUS: Potentially fixed in InfoPath 2003 SP2. DESCRIPTION: I uncovered this bug on 2004-02-17 and reported it to my Microsoft contacts. It was at that point unknown to Microsoft. The rules that you defined actually remain in the manifest. The bug is... Posted Jun 29 2004, 05:57 PM by Greg Collins with | with no comments Filed under: Rules, Visual Studio, Managed Code, Workarounds, Bugs, ruleSets, domEventHandlers, OnAfterChange Order of Processing at Startup In InfoPath SP1, the order of processing at startup of a form is: User Roles Open Rules OnLoad event handler OnSwitchView event handler The User Roles are processed first so that when the Open Rules are evaluated that they can take into account the current... Posted Jun 26 2004, 01:16 PM by Greg Collins with | with 1 comment(s) Filed under: OnSwitchView, OnLoad, Roles, Rules, Launch Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.