4D v16.3

METHOD Get attribute

Home

 
4D v16.3
METHOD Get attribute

METHOD Get attribute 


 

METHOD Get attribute ( path ; attribType {; *} ) -> Function result 
Parameter Type   Description
path  Text in Path of project method
attribType  Longint in Type of attribute to get
Operator in If passed = command applies to host database when executed from a component (parameter ignored outside of this context)
Function result  Boolean in True = attribute selected; otherwise False

The METHOD Get attribute command returns the value of the attribType attribute for the project method designated by the path parameter. This command only works with project methods. If you pass an invalid path, an error is generated. 

In the attribType parameter, pass a value indicating the type of attribute to get. You can use the following constants, found in the Design Object Access theme:

Constant Type Value Comment
Attribute executed on server Longint 8 Corresponds to the "Execute on server" option
Attribute invisible Longint 1 Corresponds to the "Invisible" option
Attribute published SOAP Longint 3 Corresponds to the "Offered as a Web Service" option
Attribute published SQL Longint 7 Corresponds to the "Available through SQL" option
Attribute published Web Longint 2 Corresponds to the "Available through 4D HTML tags and URLs (4DACTION...)" option
Attribute published WSDL Longint 4 Corresponds to the "Published in WSDL" option
Attribute shared Longint 5 Corresponds to the "Shared by components and host database" option

If the command is executed from a component, it applies by default to the component methods. If you pass the * parameter, it accesses the methods of the host database.

The command returns True when an attribute is selected and False if it is deselected.



See also 

METHOD SET ATTRIBUTE

 
PROPERTIES 

Product: 4D
Theme: Design Object Access
Number: 1169

 
HISTORY 

Created: 4D v13

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)