Currency: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to the currency control to HTML or TypeScript elements.
PXCurrencyRate
The following table shows the correspondence between the PXCurrencyRate element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXCurrencyRate
|
Use the field tag with control-type="qp-currency" in the
HTML template.
|
DataField
|
Use the name attribute of the field
tag.
|
RateTypeView
|
Use the view.bind property of the field
tag.
Note: The view should be defined in TypeScript and should
implement the ICurrencyInfo interface. |
Obsolete ASPX Controls and Properties
The following table lists the obsolete ASPX elements that are related to the currency control. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties |
---|---|
PXCurrencyRate |
|
CurrencyEditor | The control is no longer supported because the form view is no longer supported
for a table. To define a column with the currency control, use the
qp-currency-selector control.
|