Modifying Blocks on Screens

See Also

  1. In the Explorer Tree, locate the object for which you wish to modify a block.  

  1. Expand the screen and select the block that you wish to modify.

  2. Display the block properties.  These will either be displayed in Alphabetical or Logically, depending on the setting of the [Sort Alphabetically/Logically] button.  The following instructions are assuming that the properties are sorted logically.

  3. In the Name property, the name entered during block creating is displayed, and can be changed, if desired.

  4. In the Description property, enter the user-defined description for the block.

  5. In the Parent pop-list, if the parent of this block is another block, select the parent block for this block.  Otherwise, leave this pop-list set to (entity root).

  6. In the Type pop-list, the original setting from the block creation will be displayed, and can be changed, if desired.  The type can be Standard Block, Tab Block, or Chart Block.

  7. If the block is a Chart Block, in the Chart Type pop-list, select the type of chart to be displayed on this block.  See the Chart Types section for more information.

  1. If the block is a Chart Block, in the Top Title property, enter the title to be displayed at the top of the chart.

  2. If the block is a Chart Block, in the Bottom Title property, enter the title to be displayed at the bottom of the chart.

  3. If the block is a Chart Block, in the Left Title property, enter the title to be displayed at the left of the chart.

  4. If the block is a Chart Block, in the Legend pop-list, if you wish to have a legend displayed on the chart, select the location for the legend to be displayed.  Choices are (none), Top, Bottom, Left, or Right.

  5. In the Mutability pop-list, select whether this block can be modified on screens that are created from this template.  This option is ONLY available for template screens.

  1. In the Query Type property, select the type of query that this block will execute against the database.  Choices are Not from Query, Simple Query, and Complex Query.

  1. In the Datasource pop-list, the original value from block creation is displayed, but can be changed, if desired.  Selecting (use default) will allow the screen or template to be used with any datasource, and data brought in will be determined by the screen's or template's datasource.  Not from Query blocks will not have this property.

  2. In the Table property, the original value from block creation is displayed, but can be changed if desired.  Select the desired table/view from which the data will be displayed on this block.  Only Simple Query blocks will have this property.

  3. In the Select Statement property, enter the select statement for your database query, beginning with the word SELECT.  The select statement lists the columns in the table or view from which the data will be returned.  Not from Query blocks will not have this property.  Simple Query blocks will have the data in this property generated automatically, while Complex Query blocks require that the user enter the select statement.

    All columns selected from the database need to be explicitly named.

    Format: SELECT column, column, column, column FROM view
    For example: SELECT item_no, description, stock_um, qty_on_hand FROM item_master_uvw

  4. In the Filters property, enter the additional or overriding filters to restrict the information returned by the select statement for this block, if appropriate.  This is also referred to as the where clause.  The statement begins with the word WHERE.  Not from Query blocks will not have this property.

    Format: WHERE column (comparison) value AND column (comparison) value
    For example: WHERE qty_on_hand > 0 AND stock_um in ('FT','IN')

  1. In the Ordering and Grouping property, enter any code to be executed after the filters, such as the order by or group by.  Not from Query blocks will not have this property.  This property can be entered for both Simple Query and Complex Query types.

    Format: ORDER BY column, column, column
    Format: GROUP BY column, column, column
    For example: ORDER BY description, stock_um, qty_on_hand desc

  2. Set the No Default Where pop-list to determine whether the default where clause will be generated automatically when the entity is generated, or if it will be defined by the user in the Where Clause property.  Not from Query blocks will not have this property.

  1. In the Query for New property, enter the select statement for this block in new mode to set the default value. However, it is recommended in most instances that you set the default values at the field level using the Default Value property of each field instead of setting them here.  Not from Query blocks will not have this property.

  2. Set the Deletable property to determine whether the data on this block can be deleted when the Delete function is performed on the screen.  When this property is set to true, and the Delete function is performed, the record(s) on the block will be deleted from the database.  When this property is set to false, and the Delete function is performed, the record(s) on the block will not be deleted from the database.

  3. In the Max Number of Rows property, enter the maximum number of rows that will be displayed on the screen for this block.  If this property is set to 0, the system wide restriction of 200 rows will be used.  Not from Query blocks will not have this property.

  1. In the Execute Before property, enter any SQL statements that should be executed before the query for this block is executed.  Not from Query blocks will not have this property.

  1. In the Execute After property, enter any SQL statements that should be executed after all rows are returned for this block.  Not from Query blocks will not have this property.

  1. In the Web Service property, select the type of web service for this block.  Other web service properties are determined by the setting of this pop-list.  Only Web Service blocks have this property.  Choices are:

  1. In the Method property, select the appropriate web service method for this web service.  Choices are determined by the Web Service property.  Only Web Service blocks have this property.  

  2. Depending on the Method selected, one or more parameter properties will be displayed.  Enter the appropriate values for the parameters.  Only Web Service blocks have this property.  

  3. Set the On QBE pop-list to true, if this block should be included in QBE mode for this screen.

  4. Set the On New pop-list to true, if this block should be included in New mode for this screen.

  5. Set the On List pop-list to true, if this block should be included in List mode for this screen.

  6. Set the On Edit pop-list to true, if this block should be included in Edit mode for this screen.

  7. Set the List Editable pop-list to true, if this is a List block and the list should be editable. Editable lists allow multiple records to be displayed, entered, and maintained on the same screen in a form.

  8. Set the Display Only pop-list to the desired setting to indicate whether the data on this block be displayed as text only and cannot be modified.  

  1. Set the Editability pop-list to the desired setting to indicate when this block is editable.  

  1. Set the Body Style pop-list to the style to be applied to the body for this block.  If set to (from parent), the style used will be the Body Style from the screen properties.

  2. Set the Field Style pop-list to the style to be applied by default to the fields for this block.  If set to (from parent), the style used will be the Field Style from the screen properties.

  3. Set the Link Style pop-list to the style to be applied to links for this block.  If set to (from parent), the style used will be the Link Style from the screen properties.

  4. In the X property, the location in pixels is displayed for the top left corner of this block or field on the X-axis (horizontal) of the layout screen.  You can change this number manually, or it will be changed when you are altering the layout with the Designer Tool.

  5. In the Y property, the location in pixels is displayed for the top left corner of this block or field on the Y-axis (vertical) of the layout screen.  This value is used in conjunction with the Y Anchor Type setting.  You can change this number manually, or it will be changed when you are altering the layout with the Designer Tool.

  6. In the Y Anchor Type pop-list, select the anchor type for this block.  Choices are Fixed and Relative to Block..

  1. In the Y Anchor property, select the block or field that will be used to determine the location of the block on the Y-axis.  The property is only displayed when the Y Anchor Type pop-list is set to Block or Field.

  2. In the Width property, enter the width for the block in pixels.

  3. In the Height property, enter the height for the block in pixels.

  4. In the Expand Type pop-list, define the size of the block.  Choices are Expandable, Fixed No Scroll Bars, and Fixed with Scroll Bars.

  1. In the Hide If property, enter the conditions under which this block will be hidden.  The field will be visible on the block when the conditions are met.  When an entry is made in this property, the Show If property will be hidden.

  1. In the Show If property, enter the conditions under which this block will be displayed.  The block will be hidden when the conditions are met.  When an entry is made in this property, the Hide If property will be hidden.

  1. In the Show if Empty pop-list, determine whether the block will be displayed when it is empty.  When set to true, the block will be displayed on the screen even when it contains no data.  When set to false, the block will be hidden when it contains no data.

  2. In the Z Order property, enter a number to define the order in which the block will be generated on the entity.  The higher the number, the later the block will be generated.  The Z order is specific to the indention level in the entity tree, and is affected by the Y Anchor and Anchor Type properties.   
    For blocks with a Tab Block as the parent block, this number determines in which order the tabs will be displayed within the tab block.  

  3. In the Commit Order property, enter a number to define the order in which the data in the block will be committed when the record is saved.  The higher the number, the later the block will be saved.

  4. When all changes have been made, press the [Save] button in the Main Toolbar.

  5. Make any layout changes with the Designer Tool.

  6. See the Adding Fields section for more information on adding and editing fields within a block.

See Also

Adding Blocks to Screens

Adding Fields

Property Definitions

Xephr is a registered trademark of NDS Systems, LC.