Class NSFavouriteAgent

Agent used for retrieving and setting favorites.

Examples

NSFavouriteAgent agent;
agent.callMethod(arg1, arg2);

Constructors

NSFavouriteAgent()

Agent used for retrieving and setting favorites.

Declaration

NSFavouriteAgent

Examples

NSFavouriteAgent agent;
agent.callMethod(arg1, arg2);

Methods

AddFavourite(String,Integer,Integer,String)

Adds a record in a table as a favorite for an associate

Declaration

Void AddFavourite(String tableName, Integer recordId, Integer associateId, String extraInfo)

Parameters

Type Name Description
String tableName
Integer recordId
Integer associateId
String extraInfo

Returns

Type Description
Void

AddFavourites(String,Integer[],Integer,String)

Adds a list of record IDs as favorites for an associate

Declaration

Void AddFavourites(String tableName, Integer[] recordIds, Integer associateId, String extraInfo)

Parameters

Type Name Description
String tableName
Integer[] recordIds
Integer associateId
String extraInfo

Returns

Type Description
Void

GetFavourites(String,Integer)

Gets all favorites for a table and associate

Declaration

NSFavourite[] GetFavourites(String tableName, Integer associateId)

Parameters

Type Name Description
String tableName
Integer associateId

Returns

Type Description
NSFavourite[]

IsFavourite(String,Integer,Integer)

Checks if a record in a table is a favorite for an associate

Declaration

Bool IsFavourite(String tableName, Integer recordId, Integer associateId)

Parameters

Type Name Description
String tableName
Integer recordId
Integer associateId

Returns

Type Description
Bool

RemoveAllFavourites(String,Integer)

Removes all favorites for a table and associate

Declaration

Void RemoveAllFavourites(String tableName, Integer associateId)

Parameters

Type Name Description
String tableName
Integer associateId

Returns

Type Description
Void

RemoveFavourite(String,Integer,Integer)

Removes favorite for a table, record ID, and associate

Declaration

Void RemoveFavourite(String tableName, Integer recordId, Integer associateId)

Parameters

Type Name Description
String tableName
Integer recordId
Integer associateId

Returns

Type Description
Void

RemoveFavouritesById(Integer[])

Removes favorite using favorite ID

Declaration

Void RemoveFavouritesById(Integer[] favoriteIds)

Parameters

Type Name Description
Integer[] favoriteIds

Returns

Type Description
Void

ToggleFavourite(String,Integer,Integer,String)

Toggles a record in a table as a favorite for an associate

Declaration

Bool ToggleFavourite(String tableName, Integer recordId, Integer associateId, String extraInfo)

Examples

NSFavouriteAgent agent;
String tableName;
Integer recordId;
Integer associateId;
String extraInfo;
Bool res = agent.ToggleFavourite(tableName, recordId, associateId, extraInfo);

Parameters

Type Name Description
String tableName
Integer recordId
Integer associateId
String extraInfo

Returns

Type Description
Bool true if added; false if removed.