Watching Model 204 fields: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ <span class="f_Para">When the program you are debugging is in a </span><var>Model 204</var><span class="f_Para"> record context, you can view the value of any visible...")
 
No edit summary
Line 4: Line 4:
<span class="f_Para">If a field name is referenced within an expression in an HTML or TEXT block in your code, you can also add it to the </span><var>Watch Window</var><span class="f_Para"> (or display it in a </span><var>Value</var><span class="f_Para"> window) by right clicking the code line that contains it, as described below. </span>
<span class="f_Para">If a field name is referenced within an expression in an HTML or TEXT block in your code, you can also add it to the </span><var>Watch Window</var><span class="f_Para"> (or display it in a </span><var>Value</var><span class="f_Para"> window) by right clicking the code line that contains it, as described below. </span>


<span class="f_Para">In addition, if a multiply occurring field is in a FOR EACH OCCURRENCE loop, you can [[displaying_current_occurrence.html|display its occurrence number]]. You can also display the values of all the fields in the [[display_all_fields_in_rec.html|current record]] or in the [[display_all_fields_in_rec.html#disp_fldgrps|current field group]]. </span>
<span class="f_Para">In addition, if a multiply occurring field is in a FOR EACH OCCURRENCE loop, you can [[Displaying the current occurrence value in an FEO loop|display its occurrence number]]. You can also display the values of all the fields in the [[Displaying all fields in a record|current record]] or in the [[Displaying all fields in a record#Displaying a record's field groups|current field group]]. </span>


=== Adding fields to the Watch Window ===
=== Adding fields to the Watch Window ===
Line 25: Line 25:


'''See Also'''
'''See Also'''
: [[displaying_current_occurrence.html|Displaying the current occurrence value in an FEO loop]]
: [[Displaying the current occurrence value in an FEO loop|Displaying the current occurrence value in an FEO loop]]
: [[display_all_fields_in_rec.html|Displaying all fields in a record]]
: [[Displaying all fields in a record|Displaying all fields in a record]]


[[Category:Debugger Home]]
[[Category:Debugger Home]]

Revision as of 18:46, 10 January 2023

When the program you are debugging is in a Model 204 record context, you can view the value of any visible database field in that record by explicitly adding the field name to the Watch Window. The field name requires a special prefix, as described below.

If a field name is referenced within an expression in an HTML or TEXT block in your code, you can also add it to the Watch Window (or display it in a Value window) by right clicking the code line that contains it, as described below.

In addition, if a multiply occurring field is in a FOR EACH OCCURRENCE loop, you can display its occurrence number. You can also display the values of all the fields in the current record or in the current field group.

Adding fields to the Watch Window

To watch the value of a Model 204 field:

  1. Type its name preceded by F. or f. (for example, f.name) in the Entity name input box.
  2. Click Watch:

watchW2d  

By default, the value of the first occurrence of the field is shown in the Watch Window; however, you may select later occurrences by subscripting the field name. For example: f.name(2) watches and displays the second occurrence of the field name, while f.name is equivalent to specifying f.name(1).

Watching fields that belong to field groups

If you are using the Model 204 field group feature, you can watch or display the value of fields in the current field group by preceding their name by f.

The execution context must be a current field group (that is, within an FEO Fieldgroup loop).

Watching fields specified within HTML or TEXT blocks

You can view the value of a Model 204 field that is specified as an expression within a User Language HTML or TEXT statement block. In such blocks, the Client detects a field name enclosed by opening and closing braces (for example, {FIELDNAME}), and it shows you the field value if you select the Add Watch or Display right click option for a line that contains the expression.

See Also

Displaying the current occurrence value in an FEO loop
Displaying all fields in a record