Class: CustomList
CustomList
new CustomList()
Create a new instance of CustomList
Properties:
| Name | Type | Description |
|---|---|---|
title |
String | title of the CustomList |
author |
User | Contains the author's information. |
updated |
Date | The updated date and time |
project |
Object | CustomList's project |
content |
String | Contains the content data |
contentContentType |
String | Contains content type |
Source: CustomList/CustomList.js, line 34
See:
Methods
create()
Create a new CustomList.
Parameters:
| Name | Type | Description |
|---|---|---|
options.onSuccess |
Resource~onSuccess | a callback function called in case of a success |
options.onFailure |
Resource~onFailure | a callback function called in case of a failure |
options.baseUrl |
String | base URL. If not set the current base URL will be used |
Source: CustomList/CustomList.js, line 105
See:
Example
create a CustomList
var cl = new CustomList();
cl.project.selfUrl = "config/620821136/project/36866";
cl.title = "mySPRcustomList"
cl.content ="eyJsaXN0IjpbeyJ2YWx1ZSI6IlZhbHVlIiwibGFiZWwiOiJMYWJlbCJ9XX0=";
cl.create({
onSuccess : function(){
alert("custom List Created with id = "+cl.id);
}
});
generate_xml()
generate xml to create/update
Parameters:
| Name | Type | Description |
|---|---|---|
options.baseUrl |
String | base URL. If not set the current base URL will be used |
Source: CustomList/CustomList.js, line 201
See:
generateUrl()
Overrides Resource's generateUrl method to return the request url
Source: CustomList/CustomList.js, line 60
See:
loadPreset()
Overrides Resource's loadPreset method.
Source: CustomList/CustomList.js, line 54
See:
loadSet(rObject)
Overrides Resource's loadSet method to set local variables after request.
Parameters:
| Name | Type | Description |
|---|---|---|
rObject |
json | JSON representation of the loaded data. |
Source: CustomList/CustomList.js, line 70
See:
update()
Save a new Custom List.
Parameters:
| Name | Type | Description |
|---|---|---|
options.onSuccess |
Resource~onSuccess | a callback function called in case of a success |
options.onFailure |
Resource~onFailure | a callback function called in case of a failure |
options.baseUrl |
String | base URL. If not set the current base URL will be used |
Source: CustomList/CustomList.js, line 153
See: