Rahul Agarwal wrote:

and in the page model, the bind expression is -
<xforms:bind nodeset="/Root/ProtectiveDevice/ProtectiveDevicePct" calculate="sum(/Root/ProtectiveDevice/ProtectiveDevicePct)"/>

Rahul,

I am not sure to fully understand the indent of the above bind expression. When using an <xforms:bind nodeset="A" calculate="sum(B)"/>, the XForms engine will place in element A the sum of elements B. So you want A and B to be different. In your case, if I understand what you are trying to do correctly, I would have an instance with (note the additional ProtectiveDevicePctSum element):

    <Root>
        <ProtectiveDevice>
            <ProtectiveDevicePct>20.00</ProtectiveDevicePct>
            <ProtectiveDevicePct>30.00</ProtectiveDevicePct>
            <ProtectiveDevicePct>10.00</ProtectiveDevicePct>
            <ProtectiveDevicePctSum/>
        </ProtectiveDevice>
    </Root>

And a bind expression:

    <xforms:bind
        nodeset="/Root/ProtectiveDevice/ProtectiveDevicePctSum"
        calculate="sum(/Root/ProtectiveDevice/ProtectiveDevicePct)"/>

Alex


------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to