Object sets

An object set represents an unordered collection of objects of a single media type. See media types and Palantir media types for more information.

Foundry

These are media types primarily used for transporting data in Foundry and are backed by Foundry concepts.

Foundry object set

Media type: "application/x-vnd.palantir.rid.object-set.temporary-object-set"

Data shape: string[]

This media type can be used for transporting Foundry object set RIDs on a DataTransfer. See object sets for more information.

Refer to the drag and drop zone tutorial for guidance on how to use this media type to implement drag and drop for your application.

Usage

This media type can be written to a DataTransfer as follows:

Copied!
1 2 3 4 5 const objectSetRids = ["ri.object-set.main.temporary-object-set.XXXXXXXX", "ri.object-set.main.temporary-object-set.YYYYYYYYY"] event.dataTransfer.setData( "application/x-vnd.palantir.rid.object-set.temporary-object-set", JSON.stringify(objectSetRids) );

Examples

If your Workshop section title is made draggable, it becomes a drag zone that adds the object set media type to the drag payload.

Foundry Draggable Workshop Section Title

This drag payload can then be dropped onto a Vertex graph.

Foundry Vertex Graph