Hiding values in Zoom
Users with the Zoom ability can see the values of fields that are hidden on forms. This recipe will show you how to hide these fields from the Zoom window.
How to do it...
Create a new table from Object Designer.
Add the following fields to the table:
Name
Type
Length
Field No.
Integer
Field
Text
250
Value
Text
250
Table
Text
50
Table No.
Integer
Save and close the table.
Create a new list form using the Form Generation Wizard.
Add the Field and Value fields from the table.
Set the following properties on the form:
Property Name
Value
Caption
Zoom
SourceTableTemporary
Yes
Editable
No
InsertAllowed
No
ModifyAllowed
No
DeleteAllowed
No
SourceTablePlacement
First
Add a global function named
LoadValues
.The function should take in two parameters:
Name
Type
TableNo
Integer
RecRef
RecordRef
The
RecRef
parameter should be passed by reference.Add the following local variables to the function:
Name
Type
Subtype
Field...