Skip to content
pCon.configurator onlineDocumentation
Esc
↑↓navigate↵open⌘Jpreview
On this page

setItemAppData

Synopsis

void setItemAppData(SessionId sessionId,
    BItemId itemId,
    string appKey,
    string[]  data)
throws BasketServiceFault;

See also: SessionId, BItemId, BasketServiceFault

The setItemAppData operation is used to attach application-specific (or client-specific) data to a basket item. This data can be accessed using the getItemAppData (§getItemAppData) operation and is part of the project file saved and loaded by the saveSession (§saveSession) and loadSession (§loadSession) operations. For more information, see §Application-Specific Data.

The itemId parameter must identify a basket item that is part of the basket item tree maintained by the basket service for the session identified by the sessionId parameter.

A BasketServiceFault is returned if one of the following conditions occurs:

  • The sessionId parameter is not a valid string representation of an UUID or does not represent an open session.

  • The itemId parameter does not represent an UUID.

  • The itemId parameter does not identify a basket item.

  • One of the elements of data contains an invalid location path, or the location path is not followed by an equals sign (=).