The NWLayoutDescription object references the layouts (object classes) in the NDS Schema. The layout defines how an entry can be created and stored in NDS, defining the field types associated with each entry.
Use this object to:
Return the type of a field structure.
Return the name of the layout field.
Return the type of a field structure.
Gives the Layout (NDS Class) Name.
object.Name
String.
Read-only.
This example lists all the layouts and the details of each NDS layout.
Set nwdir=CreateObject("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each layout in nwdir.Layouts
Print "The name of the layout: "&Layout.Name
Print "The layout is a container "&Layout.Container
Print "The entries can be created using
NWEntries.Add command"&Layout.Creatable
Print "The layout is removable "&Layout.Removable
Print "The base layout is: "&Layout.BasedOn
Next
Name of the base layout from which this layout has to be derived.
object.BasedOn
String.
Read-write.
This example lists all the layouts and the details of each NDS layout.
Set nwdir=CreateObject("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each layout in nwdir.Layouts
Print "The name of the layout: "&Layout.Name
Print "The layout is a container "&Layout.Container
Print "The entries can be created using
NWEntries.Add command "&Layout.Creatable
Print "The layout is removable "&Layout.Removable
Print "The base layout is: "&Layout.BasedOn
Next
Gives the collection of fields.
object.Fields
NWFieldDescriptions.
Read-only.
This example lists all the layouts and the details of each NDS layout.
Set nwdir=CreateObject("UCX:NWDIR")
nwdir.Login ("User", "Password")
Set Layouts = nwdir.Layouts
’ Display all the fields of user layout
Set userLayout = Layouts.Item ("User")
Set userFields = userlayout.Fields
Print "Total number of Fields in the User Layout: "&UserFields.Count
Identifies if the layout is a container layout.
object.Container
Boolean.
Read-only.
TRUE, if this layout represents a container.
This example lists all the layouts and the details of each NDS layout.
Set nwdir=CreateObject("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each layout in nwdir.Layouts
Print "The name of the layout: "&Layout.Name
Print "The layout is a container "&Layout.Container
Print "The entries can be created using
NWEntries.Add command "&Layout.Creatable
Print "The layout is removable "&Layout.Removable
Print "The base layout is: "&Layout.BasedOn
Next
Returns or sets whether an entry of this layout can be created using NWEntries.Add.
object.Creatable
Boolean.
Read-only.
TRUE, if objects of this layout can be created.
This example lists all the layouts and the details of each NDS layout.
Set nwdir=CreateObject("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each layout in nwdir.Layouts
Print "The name of the layout: "&Layout.Name
Print "The layout is a container "&Layout.Container
Print "The entries can be created using
NWEntries.Add command "&Layout.Creatable
Print "The layout is removable "&Layout.Removable
Print "The base layout is: "&Layout.BasedOn
Next
Specifies whether the current layout can be removed.
object.Removable
Boolean.
Read-only.
TRUE, if this layout can be removed from the NDS Schema.
This example lists all the layouts and the details of each NDS layout.
Set nwdir=CreateObject("UCX:NWDIR")
nwdir.FullName = "NDS\\ACMECorporation\Sales\New York"
nwdir.Login ("Test user", "Test password")
For each layout in nwdir.Layouts
Print "The name of the layout: "&Layout.Name
Print "The layout is a container "&Layout.Container
Print "The entries can be created using
NWEntries.Add command "&Layout.Creatable
Print "The layout is removable "&Layout.Removable
Print "The base layout is: "&Layout.BasedOn
Next