Mashup API

Use

The client-side Mashup API facilitates the use of the Enterprise Portal Client Framework (EPCF) eventing mechanism for the implementation of connections between content items in a page.

For more information, see Client-Side Eventing .

getEventData()

Retrieves a JavaScript object through which a source iView can pass parameters to target iViews.

Parameters

None

Return Value

JavaScript object

EventData.setID(ID)

Stores an iView ID in the EventData object

Parameters

ID - iView ID

Return Value

None

EventData.setPortID(portID)

Stores a port ID in the EventData object

Parameters

portID - port ID as defined in ports.xml

Return Value

None

EventData.addData(key,value)

Stores a parameter name and value in the EventData object

Parameters

key - parameter's name as defined in ports.xml; value - parameter's value

Return Value

None

EventData.toString()

Retrieves a string representation of the EventData object

Parameters

None

Return Value

String value of the EventData object in JSON format