Dialog Box: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to dialog boxes to HTML or TypeScript elements.
PXSmartPanel
The following table shows the correspondence between PXSmartPanel and 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 |
---|---|
PXSmartPanel | Is replaced by the qp-panel tag. |
AutoRepaint
|
Is replaced by the auto-repaint attribute, which indicates
(if set to true) that the system should initiate a callback to the server
with all the updated data. The server then processes the data and shows the
processed data in the dialog box.
|
Caption
|
Is replaced by the caption attribute, which sets the caption
of the dialog box. The caption is localizable.
|
CloseButtonDialogResult | Is replaced by the close-button-dialog-result attribute,
which specifies the dialog result for the Close button of the dialog box.
|
Height | Is replaced by the height attribute, which sets the height
of the dialog box.
|
ID
|
Is replaced by the id attribute, which sets the ID of the
dialog box. Use the key value from ASPX for the
id in HTML if the id and
key in ASPX do not match.
|
Key | Is replaced by the id attribute which sets the id of the dialog box. Use the key value from ASPX for the id in HTML if the id and key in ASPX do not match. This is a requirement to maintain the testability of the UI. |
Width | Is replaced by the width attribute, which sets the width of
the dialog box.
|
PXPanel
The following table shows the correspondence between the PXPanel ASPX element and 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 |
---|---|
PXPanel
|
Is replaced by the footer tag. The footer
tag contains the buttons at the bottom of the dialog box. This tag can contain any
number of qp-button tags.
|
Obsolete ASPX Controls and Properties
The following table lists obsolete ASPX elements that are related to dialog boxes. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties |
---|---|
PXSmartPanel |
|
PXPanel |
|