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.
In the Explorer Tree, locate the field that you wish to modify.
Expand the Template Information object, locate the desired template and expand it. Locate the block on which the field exists and expand it. Select the field that you wish to modify and display the Property Sheet for it.
Expand the Group Information object and any sub-groups until you can select the desired entity and expand it. Locate the block on which the field exists and expand it. Select the field that you wish to modify and display the Property Sheet for it.
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.
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.
In the Description property, enter a user-defined description for this field.
In the Type pop-list, select Text. Choices are:
Currency
Date (Only)
Date and Time
Numeric
Text
In the From Database pop-list, select false.
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.
In the Size property, enter the character size for this field.
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.
In the Display As property, select Reset Button for this field.
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).
HREF links and Javascript should always use single quotes ( ' ) instead of double quotes ( " ).
During runtime, the status bar of the browser shows the actual HREF of the link being accessed. This HREF may not be what you wrote here in the property sheet, as this value will go through several transformations to handle "live" data. Most notably, $$BLOCK.FIELD$$ will be translated to what the browser is expecting to see in order to access the requested data. For Internet Explorer 6, this will be something like'"document.forms["BLOCK1"].elements["FIELD"].value '; for another system it could be something completely different.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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. .
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.
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.
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.
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.
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.
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.
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.
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.
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.
In the Width property, enter the width of the field in pixels.
In the Height property, enter the height of the field in pixels.
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.
When set to Expandable, the field will be at least the size of the Width and Height values, but it can be larger and will stretch to fit the contents when the field is generated.
When set to Fixed No Scroll Bars, the field will be the exact size defined using the Width and Height values.
Example: an address block on a report may be fixed size, while the block for the line items on an invoice will be expandable so that all line items will be visible when the report is generated.
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).
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).
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.
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.
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.
Expressions are entered in this field using formulas and are evaluated on the server side.
When the expression entered in this field evaluates to true, the field will be hidden. The evaluation of the expression occurs when the entity is generated, and not when the user is making modifications to fields on the block. (i.e. This does not "watch" user input in a field and dynamically show a field; everything is locked in when the entity is first output).
Example: $$VENDOR.ACTIVE$$ = 'Y'
Hide the field if the value of the active field on the vendor block
is set to Y when the entity is generated.
Example: starts-with( $$CUST_NO$$,
'NDS')
Hide the field only if the customer number starts with NDS.
The code entered in this field can
also include and/or expressions:
And is indicated by two ampersands &&
Or is indicated by two vertical lines ||
Example: ($$XEPHR_ENTITY_NAME$$='MENU')&&($$NEXTMENU$$='MM')
Hide this field if the current entity is the MENU entity and the NEXTMENU
global value is set to MM.
Example: ($$CUST_NO$$='NDS')||($$CUST_NO$$='')
Hide this field is the customer number global is set to NDS, or the
customer number global is null or doesn't exist.
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.
Expressions are entered in this field using formulas and are evaluated on the server side.
When the expression entered in this field evaluates to true, the field will be displayed. The evaluation of the expression occurs when the entity is generated, and not when the user is making modifications to fields on the block. (i.e. This does not "watch" user input in a field and dynamically hide a field; everything is locked in when the entity is first output).
Example: $$VENDOR.ACTIVE$$ = 'N'
The field will be displayed when the value of the active field on the
vendor block is N when the entity is generated.
Example: number( $$ORDER.TOTAL$$)
= 0
Displays the field if the value of the total field on the order block
is zero.
The code entered in this field can
also include and/or expressions:
And is indicated by two ampersands &&
Or is indicated by two vertical lines ||
Example: ($$XEPHR_ENTITY_NAME$$='MENU')&&($$NEXTMENU$$='MM')
Show this field if the current entity is the MENU entity and the NEXTMENU
global value is set to MM.
Example: ($$CUST_NO$$='NDS')||($$CUST_NO$$='')
Show this field is the customer number global is set to NDS, or the
customer number global is null or doesn't exist.
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.
In the Created on property, the date and time on which the field was created is displayed and cannot be changed.
In the Modified on property, the date and time on which the field was last changed is displayed and cannot be modified.
Press the [Save] button to save the changes.
Xephr is a registered trademark of NDS Systems, LC.
Copyright