The NWFieldType object references the field (class attributes) in NDS. The fields are first added to NDS, and then attached to a specified layout when extending the Schema.
Use this object to:
Identify the field type name in NDS.
Retrieve the syntax(es) of the field.
Identify if the field is removable or single-valued.
Gets the name of the field.
object.Name
String.
Read-only.
This example lists the details of each NDS field type.
Set nwdir=CreateObject ("UCX:NWDIR")
nwdir.FullName = "NDS:\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each FieldType in nwdir.FieldTypes
Print "The name: "&FieldType.Name
Print "The NDS syntaxtype: "&FieldType.SyntaxType
Print "The NDS syntax name: "&FieldType.SyntaxName
Print "The VB script datatype: "FieldType.Type
Print "The field is single-valued:"&FieldType.SingleValued
Print "The field is removable: "&FieldType.Removable
Next
Gives the VBScript data type for the field.
object.Type
Integer.
Read-only.
This example lists the details of each NDS field type.
Set nwdir=CreateObject ("UCX:NWDIR")
nwdir.FullName = "NDS:\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For Each FieldType in nwdir.FieldTypes
Print "The name: "&FieldType.Name
Print "The NDS syntaxtype: "&FieldType.SyntaxType
Print "The NDS syntax name: "&FieldType.SyntaxName
Print "The VB script datatype: "FieldType.Type
Print "The field is single-valued:"&FieldType.SingleValued
Print "The field is removable: "&FieldType.Removable
Next
Returns the NDS syntax type.
object.SyntaxType
Integer.
Read-only.
Could be any of the syntax constants. See Syntax Type Constants for more details.
This example lists the details of each NDS field type.
Set nwdir=CreateObject ("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each FieldType in nwdir.FieldType
Print FieldType.Name
Print FieldType.SyntaxType
Print FieldType.SyntaxName
Print FieldType.Type
Print FieldType.SingleValued
Print FieldType.Removable
Next
Returns the name of the NDS syntax.
object.SyntaxName
String.
Read-only.
This example lists the details of each NDS field type.
Set nwdir=CreateObject ("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For Each FieldType in nwdir.FieldType
Print FieldType.Name
Print FieldType.SyntaxType
Print FieldType.SyntaxName
Print FieldType.Type
Print FieldType.SingleValued
Print FieldType.Removable
Next
Indicates whether this field is removable or not from the NDS Schema.
object.Removable
Boolean.
Read-only.
This example lists the details of each NDS field type.
Set nwdir=CreateObject ("UCX:NWDIR")
nwdir.FullName = "NDS:\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each FieldType in nwdir.FieldTypes
Print "The name: "&FieldType.Name
Print "The NDS syntaxtype: "&FieldType.SyntaxType
Print "The NDS syntax name: "&FieldType.SyntaxName
Print "The VB script datatype: "FieldType.Type
Print "The field is single-valued:"&FieldType.SingleValued
Print "The field is removable: "&FieldType.Removable
Next
Indicates whether a field of this type can have multiple values or not.
object.SingleValued
Boolean.
Read-only.
TRUE, if this field is a single valued field.
This example lists the details of each NDS field type.
Set nwdir=CreateObject ("UCX:NWDIR")
nwdir.FullName = "NDS:\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each FieldType in nwdir.FieldTypes
Print "The name: "&FieldType.Name
Print "The NDS syntaxtype: "&FieldType.SyntaxType
Print "The NDS syntax name: "&FieldType.SyntaxName
Print "The VB script datatype: "FieldType.Type
Print "The field is single-valued:"&FieldType.SingleValued
Print "The field is removable: "&FieldType.Removable
Next
Indicates whether this field type can be read without read privileges being assigned.
object.PublicRead
Boolean.
Read-only.
TRUE, if this field can be read by all.
This example lists whether the fields types are PublicRead or not.
Sub Test_PublicRead
set nwdir=createobject("UCX:NWDIR")
Set fieldtypes = nwdir.fieldtypes
For Each fieldtype In fieldtypes
Print fieldtype.name &" " &fieldtype.PublicRead
Next
End Sub