Showing posts with label InfoPath. Show all posts
Showing posts with label InfoPath. Show all posts

Oct 31, 2007

xsd maxOccurs="2" minOccurs="1"

XSD allow you to specified maxOccurs="2" minOccurs="1" in sequence and and element. What is the difference. Below is section

            
            
            
            
            
            
            
            
            
sequence with maxOccurs more than 1 means you can repeat the whole section more than one time, element with maxOccurs more than 1 means you can repeat that element for more than one time. There is no difference if the sequence has only one element. You can put maxOccurs on the sequence or the element. If there are more than one element in sequence there will be difference.
            
            1
            2
            3
            dfsdf
            1
            2222
            fred
            
            
Generally, we should put maxOccur on element rather on sequence. Or you can convert a sequence into a complex type and make that a element of that type, and put maxOccur on that element.

Oct 9, 2007

Enable InfoPath intellisense in VS.NET IDE

C:\>copy "C:\Program Files\Microsoft office\Office12\Microsoft.Office.InfoPath.x ml" "C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.InfoPath\12.0.0.0__71e9bce111 e9429c"
C:\>copy "C:\Program Files\Microsoft office\Office12\Microsoft.Office.Interop.In foPath.SemiTrust.xml" "C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.InfoPath .SemiTrust\11.0.0.0__71e9bce111e9429c"