Zum Hauptinhalt gehen

Exporting Results to XLSX

Kommentare

1 Kommentar

  • James Siebert

    OK, I've solved part of the mystery (how to specify the ToXLSXConversionArgs parameters)

    This input parameter works to convert trailing Decimals to just their significant digits, for the Run Operation activity:

    Operation:  results.convert-to-xlsx
    Operation Parameter: ={features: $featureSet1.featureSet, useFormattedValues: true, numberFormat: '0.00'}

    No more trailing .00000000 on every number in the Excel exports, yay!
    FYI

    Now if I can just figure out to handle the Date Fields, stored as Second values in the Oracle REST Service, and somehow convert them to actual useful Dates -- you know, for humans.

    While this ToXLSXConversionArgs  Input Parameter runs, it does not change the Seconds value:

    ={features: $featureSet1.featureSet, useFormattedValues: true, numberFormat: '0.00', dateFormat: 'DD/MM/YYYY'}

    And trying to shoehorn in the TO_CHAR() Oracle function, throws the error:
    TO_CHAR is not a function.

    When using this Parameter:
    ={features: $featureSet1.featureSet, useFormattedValues: true, numberFormat: '0.00', dateFormat: (TO_CHAR('SALE_DATE', 'YYYY-MM-DD' ))}

    Does anyone know what is the Javascript equivalent to this standard Oracle conversion might be ?

    TO_CHAR( sysdate, 'YYYY-MM-DD' )

    Thanks for your replies

    James

     

     

     

     

     

    2

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.