The popup menu in the model editor (that is, in the Application Tree, the Pages panel, and the Design panel) shows in the current context both the builder that created the selected object and available builders that can modify the selected generated element.
The selections on the menu let you more readily start an appropriate builder. If you right-click a folder or generated element in the Application Tree, a generated element in the Pages panel, or a visual element in the Design panel, you see a popup menu with the following types of selections.
Lets you add a builder call for the element type associated with the selected folder. For example, if the selected folder is Events, you see Create -> Event Declaration. Toggle breakpoint
Enables and disables a breakpoint on the selected generated element. Does not appear if you right-click a folder in the Application Tree. Open "name(builder-name)"
If you right-click the WebApp folder, lets you open the indicated builder call in the model. Typically, this is the builder call that was responsible for the creation of the WebApp folder. Builder Call Operations
These commands are also available in the builder call popup menu in the Outline view.
Opens a builder call and displays the builder call editor page.Disable
Deactivates a builder call. The builder call remains in the list in the Outline view, but the builder that it represents does not operate on the model during regeneration.Delete
Removes a builder call from the list in the Outline view. Show Elements in Application Tree
For the selected builder call, highlights the location of the associated elements in the Application Tree so that you can easily locate them. Convert
Changes a builder call from one type of builder to another type of builder. Multiple choices can appear.
Names of builders appear as separate choices if the system can readily convert to that type of builder or the builders were classified as likely targets for the conversion.Convert to
This menu choice is useful to convert a builder to a similar type of builder that has nearly equivalent inputs. For example, to convert a Button builder to a Link builder, or a Page builder to an Imported Page builder.
Opens the Builder Picker window, in which you can select a builder.
In general, builder conversions should involve builders in the same category. For example, between converting from one type of builder to another within the Pages category or within the Page Elements category. Do not attempt to convert builders that are radically different in nature or design.
Inputs of the original builder are preserved and, where appropriate, intelligently applied to the new builder. For example, the Button Label
input value is applied to the Link Text
input. All inputs of the original builder are added to the new builder call editor.
Runs the builder call editor for the builder type that created the selected element. Open "element-name(builder-modifier)"
Runs the builder call editor for a builder that can modify the selected element. There can be multiple commands for this type of selection. Export HTML For Data Layout
Creates a file that contains the HTML code for the selected generated element. Export Resource Bundle
Generates a .properties file to help you localize user-visible text for display in multiple human languages. If you right-click a page in the Application Tree or in the Pages panel, this command is available. category-name
Add Builder Call
Offers a list of builders in a category of all builders that declare they can modify the type of generated element or of the folder that is selected. There can be multiple categories.
In the submenu for a category, click a builder name to run the builder call editor to create in the model a new builder call that modifies the element.
The categories and list of builders are not exhaustive. Thus, a certain builder might be able to create a particular element, but it would not be on the list because it would not make sense in that context.
The following commands have specialized uses.
Data Field Settings
The following commands are available.
Field or Validation
Right-click a page automation field in the Design panel and click Data Field Settings -> Field or Data Field Settings -> Validation. (The Validation command is available on the menu only for data entry fields.) When you change a setting, click Apply or OK. Hide or Show
If you right-click a column or a field in a form or page, you can use Data Field Settings -> Hide or Data Field Settings -> Show to quickly change its display setting. The command lets you toggle the property that prevents the field or column from being displayed or lets it be displayed. Sort or Remove Sort
If you right-click a column or a field in a form or page, you can use Data Field Settings -> Sort or Data Field Settings -> Remove Sort to quickly change the sort setting. The command lets you toggle the property that allows the field or column to be sorted or prevents it from being sorted.
If the model does not contain a related builder for this form or page, a recommended builder is added to the model. If a related builder resides in the model for this form or page, the related input in that builder is updated with your change.
You can use the Ctrl
key and clicking to select multiple objects of the same type (either field or column) for the command.
In the Design panel, you can select multiple fields to be merged, right-click, and click Merge Fields to merge the fields into the current column. The multiple fields must all be in the same container field. After you fill in the information related to the menu command, the Data Field Merge builder is added to your model and the newly merged columns are displayed. Methods
If you right-click a method in the Application Tree, the following options are available with this command.
Adds a Method builder to your model and fills in the Method Body input with the code of the selected method. This is useful for cases in which you need to add special processing to a method like main. Add your changes and click OK in the builder. The changed method replaces the selected method, which is renamed. The changed method overrides the selected method.Method
Adds a blank Method builder to the builder call list.
Displays the Builder Picker dialog so that you can select a builder call to add to the model.
Parent topic: About the model editor