XML based info path form - InfoPath Dev
in

InfoPath Dev

XML based info path form

Last post 04-01-2014 12:28 PM by dv028. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-25-2013 11:14 AM

    • dv028
    • Not Ranked
    • Joined on 07-25-2013
    • Posts 2

    XML based info path form

    I have info path 2007, with custom XSD . Using ##any attribute I am to add field through my namespace. But any formula I add to my:field is not working , unfortunating when I create a sample form with the little same kind of structure , the formulas are working fine. Verified the .xsf file not able to trace the issue. The form template has no code and clicked verify formula after adding which displays no error. It's been driving me crazy kindly help and any further information required let me know
  • 07-27-2013 09:20 PM In reply to

    Re: XML based info path form

    Hi Dv028 and welcome!

    I'm not sure I understand your scenario. What is not working? You say formula. Do you mean the xpath fx you are using or are you talking about a rule-action? Is it browser form or filler only? Can you attach the XSN and give us specific steps to reproduce the issue?

    As you know, InfoPath supports imported XSD, and it's certainly possible that there is a namespace issue with yours that requires specific prefix or something, but the InfoPath Designer should let you choose those for both the fx xpath and for the rule-action pairs.

    I'll await further detail.

    Thanks,

    P

    Patrick Halstead
    Project Manager at Qdabra
  • 04-01-2014 12:28 PM In reply to

    • dv028
    • Not Ranked
    • Joined on 07-25-2013
    • Posts 2

    Re: XML based info path form

    Sorry for late response, I worked out a different option to fulfill my business requirement during that time. But again am stuck with the same problem. This is for Infopath 2007 client form(not web form).

    Am not a newbie and have been working with infopath for more than 4 years.

    I will give the explanation my scenario,

    custom XSD 

     <xs:element name="ConceptReviewDocument">
        <xs:complexType>
          <xs:sequence>
           <xs:element name="MainNode">
       <xs:complexType>
        <xs:sequence><xs:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/></xs:sequence>
       </xs:complexType>
       </xs:element> 
        
      <xs:element name="ConceptReview">
              <xs:complexType>
       <xs:sequence>   
         <xs:element name="RecordID" type="xs:string" nillable="false"/>
            <xs:element name="BusinessUnit" type="xs:string" nillable="false"/>
         ........

    once schema is defined I have used convert main datasource and pointed to the file.

     The Bold portion is for adding elements with different namespace, and i have used this before ##any inorder to use contact selector field (as to work for my:person > Displayname, account id etc)..

    Now coming to my problem, i have added a group and 2 fields in the Mainnode group, - New1 group - test feild and -test2 added from IP design mode > right click add field.

    If I add any default expression value or rule or custom code it is not fired for test or for the test2 , i see in manifest.xsn it is defined as below

    <xsf:domEventHandler match="/ConceptReviewDocument/MainNode/my:New1/my:test2">
       <xsf:ruleSetAction ruleSet="ruleSet_288"></xsf:ruleSetAction>
      </xsf:domEventHandler>.........

    <xsf:ruleSet name="ruleSet_288">7645454321
       <xsf:rule caption="Rule 1" isEnabled="yes">
        <xsf:assignmentAction targetField="../my:test" expression="&quot;test212&quot;"></xsf:assignmentAction>
       </xsf:rule>
      </xsf:ruleSet>

    Please help me on this.

    Thanks 

     

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.