IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

A question about re-computing the value of attribute

  • 1.  A question about re-computing the value of attribute

    Posted Sat June 05, 2004 12:02 PM

    To each expert:
    My example data is shown as follows:

    <?xml version="1.0" encoding="BIG5"?>


    ??? Books
    ??? Stores
    ??? Time



    ??
    ??? Stores
    ??? Time



    MS SQL???
    ??? Stores
    ??? Time




    I use a XQuery syntax to update this data. I wonder the result is value of attribute @Value multiply a constant.

    My XQuery syntax is shown as follows:
    update
    let $Revenue := input()/CubeFact[@CubeName=“Profit”]/Cell/Measure[@Name=“Revenue”]/@Value
    let $temp := $Revenue * 35
    do (
    replace input()/CubeFact[@CubeName=“Profit”]/Cell/Measure[@Name=“Revenue”]
    with )

    No matter what I define the type of @Value as Integer or int or double or decimal, the Tamino Interactive Interfact always return the message like “<ino:message ino:returnvalue=“7763”>
    <ino:messagetext ino:code=“INOXDE7763”>(cvc-datatype-valid) An invalid value has been found during validation</ino:messagetext>
    ino:messagelineLine 0, Column 0: datatype validation for attribute “Value” of type xs:double failed:</ino:messageline>
    </ino:message>”

    Does anyone could help me to solve this problem.
    Thank you very much.


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: A question about re-computing the value of attribute

    Posted Mon June 07, 2004 12:06 PM

    Hi Vince,

    Please provide the schema for test and tell me what Tamino version you are using.

    Tony


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: A question about re-computing the value of attribute

    Posted Mon June 07, 2004 12:51 PM

    Hi,

    Value=“($temp)”
    denotes the constant string ($temp)

    If you want to refer to the contents of variable $temp, please write
    Value=“{$temp}”

    Regards

    Harald


    #webMethods
    #Tamino
    #API-Management