Wizard: Conversion from ASPX to HTML and TypeScript

The following tables will help you to convert the ASPX elements that are related to the wizard control to HTML or TypeScript elements.

PXWizard

The following table shows the correspondence between the PXWizard 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
PXWizard
<px:PXWizard 
  ID="PXWizard1" runat="server" 
  Width="400" Height="240" 
  DataMember="PreloadFilter"
  SkinID="Flat">
Use the qp-wizard tag in HTML.
<qp-wizard 
  id="wizardBudgetArticles" 
  config.bind="wizardConfig">
ID
<px:PXWizard ID="PXWizard1">
Use the id property of the qp-wizard tag.
<qp-wizard 
  id="wizardBudgetArticles">
DataMember
<px:PXWizard 
  DataMember="PreloadFilter">
Instead of specifying a single view for the whole wizard, specify views for the controls in each step of the wizard—that is, the qp-tab tags.
<qp-tab ...>
  <qp-template>
    <qp-fieldset ... view.bind="PreloadFilter">
    </qp-fieldset>
  </qp-tempalte>
</qp-tab>

NextCommand, PrevCommand, CancelCommand, and SaveCommand

The following table shows the correspondence between the actions associated with buttons (NextCommand, PrevCommand, CancelCommand, and SaveCommand) 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
  • NextCommand
  • PrevCommand
  • CancelCommand
  • SaveCommand
<NextCommand 
  Target="ds" Command="wNext" />
To override the standard actions, do the following:
  1. In TypeScript, map the actions defined in the graph.
  2. Define a property that implements the IWizardConfig interface, and specify the action in the following properties of the IWizardConfig interface:
    • nextCommand
    • prevCommand
    • cancelCommand
    • saveCommand
    wizardConfig: IWizardConfig = {
      nextCommand: "wizardNext"
    };
  3. In HTML, specify the configuration property in the config.bind attribute of the qp-wizard tag.
    <qp-wizard 
      config.bind="wizardConfig">

Obsolete ASPX Controls and Properties

The following table lists the obsolete ASPX elements that are related to the wizard control. You do not need to replace these ASPX elements with any HTML or TypeScript elements.

ASPX Control Properties
PXWizard
  • runat
  • SkinID
Pages The entire control is obsolete. The steps of the wizard are defined by a set of qp-tab tags.
PXWizardPage The entire control is obsolete. For each step of the wizard, use the qp-tab tag.
  • NextCommand
  • PrevCommand
  • CancelCommand
  • SaveCommand
Target