Skip to main content
User interface view state, history, currentXXX values.

Constructors

NSViewStateAgent()

User interface view state, history, currentXXX values.

Methods

DeleteHistory(String,Integer)

Deletes the history element
Returns: CRMScript.Global.Void

GetCurrent(String)

Gets the current (most recent) value of the history list.
Returns: CRMScript.NetServer.NSHistory
This is the item with rank = 1. If no item exists a default value is returned. This is usually the first item in the table representing the history list.
Example:

GetHistories()

Returns all history items that belong to the currently logged in user
Returns: CRMScript.NetServer.NSHistory[] Example:

GetHistoriesByName(String)

Returns the named history list that belong to the currently logged in user
Returns: CRMScript.NetServer.NSHistory[] Example:

GetHistoriesByNames(String[])

Returns the named history lists that belong to the currently logged in user
Returns: CRMScript.NetServer.NSHistory[] Example:

GetHistoriesByNamesAndIds(NSHistoryRequest[])

Returns history data for the named entities and the given IDs, which may not directly correspond to the current history records in the database.<para/>Use this method if you know exactly which items you need, regardless of whether they are in the current history or not.<para/>The history in the database is not changed or even looked at by this method.
Returns: CRMScript.NetServer.NSHistory[] Example:

GetHistory(Integer)

Gets an NSHistory object.
Returns: CRMScript.NetServer.NSHistory Example:

GetHistoryLengthPrefValue()

Gets the logged-on user’s preferred history list length. Will return the system preference if no user preferences are available.
Returns: CRMScript.Global.Integer Example:

GetNextCurrent(String,Integer)

Returns the next current item. If no item exists a default value is returned.
Returns: CRMScript.NetServer.NSHistory
This is usually the first item in the table representing the history list.
Example:

GetPreviousCurrent(String,Integer)

Returns the previous current item. If no item exists a default value is returned.
Returns: CRMScript.NetServer.NSHistory
This is usually the first item in the table representing the history list.
Example:

SaveCurrent(NSHistory)

Saves the current history item.
Returns: CRMScript.NetServer.NSHistory
This history item is saved with Rank = 1, and all the remaining elements rank values are shifted one down.The list is maintained with the max lenght of the History list length preference.
Example:

SaveCurrents(NSHistory[])

Saves the history elements as the current value for their respective lists. If more than one item is submitted for the same list, they are added sequently, meaning that the last one is the most current.
Returns: CRMScript.NetServer.NSHistory[] Example:

SaveHistories(String,NSHistory[])

Replaces the existing history-list for the currently logged-in user. All elements must belong to the same history list. If not they are ignored.
Returns: CRMScript.NetServer.NSHistory[] Example:

SetHistoryLengthPrefValue(Integer)

Sets the logged-on user’s preferred history list length.
Returns: CRMScript.Global.Void