4D v15

METHOD GET CODE and METHOD SET CODE

Home

 
4D v15
METHOD GET CODE and METHOD SET CODE

METHOD GET CODE and METHOD SET CODE  


 

 

METHOD GET CODE ( path ; code {; *} )
METHOD SET CODE ( path ; code {; *} )

Both the METHOD GET CODE and METHOD SET CODE commands now support new attribute metadata, allowing you to get or set 4D Mobile-related properties. 

A new attribute named "published4DMobile" has been added and can be included in the %attributes line:

  // %attributes = { "published4DMobile": { "table": "aTableName", "scope": "table" } }

The property named "scope" can take the following values: "none", "table", "currentRecord" or "currentSelection".

 

The supported attributes are:

{
    "invisible" : false, // true if visible
    "publishedWeb" : false,  // true if available through 4D tags and URLs
    "publishedSoap": false,  // true if offered as Web Service
    "publishedWsdl": false,  // true if published in WSDL
    "shared" : false,  // true if shared by components and host database
    "publishedSql" : false,  // true if available through SQL
    "executedOnServer" : false, // true if executed on server
    "published4DMobile" : {
        "scope": "table",  // "none" or "table" or "currentRecord" or "currentSelection" 
        "table": "aTableName"  // present if scope is different from "none" 
    }
}

Note: Regarding "published4DMobile" attributes, if the "table" value does not exist or if the "scope" is invalid, these attributes are ignored.



See also 

METHOD GET ATTRIBUTES
METHOD SET ATTRIBUTES

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (standard edition) ( 4D v15)

Inherited from : METHOD GET CODE and METHOD SET CODE ( 4D v15)