4D v13.4

METHOD SET ATTRIBUTE

Home

 
4D v13.4
METHOD SET ATTRIBUTE

METHOD SET ATTRIBUTE 


 

METHOD SET ATTRIBUTE ( path ; attribType ; attribValue {; *} )  
Parameter Type   Description
path  Text in Path of project method
attribType  Longint in Type of attribute
attribValue  Boolean in True = select attribute
False = deselect attribute
Operator in If passed = command applies to host database when executed from a component (parameter ignored outside of this context)

The METHOD SET ATTRIBUTE command sets 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 set. 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

Pass True in the attribValue parameter to select the corresponding option and False to deselect it. 

You can execute this command from a component, but in this case, you must pass the * parameter because access to the component code is read-only. If you omit the * parameter in this context, the error -9763 is generated.

 

This command cannot be executed in compiled mode. When it is called in this mode, it will generate the error -9762.

Example  

Selection of the "Shared by components and host database" property for the "Choose dialog" project method:

 METHOD SET ATTRIBUTE("Choose dialog";Attribute Shared;True)

 
PROPERTIES 

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

 
INDEX

Alphabetical list of commands

 
HISTORY 

New
Created: 4D v13

 
SEE ALSO 

Design Object Access
METHOD Get attribute