Reset Button Fields

When pressed, the Reset button will return all of the fields on a form to their initial values.  This means that if the field has a default value when the form is loaded, it will be returned to that value when the button is pressed.

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

  1. Modify the field 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 that was assigned to the field when it was created will be displayed.  It can be changed, if desired.  

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

  2. In the Type pop-list, select Text.  Choices are:

  1. In the From Database pop-list, select false.

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

  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. In the Display As property, select Reset Button for this field.

  5. 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, and the Use New Window property will be displayed.

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

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

  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 Tool Tip property, enter the data to be displayed when the user hovers over this field with the mouse.  

    Normally used for images, when the user hovers over the field in the browser with the mouse, the data entered here is displayed.  Although offered for all field types, the browser on which the user is running the entity will determine whether the tool tip is displayed for field types other than image.

  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.  Only visible non-database fields have this property.  

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

    You must enter a formula in the Formula property if you set the Is Formula pop-list to
    true.

  9. In the Formula property, enter the formula for this field.  This field is only displayed and must be entered 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 Reset Buttons, this is where the button label should be entered.

  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 this 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 this 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 on this 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 this 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. For fields on QBE blocks, set the Search Characteristics property to the desired setting.  In most cases, this property does not need to be set for button fields.  Choices are:

    No special handling: the entry in this field will be compared with the database value exactly as it was entered here.

    Case Insensitive: the entry in this field will be compared with the database without regard to the case of the entry or the database value when the search is executed.

    Case Insensitive with Wildcards: the entry in this field will be compared with the database without regard to the case of the entry or the database value, and including wildcard objects at the start and end of the entry.

    With Wildcards: the entry in this field will be compared with the database exactly as entered here, but including wildcard objects at the start and end of the entry.

    With Trailing Wildcard: the entry in this field will be compared with the database exactly as entered here, but included a single wildcard object on the end of the entry.

    Case Insensitive with Trailing Wildcard: the entry in this field will be compared with the database without regard to the case of the entry or the database value, and including a single wildcard object on the end of the entry.

  17. 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.

  18. 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.

  19. 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.  

  20. 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.

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

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

  23. 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 On Got Focus property, enter any javascript actions that should be taken when the focus is placed on this field (the cursor is placed in this field or the button is selected).  

  2. In the On Lost Focus property, enter any javascript actions that should be taken when the focus is moved away from this field (the cursor is leaves this field or the button is de-selected).

  3. In the On Mouse Click property, enter an javascript actions that should be taken when the button is clicked with the mouse.  You do not need an entry in this field for the reset to be performed when the button is pressed.

  4. In the Target Columns property, enter the column on the database report block with which the value for this button is associated.  This property is only available for fields on Parameter Forms.  In most cases, this property does not need to be set for button fields on parameter forms.

  5. 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. In the Created on property, the date and time on which the field was created is displayed and cannot be changed.

  3. In the Modified on property, the date and time on which the field was last changed is displayed 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.