on 2024 Nov 25 3:56 AM
Our product includes a list of currency codes, some of which are customer-defined and may differ from ISO standards. We want to use our own dictionary table/master table with our own currency code and related symbol to be shown in SAC chart at SAC UI.
I don't know how can I make our own defined currency code and symbol take effect at SAC UI during model define.
We use SAC embedded Lite, and use CDS and java CAP framework to define the analytic models for SAC. I followed by document of SAC CAP Documentation and tried below two approaches to figure out the currency logic behind SAC:
Try1:
I attempted to use SAC's currency feature. I defined a CurrencyCode in the entity with the type String, like this:
CurrencyCode: String;
And then added an annotation on FlightPrice:
@Semantics.amount.currencyCode: CurrencyCode
FlightPrice: Decimal;
Even without defining the currency code's master data/dictionary table, no any symbol of the currency code provided in CAP service at all, the symbol still appears in SAC when displaying FlightPrice in a chart.see below screenshot of SAC UI:
I suspect this is because SAC has an internal dictionary table mapping currency codes to symbols.Is that true?
Try 2:
I tried defining CurrencyCode as a custom currency type AnnaCurrency see below:
and used my own data file, MyCurrencies.csv, like this:
Then I used this custom type in the entity:
CurrencyCode: AnnaCurrency;
And then add the corresponding annotation in analytic model according to the document of SAC CAP Documentation
After testing in SAC, the symbol for AUD still shows as A$, instead of the custom symbol (£) defined in MyCurrencies.csv.
Questions:
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.