Hi,

I receive the data in following node structure -

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

In screen's view file, I declared the output field as -
<xforms:output ref="/Root/ProtectiveDevice/ProtectiveDevicePct[1]"/>

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

I used this bind _expression_ to calculate "sum" of some numeric values received in repetitive nodes. But it displays incorrect result. Please tell -
1. Is it an incorrect way to use "sum" function? I tested it with "count" function which works absolutely fine.
2. If my node structure is changed to below one, what should be the correct way of specifying <xforms:output> and <xforms:bind> to achieve the same result?
<Root>
        <ProtectiveDevice>
                <ProtectiveDevicePct>20.00</ProtectiveDevicePct>
        </ProtectiveDevice>
        <ProtectiveDevice>
                <ProtectiveDevicePct>30.00</ProtectiveDevicePct>
        </ProtectiveDevice>
        <ProtectiveDevice>
                <ProtectiveDevicePct>10.00</ProtectiveDevicePct>
        </ProtectiveDevice>
</Root>

Thanks and Regards,
Rahul


----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------



Erik Bruchez <ebruchez
@orbeon.com>

Sent by: orbeon-user-admin

11/15/2004 05:34 PM
Please respond to orbeon-user

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: [orbeon-user] Tamino / logforj problem



Mmhh, I hadn't correctly read the second part of your message. If it
works in that case, you probably in fact HAD the Tamino JAR somewhere,
right?

-Erik

Erik Bruchez wrote:
> Dave,
>
> We do not ship the Tamino API JAR file because we believe we are not
> authorized to. Simply take the Tamino API JAR you had in your previous
> version, and copy it to your WEB-INF/lib directory.
>
> Let us know if that doesn't help.
>
> -Erik
>
> David Sinclair wrote:
>
>> Hi,
>>
>> I just downloaded the latest unstable build of presentation server and
>> am getting a pretty strange problem:  when I try to user the tamino
>> processor I get a no class def found error for TXMLObject: (a class
>> from the Tamino jar):
>>
>> java.lang.NoClassDefFoundError:
>> com.softwareag.tamino.db.api.objectModel.TXMLObject
>>
>> If I replace the new log4j and commons logging jars with those from
>> the stable presentation server release then this does not happen, but
>> the logging events no longer get through to OXF Studio!  I dont see
>> what the connection between the logging jars and Tamino is, but it
>> would seem that something is stopping the tamino jar from being loaded
>> ... any ideas? Dave.



-------------------------------------------------------
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