![]() |
Infohub JS API
|
An object of class PropertySchema' consists of metadata, an info block and the property schema itself.
ps = { 'info' : 'meta' : 'schema' : }
Public Member Functions | |
| _handle_dep (dep) | |
| _overrideMembers (overrides, obj) | |
| clear () | |
| constructor () | |
| findGroup (grpid) | |
| findPropertyType (typeid) | |
| getAsJson () | |
| getId () | |
| getInfo () | |
| getMeta () | |
| getName () | |
| getPropertytypeList () | |
| getPropertytypeListForQuery () | |
| getPropertyTypes () | |
| getSchema () | |
| getShortId () | |
| restoreSchemaState () | |
| saveSchemaState () | |
| setByJson (json_object) | |
| updateSchemaByDependencies (cb=null, node=null) | |
| _handle_dep | ( | dep | ) |
| _overrideMembers | ( | overrides, | |
| obj ) |
| clear | ( | ) |
| constructor | ( | ) |
| findGroup | ( | grpid | ) |
| {*} | grpid |
| findPropertyType | ( | typeid | ) |
| {*} | typeid |
| getAsJson | ( | ) |
| getId | ( | ) |
| getInfo | ( | ) |
| getMeta | ( | ) |
| getName | ( | ) |
get name
| getPropertytypeList | ( | ) |
Get list of property types as string list.
| getPropertytypeListForQuery | ( | ) |
Get property types from key 'propertytypes' as list of { 'property_type' : '~eq~ ...typeid... ', 'value' : '~notnull'
} to pass it as a parameter to endpoint which creates a queryid.
| getPropertyTypes | ( | ) |
| getSchema | ( | ) |
| getShortId | ( | ) |
| restoreSchemaState | ( | ) |
| saveSchemaState | ( | ) |
Save current schema internally.
The last saved schema can be restored by restoreSchemaState()
| setByJson | ( | json_object | ) |
Set schema by JSON object.
Example:
| {Object} | json_object |
| updateSchemaByDependencies | ( | cb = null, | |
| node = null ) |
Update property members in schema taking dependencies into account.
The current state is saved and can be restored by restoreSchemaState().
| {function} | cb |
| {Object} | node Optional node with properties. By default the values in property list are used. |