This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
METHOD GET ATTRIBUTES
|
METHOD GET ATTRIBUTES ( path ; attributes {; *} ) | ||||||||
Parameter | Type | Description | ||||||
path | Text, Text array |
![]() |
Method path(s) | |||||
attributes | Object, Object array |
![]() |
Attribute(s) for selected method(s) | |||||
* | Operator |
![]() |
If passed = command applies to host database when executed from a component (parameter ignored outside of this context) | |||||
The METHOD GET ATTRIBUTES command returns, in attributes, the current value of all attributes for the method(s) specified in the path parameter.
This command only works with project methods. If you pass an invalid path, an error is generated.
In path, you can pass either a text containing a method path, or a text array containing an array of paths. You will need to pass the same kind of parameter (variable or array) in attributes in order to get the appropriate attributes.
In attributes, you pass an object or an array of objects, depending on the kind of parameter passed in path. All the attributes for the method(s) are returned as object properties, with "True"/"False" values for Boolean attributes, and text or additional values if necessary (for example, "scope":"table" for the 4D Mobile property).
If the command is executed from a component, by default it applies to the component methods. If you pass the * parameter, it accesses the methods of the host database.
Compatibility note: The published4DMobile property is deprecated as for 4D v18.
You want to get the attributes of the sendMail project method. You can write:
C_OBJECT($att)
METHOD GET ATTRIBUTES("sendMail";$att)
After execution, $att contains, for example:
{ "invisible":false, "preemptive":"capable", "publishedWeb":false, "publishedSoap":false, "publishedWsdl":false, "shared":false, "publishedSql":false, "executedOnServer":false, "published4DMobile":{ "scope":"table", "table":"Table_1" } }
Product: 4D
Theme: Design Object Access
Number:
1334
Created: 4D v15
Modified: 4D v15 R5
4D Language Reference ( 4D v20 R7)