SetObjectProperty
  • 1 Minute to read
  • Dark
    Light
  • PDF

SetObjectProperty

  • Dark
    Light
  • PDF

Article summary

NOTE: Internal Development use only

Sets and unsets object properties.

KeyValue(s)Description
method"SetObjectProperty"Sets and unsets object properties.
name"ObjectName"Required.  Name of object to modify.
property"PropertyName "Property to modify
value"PropertyValue"Value to set
project"ProjectName"Current Project Name


Available Properties:

PropertyValueDescriptionAdditional Properties
"DELETEPROTECT""true"
"false"
If true, object cannot be deleted.
"hideintree""true"
"false"
Shows/Hides listed data objects in project"names": [
"table1.field1",
"table2.field2",
"..."
]

"names":[
"table1.*"
]


Example - Delete Protection

{
    "method": "SetObjectProperty",
    "name": "Customer",
    "propery": "DELETEPROTECT",
    "value": "true",
    "project": "MyDemonstration"
  },


Example - Show/Hide fields

The following sets the list of fields that are to be visible in the tree

{
  "method": "SetObjectProperty",
  "project": "Demo",
  "property": "hideintree",
  "value": false,
  "names": [
    "DATA_S1.address_code",  
    "DATA_S1.zipplus4"
  ]
}
{
  "method": "SetObjectProperty",
  "property": "hideintree",
  "value": true,
  "names": [
    "BikeTripData.*"
  ],
  "project": "CONSUMER_Test1"
}





Was this article helpful?

What's Next