Maptitude GISDK Help

SetFieldProtection()

Summary

Changes the read-only status of a field.

 

Syntax

SetFieldProtection(string field_spec, boolean protection_flag)

 

Argument

Contents

field_spec

An input field

protection_flag

The new read-only status of the field

 

Notes

Example

SetFieldProtection("Employee.Salary", "True")

// Salary cannot be changed

SetFieldProtection("Employee.Address","False")

// Address can be edited

 

Error Codes

Error Type

Meaning

Error

The field cannot be set to the specified status, e.g., if the field is the link field in a joined view and the input protection_flag is "False"

NotFound

The input field does not exist or the field specification is ambiguous

 

See Also

Function

Summary

GetFieldProtection()

Gets a string that indicates whether a field is read-only

GetViewReadOnly()

Reports whether a view is read-only

SetViewReadOnly()

Changes the read-only status of a view

 

 

©2025 Caliper Corporation www.caliper.com