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:
See:

Methods

create()

Create a new CustomList.
Parameters:
Name Type Argument Description
options.onSuccess Resource~onSuccess a callback function called in case of a success
options.onFailure Resource~onFailure <optional>
a callback function called in case of a failure
options.baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
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 Argument Description
options.baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
See:

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
See:

loadPreset()

Overrides Resource's loadPreset method.
Source:
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:
See:

update()

Save a new Custom List.
Parameters:
Name Type Argument Description
options.onSuccess Resource~onSuccess a callback function called in case of a success
options.onFailure Resource~onFailure <optional>
a callback function called in case of a failure
options.baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
See: