Skip to main content

Request Form Control Conversion

Request form controls are converted to request page fields or groups. Label, text box, check box, option button, command button type controls are converted to request page fields, frame type controls are converted to request page groups. Menu button, image, picture box, shape, indicator, tab control, subform, table box and matrix box type controls are not converted to request page elements.

Property Conversion

Label control property conversion

The main label type control conversion rules:

  1. If ParentControl property not defined, then label type control is converted to request page field. Label Caption and CaptionML properties values are transferred to new C/AL text constant Caption and CaptionML properties. C/AL text constant is used in request page field CaptionClass property.
  2. If ParentControl property defined and parent control has a value in CaptionClass property, then label property values are not transferred.
  3. If ParentControl property defined and parent control Caption property has a value, but there is no value in CaptionClass property, then label Caption and CaptionML properties values are transferred to new C/AL text constant which is used in converted parent control field CaptionClass property.
  4. If ParentControl property defined and parent control Caption property has no value, then label Caption and CaptionML properties are transferred to parent control field Caption and CaptionML properties.

List of label control properties which are transferred to RDLC format report field properties:

Request Form Label PropertyRequest Page Field Property
IDID
NameName
XPos-
YPos-
Width-
Height-
HorzGlue-
VertGlue-
VisibleVisible
ParentControl-
InFrame-
InPage-
InColumnHeadingCaption or C/AL text constant Caption property
CaptionMLCaptionML or C/AL text constant CaptionML property
HorzAlign-
VertAlign-
ForeColor-
BackColor-
BackTransparent-
Border-
BorderColor-
BorderStyle-
BorderWidth-
FontName-
FontSize-
FontBoldStyle=Strong
FontItalic-
FontStrikethru-
FontUnderline-
MultiLineMultiLine
PadChar-
LeaderDots-
ToolTipToolTip
ToolTipMLToolTipML
DescriptionDescription
CaptionClassCaptionClass
DataSetFieldName-

Text box control property conversion

Request form text boxes are converted to request page fields.

List of text box control properties which are transferred to RDLC format report field properties:

Request Form Text Box PropertyRequest Page Field Property
IDID
NameName
XPos-
YPos-
Width-
Height-
HorzGlue-
VertGlue-
VisibleVisible
EnabledEnabled
EditableEditable
Focusable-
ParentControl-
InFrame-
InPage-
InColumn-
InMatrix-
InMatrixHeading-
CaptionCaption
CaptionMLCaptionML
HorzAlign-
VertAlign-
ForeColor-
BackColor-
BackTransparent-
Border-
BorderColor-
BorderStyle-
BorderWidth-
FontName-
FontSize-
FontBoldStyle=Strong
FontItalic-
FontStrikethru-
FontUnderline-
MultiLineMultiLine
PadChar-
LeaderDots-
MaxLength-
PasswordText-
AutoEnter-
ToolTipToolTip
ToolTipMLToolTipML
LookupLookup
DrillDownDrillDown
AssistEditAssistEdit
DropDown-
PermanentAssist-
DescriptionDescription
OptionString-
OptionCaptionOptionCaption
OptionCaptionMLOptionCaptionML
DecimalPlacesDecimalPlaces
TitleTitle
MinValueMinValue
MaxValueMaxValue
NotBlankNotBlank
NumericNumeric
CharAllowedCharAllowed
DateFormulaDateFormula
ClosingDatesClosingDates
ValuesAllowedValuesAllowed
NextControl-
ClearOnLookup-
Format-
BlankNumbersBlankNumbers
BlankZeroBlankZero
SignDisplacement-
AutoFormatTypeAutoFormatType
AutoFormatExprAutoFormatExpr
CaptionClassCaptionClass
Divisor-
SourceExprSourceExpr
AutoCalcField-
TableRelationTableRelation
ValidateTableRelation-
LookupFormIDLookupPageID
DrillDownFormIDDrillDownPageID
DataSetFieldName-

Check box control property conversion

Request form check boxes are converted to request page fields.

List of check box control properties which are transferred to RDLC format report field properties:

Request Form Check Box PropertyRequest Page Field Property
IDID
NameName
XPos-
YPos-
Width-
Height-
HorzGlue-
VertGlue-
VisibleVisible
EnabledEnabled
EditableEditable
Focusable-
FocusOnClick-
ParentControl-
InFrame-
InPage-
InColumn-
InMatrix-
InMatrixHeading-
CaptionCaption
CaptionMLCaptionML
ShowCaption-
HorzAlign-
VertAlign-
ForeColor-
BackColor-
BackTransparent-
Border-
FontName-
FontSize-
FontBoldStyle=Strong
FontItalic-
FontStrikethru-
FontUnderline-
BitmapPos-
PushAction-
Bitmap-
ToolTipToolTip
ToolTipMLToolTipML
DescriptionDescription
MinValueMinValue
MaxValueMaxValue
ValuesAllowedValuesAllowed
NextControl-
CaptionClassCaptionClass
SourceExprSourceExpr
AutoCalcField-
UpdateOnAction-
RunObject-
RunFormView-
RunFormLink-
RunFormLinkType-
RunFormOnRec-
RunCommand-

Option button control property conversion

Request form option buttons are converted to request page fields.

List of option button control properties which are transferred to RDLC format report field properties:

Request Form Option Button PropertyRequest Page Field Property
IDID
NameName
XPos-
YPos-
Width-
Height-
HorzGlue-
VertGlue-
VisibleVisible
EnabledEnabled
EditableEditable
Focusable-
FocusOnClick-
ParentControl-
InFrame-
InPage-
InColumn-
InMatrix-
InMatrixHeading-
CaptionCaption
CaptionMLCaptionML
ShowCaption-
HorzAlign-
VertAlign-
ForeColor-
BackColor-
BackTransparent-
Border-
FontName-
FontSize-
FontBoldStyle=Strong
FontItalic-
FontStrikethru-
FontUnderline-
BitmapPos-
PushAction-
Bitmap-
ToolTipToolTip
ToolTipMLToolTipML
DescriptionDescription
MinValueMinValue
MaxValueMaxValue
ValuesAllowedValuesAllowed
NextControl-
OptionValue-
CaptionClassCaptionClass
SourceExprSourceExpr
AutoCalcField-
UpdateOnAction-
RunObject-
RunFormView-
RunFormLink-
RunFormLinkType-
RunFormOnRec-
RunCommand-

Command button control property conversion

Request form command buttons are converted to request page fields.

The main command button conversion rules:

  1. For each command button there is C/AL text constant created with Caption and CaptionML property values transferred. Text constant is used as a request page field SourceExpr.
  2. Each new field created for command button conversion has Editable property value set to FALSE.

List of command button control properties which are transferred to RDLC format report field properties:

Request Form Command Button PropertyRequest Page Field Property
IDID
NameName
XPos-
YPos-
Width-
Height-
HorzGlue-
VertGlue-
VisibleVisible
EnabledEnabled
Focusable-
FocusOnClick-
Default-
Cancel-
ParentControl-
InFrame-
InPage-
CaptionC/AL text constant Caption property
CaptionMLC/AL text constant CaptionML property
ShowCaption-
HorzAlign-
VertAlign-
ForeColor-
BackColor-
BackTransparent-
Border-
FontName-
FontSize-
FontBoldStyle=Strong
FontItalic-
FontStrikethru-
FontUnderline-
BitmapPos-
AutoRepeat-
PushAction-
InvalidActionAppearance-
Bitmap-
Ellipsis-
ToolTipToolTip
ToolTipMLToolTipML
DescriptionDescription
NextControl-
CaptionClass-
UpdateOnAction-
RunObject-
RunFormView-
RunFormLink-
RunFormLinkType-
RunFormOnRec-
RunCommand-

Frame control property conversion

Request form frames are converted to request page groups. All other controls which has frame ID value specified in ParentID property are added to frame group during conversion.

List of frame control properties which are transferred to RDLC format report group properties:

Request Form Frame PropertyRequest Page Group Property
IDID
NameName
XPos-
YPos-
Width-
Height-
HorzGlue-
VertGlue-
VisibleVisible
EnabledEnabled
EditableEditable
Focusable-
ParentControl-
InFrame-
InPage-
CaptionCaption
CaptionMLCaptionML
ShowCaption-
ForeColor-
BackColor-
BackTransparent-
Border-
BorderColor-
BorderStyle-
BorderWidth-
FontName-
FontSize-
FontBold-
FontItalic-
FontStrikethru-
FontUnderline-
TopLineOnly-
ToolTip-
ToolTipML-
DescriptionDescription
CaptionClass-

Trigger

If same trigger exists, code and C/AL local variables from request form control trigger are transferred to proper request page field trigger, otherwise there is new C/AL function created and request from control trigger code and C/AL local variables transferred to it. C/AL function can be executed on some request page trigger or not executed at all if proper trigger does not exists.

There are some different trigger conversion rules applied according to the control type:

  • Label trigger conversion

    Label type control has only one trigger which is converted to C/AL function:

    Label TriggerFunction Name
    OnPush()“SRB_” + ID + “OnPush”
  • Text box trigger conversion

    Text box type control triggers are transferred to proper request page field triggers or to new C/AL functions.

    List of request form text box triggers which are transferred to proper request page field triggers:

    Text Box TriggerRequest Page Field Trigger
    OnValidate()OnValidate()
    OnLookup()OnLookup()
    OnDrillDown()OnDrillDown()
    OnAssistEdit()OnAssistEdit()

    List of request form text box triggers which are transferred to new C/AL functions:

    Text Box TriggerFunction Name
    OnActivate()“SRB_” + ID + “OnActivate”
    OnDeactivate()“SRB_” + ID + “OnDeactivate”
    OnFormat()“SRB_” + ID + “OnFormat” (used in OnAfterGetRecord() trigger after actual OnAfterGetRecord() code)
    OnBeforeInput()“SRB_” + ID + “OnBeforeInput”
    OnInputChange()“SRB_” + ID + “OnInputChange”
    OnAfterInput()“SRB_” + ID + “OnAfterInput”
    OnAfterValidate()“SRB_” + ID + “OnAfterValidate” (used in OnValidate() trigger after actual OnValidate() code)
  • Check box trigger conversion

    Check box type control triggers are transferred to proper request page field triggers or to new C/AL functions.

    List of request form check box triggers which are transferred to proper request page field triggers:

    Check Box TriggerRequest Page Field Trigger
    OnValidate()OnValidate()

    List of request form check box triggers which are transferred to new C/AL functions:

    Check Box TriggerFunction Name
    OnActivate()“SRB_” + ID + “OnActivate”
    OnDeactivate()“SRB_” + ID + “OnDeactivate”
    OnPush()“SRB_” + ID + “OnPush” (used in OnValidate() trigger before actual OnValidate() code)
    OnAfterValidate()“SRB_” + ID + “OnAfterValidate” (used in OnValidate() trigger after actual OnValidate() code)
  • Option button trigger conversion

    Option button type control triggers are transferred to proper request page field triggers or to new C/AL functions.

    List of request form option button triggers which are transferred to proper request page field triggers:

    Option Button TriggerRequest Page Field Trigger
    OnValidate()OnValidate()

    List of request form option button triggers which are transferred to new C/AL functions:

    Option Button TriggerFunction Name
    OnActivate()“SRB_” + ID + “OnActivate”
    OnDeactivate()“SRB_” + ID + “OnDeactivate”
    OnPush()“SRB_” + ID + “OnPush” (used in OnValidate() trigger before actual OnValidate() code)
    OnAfterValidate()“SRB_” + ID + “OnAfterValidate” (used in OnValidate() trigger after actual OnValidate() code)
  • Command button trigger conversion

    Command button type control triggers are converted to C/AL functions:

    Request Form TriggerFunction Name
    OnActivate()“SRB_” + ID + “OnActivate”
    OnDeactivate()“SRB_” + ID + “OnDeactivate”
    OnPush()“SRB_” + ID + “OnPush” (used in OnDrillDown() trigger)