components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.description
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.automatic-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.automatic-description
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-react-comment-line1
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-react-comment-line2
const { ppp } = usePowerPortalsPro();
const account = await ppp.retrieveRecordAsync('account', id);
const symbol = account.currency?.symbol; // components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-symbol-comment
const isoCode = account.currency?.isoCode; // components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-iso-comment
const name = account.currency?.name; // components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-name-comment// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-razor-comment
var account = await _powerPortalsProService.RetrieveRecordAsync("account", id);
var symbol = account.Currency?.Symbol; // components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-symbol-comment
var isoCode = account.Currency?.IsoCode; // components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-iso-comment
var name = account.Currency?.Name; // components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-automatic-name-commentcomponents.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.direct-title
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.direct-description
[Inject]
private ICurrencyCache _currencyCache { get; set; } = null!;
protected override async Task OnInitializedAsync()
{
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-direct-lookup-comment
var currency = await _currencyCache.GetAsync(transactionCurrencyId);
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-direct-enumerate-comment
var allCurrencies = await _currencyCache.GetAllAsync();
// components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.snippet-direct-base-comment
var baseCurrency = await _currencyCache.GetBaseCurrencyAsync();
}
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.tip-label
components.PowerPortalsPro.Demo.Client.Customizations.Pages.Services.CurrencyCache.CurrencyCacheDemoPage.tip-server-only
ICurrencyCache Interface
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.methods
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.parameters | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description |
|---|---|---|---|
Get | Guid id | Currency? | 指定された |
GetAll | IReadOnlyDictionary<Guid, Currency> | 組織内で設定されたすべての通貨を、IDでキー化して返します。単体としてロード スナップショット — 辞書を反復する呼び出し者は、 キャッシュは列挙中の更新を行います。 | |
GetAllAsync | CancellationToken token | Task<IReadOnlyDictionary<Guid, Currency>> | 非同期に組織内で設定されたすべての通貨をidでキーで返します。 |
GetAsync | Guid id CancellationToken token | Task<Currency> | 非同期に指定された |
GetBaseCurrency | Currency? | 組織の基本通貨は | |
GetBaseCurrencyAsync | CancellationToken token | Task<Currency> | 組織の基本通貨を非同期で返還します。 |
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
Getcomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.parameters:
Guid id
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
Currency?
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
指定されたトランザクション通貨 IDで通貨を返す、または Dataverseに一致するレコードが存在しない場合にnullとなります。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
GetAllcomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
IReadOnlyDictionary<Guid, Currency>
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
組織内で設定されたすべての通貨を、IDでキー化して返します。単体としてロード スナップショット — 辞書を反復する呼び出し者は、 キャッシュは列挙中の更新を行います。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
GetAllAsynccomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.parameters:
CancellationToken token
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
Task<IReadOnlyDictionary<Guid, Currency>>
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
非同期に組織内で設定されたすべての通貨をidでキーで返します。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
GetAsynccomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.parameters:
Guid id
CancellationToken token
CancellationToken token
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
Task<Currency>
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
非同期に指定された transactioncurrencyid で通貨を返します。 または一致するレコードが存在しない場合は null となります。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
GetBaseCurrencycomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
Currency?
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
組織の基本通貨は organization.basecurrencyid から解決されました。 transactioncurrencyid がnullのレコードのフォールバックとして使用される — マルチ通貨に全く関与していないテーブルに典型的なことです。返還 組織の記録が解決できない場合(それも同様に)は null となります より深いDataverse接続性の問題を示しています)。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
GetBaseCurrencyAsynccomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.parameters:
CancellationToken token
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
Task<Currency>
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
組織の基本通貨を非同期で返還します。
Currency components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.class
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.properties
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.default | components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description |
|---|---|---|---|
ExchangeRate | decimal | 1 | 組織の基準通貨に対する為替レートからの為 |
IsoCode | string | ISO 4217の3文字コード(例: | |
Name | string | localized | |
Precision | int | 2 | 小数点で表示する場所は、 MoneyMetadata.Precisionとは独立して、 これはカラムレベルの精度です。これが通貨レベルのデフォルトです。 |
Symbol | string | Dataverseの表示シンボルは |
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
ExchangeRatecomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
decimal
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.default:
1
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
組織の基準通貨に対する為替レートからの為 替 レートです。 1.0 基礎通貨そのものに対してです。主に診断や高度な表示のために表面化されています シナリオ — エディターはローカルで変換を行いません。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
IsoCodecomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
string
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
ISO 4217の3文字コード(例:USD 、EUR、 JPY )です。読み上げてみろ isocurrencycode 。ARIAラベルや文化認識型フォーマットのバックアップに便利です。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
Namecomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
string
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
localized currencyname (例: US Dollar )から来た通貨名。使用中 ピッカー、ツールチップ、アクセシビリティテキストで。
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
Precisioncomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
int
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.default:
2
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
小数点で表示する場所は、 currencyprecision から提供。2に戻る Dataverseがフィールドをnullから離れるとき。
MoneyMetadata.Precisionとは独立して、 これはカラムレベルの精度です。これが通貨レベルのデフォルトです。components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.name:
Symbolcomponents.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.type:
string
components.PowerPortalsPro.Demo.Client.Customizations.Components.Documentation.ApiDocumentation.description:
Dataverseの表示シンボルは currencysymbol で格納されます — 最大5文字まで、 通常は単一のUnicodeグリフ($ 、 € 、 £ 、 ¥ )ですが、 時折、単一のグリフ形態を持たない通貨用の短い文字列が使われることもあります (フランス 、 kr 、 R$ )または組織固有のカスタム値を。逐語的に表示 エディタ内では — Unicode + font フォールバックがすべてのグリフをカバーします。SVGのサイドカーもありません。
