Pass-through attributes for initializing FieldValue Textbox, Literal and Label controls replaced

In previous versions of Iron Speed Designer, you can customize the initialization of FieldValue textbox, literal, and label controls via the Property dialog’s Initial Value tab.  In Version 7.0, this feature is replaced by the Formula tab in Design Mode.  The Formula tab requires a different set of pass-through attributes.

Migration effects

If an application page was created or modified in V6.2.0 or later, the pass-through attributes are automatically updated by the Migration Wizard.  Pages created in earlier versions will be shown as proforma pages, and the pass-through attributes are not updated until you modify the page in Design Mode.

What you should do

If the page controls are initialized by custom functions not located in the corresponding table control row or record control classes, move them into these classes.  Then modify the formula on the Formula tab.

For example, on previous version, you have added a control called “Firstname” initialized using “Me.Page.GetUsername()”.  Here is the step you need to follow in order to make the control initialize properly:

Step 1:  Move the method, “GetUsername ()” to the corresponding record control or table control row class. 

Step 2:  Go to Design Mode, select the control, “FirstName”

Step 3:  In the Formula tab, select the “Initialize when Showing record” or “Initialize when Editing record” event.

Step 4:  Change the formula from “Me.Page.GetFirstName()” to “<ControlClass>.GetFirstName()” where <ControlClass> is the class name for the table control row or record control.

If moving the method to the table control row or record control class is not appropriate for your application, consider moving it to \Shared\FormulaUtils.cs (.vb).  On the Formula tab, change the formula from “Me.Page.GetFirstName()” to “GetFirstName()”.

See Also

Version 7.0 Application Migration