How can I set values in specific rows of a repeating table? - InfoPath Dev
in

InfoPath Dev

How can I set values in specific rows of a repeating table?

Last post 12-10-2009 08:10 PM by Jimmy. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-09-2009 02:44 PM

    How can I set values in specific rows of a repeating table?

    Related to this previous post:  http://www.infopathdev.com/forums/t/9316.aspx

    I successfully implemented the solution proposed by "Jimmy" --in the post above--  for info-path based forms. However, I get the following error in the browser compatability section since I am developing a web-based form:

     "The following expression could not be parsed because of a syntax error or because it uses and undefined namespace prefix or unsupported function: xdXDocument:GetDOM("AuditList")/Batch/Method/Field[1]

    Here is the entire XML entry (which works for info-path only forms): 

    <xsf:assignmentAction targetField="xdXDocument:GetDOM(&quot;AuditList&quot;)/Batch/Method/Field[1]" expression="xdDate:Now()"></xsf:assignmentAction>

     I have also Tried this:

    <xsf:assignmentAction targetField="xdXDocument:GetDOM(&quot;AuditList&quot;)/Batch[1]/Method/Field" expression="xdDate:Now()"></xsf:assignmentAction>

     I have also Tried this:

    <xsf:assignmentAction targetField="xdXDocument:GetDOM(&quot;AuditList&quot;)/Batch/Method[1]/Field" expression="xdDate:Now()"></xsf:assignmentAction>

    "AuditList" is an XML file depicting a SharePoint List.

     Is there a web-based soluton for this?

  • 12-10-2009 10:21 AM In reply to

    Re: How can I set values in specific rows of a repeating table?

    So the expression works in the client and not the browser?

    Maybe the command called SetValue in qRules v2.0 would help.

    You might want to reply to the original message so that people who helped you before get a look at the new situation.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 12-10-2009 08:10 PM In reply to

    Re: How can I set values in specific rows of a repeating table?

    I've encountered this situation before, and it seems that this is indeed a limitation of browser-based forms.  I'd recommend giving qRules a try.  It will also save you the trouble of cracking open your XSN to hack the manifest.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.