Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

   In a data entry system, a value displayed by a control can depend on the
   contents of other controls available on the mask. For instance, if numeric
   values and a total are displayed, the total depends on the single numeric
   value. Therefore, if one of the values changes, the total must be updated
   accordingly.

   Even if the system recomputes the new total immediately, the data is not
   displayed until the control is highlighted. While this could be acceptable
   for Get controls, this is not possible with other controls like
   expressions etc, because they are never accessed in edit. The system must
   then be told to redisplay the controls with the most up to date
   information. This operation is called refreshing.

   For this purpose, dBsee provides two special properties for each control
   which are called Refresh group ID and Refreshes group. The first
   contains the identifier of the group to which the control belongs. The
   second property indicates which group is to be refreshed as soon as the
   contents of the control varies.

   Each control can belong to more groups, but refresh only 1. In the above
   example, the total is refreshed, and the numeric values refresh.

   In case that a control belongs to more refresh groups, all group
   identifiers must be entered in the Refresh group ID property, and each
   ID separated by the " - ".

Example:1

   A data entry system handles the Articles (file Art), with edit on the
   price (field PriArt) and discount (Dsct). The discounted price is
   also to be displayed. Therefore, a control is used to display the
   following expression:

   Art->PriArt*(1-(Art->Dsct/100)).

   Each time the price or the discount changes, the expression must be
   recomputed and redisplayed.

   To obtain the functionality, the Refresh group ID of the expression
   control is set to: "UpdPrcDsct". The same value is put in the
   Refreshes group property of the PriArt and Dsct fields.

Note - refresh ID is an identifier that you define.

Example:2

   A data entry handles a set of controls, where control A refreshes
   controls B and C. The B control belongs to group b1 and
   control C belongs to group c1.

   As said before, a control can not refresh more than one group, therefore a
   new group ID must be created, and the both refreshed controls must be
   added to this group. In the example, this group is called a1.

   Control A will then refresh group a1 (Refreshes group set to
   a1), and B and C belong to that group (Refresh group ID
   set to b1-a1 and c1-a1, respectively).

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson