Note: Nintex Apps data centers are located in West US and Australia (AUS). In-region processing of Nintex Apps data is only available in these regions.
All code samples below refer to the skuid object.
In the v2 API, this object is not directly accessible when working within a browser console—or when referring to another Nintex Apps page runtime.
If you are experiencing issues, use the skuid.runtime API to target the appropriate page context.
skuid.model
Good news, everyone!
We are currently writing more material for our Javascript API. All of the objects and functions you see below are part of Nintex Apps's public API, even if they aren't fully documented yet. Feel free to experiment while we write about them—and check back later for updates.
skuid.model.Condition()
Properties | Type | Description |
skuid.model.skuid.model.Condition.inactive | boolean | Read-only. A value indicating if the Condition is inactive - meaning it will not be applied to the Model. The default value is defined in the Page Designer, but inactive Conditions can be activated via a skuid.model.Model's activateCondition function. Likewise, an active Condition may be deactivated via the deactivateCondition function. |
skuid.model.skuid.model.Condition.skuid.model.Condition.value | string | For a Condition with the Value Content set to "Single specified value", a value defined in the Page Designer to which the Condition's field will be compared. This value can be changed at run-time (and the Condition reapplied) to enable dynamic Model filtering. |
skuid.model.Condition.values | string array | For a Condition with the Value Content set to "Multiple specified values", an array of values defined in the Page Designer to which the Condition's field will be compared. This value can be changed at run-time (and the Condition reapplied) to enable dynamic Model filtering. |
skuid.model.Condition.field | string | The API name of the field that this condition will affect. |
skuid.model.Field()
skuid.model.Model()
skuid.model.cancel()
skuid.model.getModel(modelId)
Returns the skuid.model.Model registered under the given id.
Shortcut: skuid.$M()
Arguments: | Returns: | Return type: |
---|---|---|
|
The model associated with the given modelId, or undefined if the modelId is not recognized. |
skuid.model.getModelsByService()
Displays a list of models by which connection they are associated with.
Returns: | Return type: |
---|---|
An object containing an array for each connection represented on the page, with all models associated with a connection listed in the respective array. | Object |
skuid.model.getModelsList()
Displays the skuid.model.Model for all models on a page.
Returns: | Return type: |
---|---|
A list of Nintex Apps models on a page. | Array |
skuid.model.getMoreData()
skuid.model.isNewId(id)
Arguments: | Return type: |
---|---|
|
boolean |
skuid.model.list()
Returns: | Return type: |
---|---|
Returns all registered models on the page. The order of the models is not guaranteed. | skuid.model.Model[] |
skuid.model.load()
skuid.model.map()
Returns: | Return type: |
---|---|
A simple object map of Model Ids (as properties) to Models (as values of those properties). | Object |
{
<Model Id> : <skuid.model.Model>
}
skuid.model.save(models,options)
Sends all changes for the given models to the server.
Arguments: | Returns: | Return type: |
---|---|---|
|
The Promise object will be resolved upon completion of the save operation. |
skuid.model.updateData(models,callback)
Updates (or "refreshes") the specified Models with the most up-to-date data from the server.
Arguments: | Returns: | Return type: |
---|---|---|
|
The Promise object will be resolved upon completion of the update operation. |
|