Modifying Label Fields

Included in this section:

Database Label Fields

  1. In the Explorer Tree, locate the field that you wish to modify.

  1. Modify 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.

  2. In the Name property, the name assigned to the field when it was created will be displayed.  It can be changed, if desired.

    For fields on parameter forms, the value entered in the Name property will be the name of the global variable set when the button that runs the entity is pressed.  For example, if the name of the field is CUST_NO, the name of the global variable set will be CUST_NO.  Globals are only set for a field when the Target Column property is not defined.

  3. In the Description property, enter a user-defined description for this field.

  4. In the Type pop-list, select the desired field type.  Choices are:

  1. In the From Database pop-list, select true if the field value will be taken from the database.  Select false if the field value will be user-defined.  

    See the Non-Database Label Fields section if this property is set to false.

  2. In the Size property, enter the database character size for this field.  

  3. In the Key Field pop-list, select true if this field is a primary key for the table/view.  Select false if the field is not a primary key for the table/view.

  4. In the From Query pop-list, verify that the correct query block is displayed in this field.  This is the block in which the query includes the column from which the data for this field will be obtained.  It is used in conjunction with the From Column pop-list.  

  5. In the From Column pop-list, verify that the correct column is displayed in this field.  This is the column in the query defined in the From Query property from which the data for this field will be obtained.  The value in this field can be changed to another column from the same query.  

  1. In the Default Value property, if this field will have a default value on New and QBE screens, enter the value here.  See the Default Values for Fields section for more information.  

  1. Set the Required pop-list to true if an entry must be made in this field before the entity can be updated.  Select false if an entry is not required in the field.  

  2. Set the Visible pop-list to true if the field will be displayed on the entity.  Select false if the field will be included on the entity, but not displayed.  

    Data in invisible database fields will update to the database during runtime, as long as the field is included on the block (i.e. the On Edit flag is set to true and the update is occurring in edit mode.

  3. In the Display As property, select Label for this field.

  4. In the Target Column property, for fields on parameter forms, select the block and field on the report that will be restricted by the value entered in this field on the parameter form.  For more information, see the Parameter Forms section.  

    If the block is a QBE block from which a spreadsheet will be generated for the list results, select the block and field on the spreadsheet that will be restricted by the value entered in this field on the QBE block.  For more information, see the Spreadsheet Generation for Query Results section.

  5. If the field is on the database block for a list, and a column selector has been added to the query block, in the Suppress on CSO property, select true or false to indicate whether the field will be included in the column selector.  When set to true, the field will not be included in the column selector for selection and will be displayed or hidden on the list block according to its property settings.  When set to false, the field will be included in the column selector and will be displayed or hidden on the list block according to whether it is selected during the query process.  For more information, see the QBE Column Selector section.

  6. In the Hyperlink To property, enter the linking information for the field.  

    This is also where Database Function Calls and Links between Entities should be entered.  When possible, relative URL's should be entered (/xephr/show/entity) rather than absolute URL's (http://test1.ndsasp.com/xephr/show/entity).  

  1. If the Hyperlink To property contains an entry, in the Hyperlink Scripted pop-list, select true or  false.  

    When this pop-list is set to true, it indicates that the entry in the Hyperlink To property is a script.  If you entered a Database Function Calls or a Link between Entities, this pop-list should be set to true.  

    When this pop-list is set to false, it indicates that the entry in the Hyperlink To property is a direct link and not a script.

  2. If the Hyperlink To property contains an entry and the Hyperlink Scripted property is set to false, in the Use New Window property, if the link in the Hyperlink To field needs to open in a new window, set this pop-list to true.  Otherwise, set the pop-list to false.

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

  4. In the Field Style pop-list, select the style to be used for this field on this block on this screen. If set to (from parent), the default field style for the block will be used.  

  5. In the Display Only pop-list, select true if the data for this field will only be displayed as text on the screen and cannot be modified.  Select false if the data in this field should be displayed as a field.  

  6. In the Editability property, select the setting that determines whether the data in the field will be editable.  

    Always Editable: the data in this field will be displayed in a form field, and can be modified.

    Editable on New Only: the data in this field will be displayed in a form field and can be modified in New mode only.

    Never Editable: the data in this field will be displayed in a form field, but cannot be modified.

  7. In the Format Mask property, select the format mask for this field from the list of pre-defined format masks.  

    Date and Date/Time fields must have a format mask entered.  Format masks can only be applied to date, date/time, and numeric type fields.
    Xephr expects dates returned from the datasource to be in the format defined in the datasource.  The format mask is then applied to the date returned from the datasource.

    For more information, see the Format Masks section.

  8. In the Requests Focus pop-list, if this field is the field in which the cursor should start when the screen opens, select true. Otherwise, select false.  

    Only one field on the block should have this pop-list set to true.  If multiple fields are set to true, the entity generator determines at random the field that is selected first. .  

  9. In the Auto Value Type pop-list, select the desired setting for generating the value for this field.  Auto value generation is only available for key fields on new records with no other default values defined.  Choices are:
    Auto-Number
    Function Generated
    Not automatic
    Sequence Generated

  10. If the Auto Value Type pop-list is set to Function Generated or Sequence Generated, in the Auto Value From field, enter the function or sequence from which the value is generated.

  11. In the On QBE pop-list, select true to include this field on the screen in QBE mode.  Select false to prevent the field from being displayed in QBE mode.

    When this pop-list is grayed out, it indicates that the On QBE pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  12. In the On New pop-list, select true to include this field on the screen in New mode.  Select false to prevent the field from being displayed in New mode.

    When this pop-list is grayed out, it indicates that the On New pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  13. In the On List pop-list, select true to include this field one the screen in List mode.  Select false to prevent the field from being displayed in List mode.

    When this pop-list is grayed out, it indicates that the On List pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  14. In the On Edit pop-list, select true to include this field on the screen in Edit mode.  Select false to prevent the field from being displayed in Edit mode.

    When this pop-list is grayed out, it indicates that the On Edit pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  15. In the X property, enter the location in pixels of the top left corner of this field on the X-axis (horizontal) of the layout screen.  You can change this here, or it will be changed when you move the field with the Designer Tool.

  16. In the Y property, enter the location in pixels of the top left corner of this 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.

  17. In the Y Anchor Type pop-list, select the container for this field.  Choices are Fixed and Relative to Field.

    When set to Fixed, the upper left corner of this field will be placed a fixed number of pixels in relation to the upper left corner of the field's parent.  The number of pixels is defined in the Y field for the block.

    When set to Relative to Field, the upper left corner of this field will be placed a fixed number of pixels from the bottom edge of the specified field defined in the Y Anchor field.

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

  19. In the Width property, enter the width of the field in pixels.

  20. In the Height property, enter the height of the field in pixels.

  21. In the Expand Type pop-list, select the option that best defines how the field will be sized. Choices are Expandable and Fixed No Scroll Bars.

  1. In the Hide If property, enter the conditions under which this field will be hidden.  The field will be hidden 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 field will be displayed.  The field will be displayed when the conditions are met.  When an entry is made in this property, the Hide If property will be hidden.

  1. In the Z Order property, enter the order in which the field will be displayed in comparison with the other fields on the block.  

    Z order affects fields when they overlap one another.  For example, if you had 2 fields of the same size in the same location on the block, one with a Z order of 10, and the other with a Z order of 20, the one with the Z order of 20 will be displayed because it was generated last.

    Z order also affects the order in which the fields are selected when tabbing through fields.  Generally, tabbing through the fields is ordered according to the order in which the fields were output for standard fields such as checkboxes, text fields, links, and might include images and labels depending on the browser .  A Z order of 1 indicates that the cursor should be placed in that field when the page is loaded.  Tabbing from that field will take the cursor to the next highest Z order.  If two fields are assigned the same Z order, their output order in relationship to each other is in effect random.  

    Different browsers may use a different tab order.  Depending on the browser, some field types may or may not be able to be accessed by tabbing, including links, images, and labels.

  2. The Created on property displays the date and time on which this field was created and cannot be changed.

  3. The Modified on property displays the date and time on which this field was last changed, and cannot be modified.

  4. Press the [Save] button to save the changes.

Non-Database Label Fields

  1. In the Explorer Tree, locate the field that you wish to modify.

  1. Modify 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.

  2. In the Name property, the name assigned to the field when it was created will be displayed.  It can be changed, if desired.

    For fields on parameter forms, the value entered in the Name property will be the name of the global variable set when the button that runs the entity is pressed.  For example, if the name of the field is CUST_NO, the name of the global variable set will be CUST_NO.  Globals are only set for a field when the Target Column property is not defined.

  3. In the Description property, enter a user-defined description for this field.

  4. In the Type pop-list, select the desired field type.  Choices are:

  1. In the From Database pop-list, select true if the field value will be taken from the database.  Select false if the field value will be user-defined.  

    See the Database Label Fields section if this property is set to true.

  2. In the Size property, enter the character size for this field.  

  3. In the Default Value property, if this field will have a default value on New and QBE screens, enter the value here.  See the Default Values for Fields section for more information.  

  4. Set the Visible pop-list to true if the field will be displayed on the entity.  Select false if the field will be included on the entity, but not displayed.  

  5. In the Display As property, select Label for this field.

  6. In the Target Column property, for fields on parameter forms, select the block and field on the report that will be restricted by the value entered in this field on the parameter form.  For more information, see the Parameter Forms section.  

    If the block is a QBE block from which a spreadsheet will be generated for the list results, select the block and field on the spreadsheet that will be restricted by the value entered in this field on the QBE block.  For more information, see the Spreadsheet Generation for Query Results section.

  7. In the Hyperlink To property, enter the linking information for the field.  

    This is also where Database Function Calls and Links between Entities should be entered.  When possible, relative URL's should be entered (/xephr/show/entity) rather than absolute URL's (http://test1.ndsasp.com/xephr/show/entity).  

  1. If the Hyperlink To property contains an entry, in the Hyperlink Scripted pop-list, select true or  false.  

    When this pop-list is set to true, it indicates that the entry in the Hyperlink To property is a script.  If you entered a Database Function Calls or a Link between Entities, this pop-list should be set to true.  

    When this pop-list is set to false, it indicates that the entry in the Hyperlink To property is a direct link and not a script.

  2. If the Hyperlink To property contains an entry and the Hyperlink Scripted property is set to false, in the Use New Window property, if the link in the Hyperlink To field needs to open in a new window, set this pop-list to true.  Otherwise, set the pop-list to false.

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

  4. In the Field Style pop-list, select the style to be used for this field on this block on this screen. If set to (from parent), the default field style for the block will be used.  

  5. In the Display Only pop-list, select true if the data for this field will only be displayed as text on the screen and cannot be modified.  Select false if the data in this field should be displayed as a field.  

  6. In the Editability property, select the setting that determines whether the data in the field will be editable.  

    Always Editable: the data in this field will be displayed in a form field, and can be modified.

    Editable on New Only: the data in this field will be displayed in a form field and can be modified in New mode only.

    Never Editable: the data in this field will be displayed in a form field, but cannot be modified.

  7. In the Format Mask property, select the format mask for this field from the list of pre-defined format masks.  

    Date and Date/Time fields must have a format mask entered.  Format masks can only be applied to date, date/time, and numeric type fields.
    Xephr expects dates returned from the datasource to be in the format defined in the datasource.  The format mask is then applied to the date returned from the datasource.

    For more information, see the Format Masks section.

  8. In the Is Formula pop-list, select true if the field contains a formula.  Select false if the field does not contain a formula.    

    When set to true, the Formula property will be displayed and the Contents property will be removed.

  9. In the Formula property, enter the formula for this field.  This field is only displayed when the Is Formula pop-list is set to true.

  10. In the Contents property, if this field will display a value by default, enter the value here.  Only visible non-formula fields have this property.   For Labels, this is the value that will be displayed for the label.  

  11. In the Requests Focus pop-list, if this field is the field in which the cursor should start when the screen opens, select true. Otherwise, select false.  

    Only one field on the block should have this pop-list set to true.  If multiple fields are set to true, the entity generator determines at random the field that is selected first. .  

  12. In the On QBE pop-list, select true to include this field on the screen in QBE mode.  Select false to prevent the field from being displayed in QBE mode.

    When this pop-list is grayed out, it indicates that the On QBE pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  13. In the On New pop-list, select true to include this field on the screen in New mode.  Select false to prevent the field from being displayed in New mode.

    When this pop-list is grayed out, it indicates that the On New pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  14. In the On List pop-list, select true to include this field one the screen in List mode.  Select false to prevent the field from being displayed in List mode.

    When this pop-list is grayed out, it indicates that the On List pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  15. In the On Edit pop-list, select true to include this field on the screen in Edit mode.  Select false to prevent the field from being displayed in Edit mode.

    When this pop-list is grayed out, it indicates that the On Edit pop-list has been set to false at the block level.  It must be set to true at the block level to be able to be changed here.  

  16. In the X property, enter the location in pixels of the top left corner of this field on the X-axis (horizontal) of the layout screen.  You can change this here, or it will be changed when you move the field with the Designer Tool.

  17. In the Y property, enter the location in pixels of the top left corner of this 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.

  18. In the Y Anchor Type pop-list, select the container for this field.  Choices are Fixed and Relative to Field.

    When set to Fixed, the upper left corner of this field will be placed a fixed number of pixels in relation to the upper left corner of the field's parent.  The number of pixels is defined in the Y field for the block.

    When set to Relative to Field, the upper left corner of this field will be placed a fixed number of pixels from the bottom edge of the specified field defined in the Y Anchor field.

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

  20. In the Width property, enter the width of the field in pixels.

  21. In the Height property, enter the height of the field in pixels.

  22. In the Expand Type pop-list, select the option that best defines how the field will be sized. Choices are Expandable and Fixed No Scroll Bars.

  1. In the Hide If property, enter the conditions under which this field will be hidden.  The field will be hidden 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 field will be displayed.  The field will be displayed when the conditions are met.  When an entry is made in this property, the Hide If property will be hidden.

  1. In the Z Order property, enter the order in which the field will be displayed in comparison with the other fields on the block.  

    Z order affects fields when they overlap one another.  For example, if you had 2 fields of the same size in the same location on the block, one with a Z order of 10, and the other with a Z order of 20, the one with the Z order of 20 will be displayed because it was generated last.

    Z order also affects the order in which the fields are selected when tabbing through fields.  Generally, tabbing through the fields is ordered according to the order in which the fields were output for standard fields such as checkboxes, text fields, links, and might include images and labels depending on the browser .  A Z order of 1 indicates that the cursor should be placed in that field when the page is loaded.  Tabbing from that field will take the cursor to the next highest Z order.  If two fields are assigned the same Z order, their output order in relationship to each other is in effect random.  

    Different browsers may use a different tab order.  Depending on the browser, some field types may or may not be able to be accessed by tabbing, including links, images, and labels.

  2. The Created on property displays the date and time on which this field was created and cannot be changed.

  3. The Modified on property displays the date and time on which this field was last changed, and cannot be modified.

  4. Press the [Save] button to save the changes.

Xephr is a registered trademark of NDS Systems, LC.

Copyright © 2007 NDS Systems LC.