Upload
Upload[packet]⟹object
creates object of packet key Type, or modifies existing object of packet key Object.
Upload[packets]⟹objects
sequentially creates or modifies the elements of packets.
Details
- Append[myField] -> add a new value to myField.
- Replace[myField] -> remove existing elements of myField, and set myField with the provided data.
- Erase[myField] -> delete a row, row-column pair, or nested list of rows from myField.
- EraseCases[myField] -> delete any element of myField that matches the value.
- The keys for multiple fields must be wrapped in Append or Replace to denote whether to append to that field or replace it entirely.
- Any delayed rules in a packet will be ignored.
- Upload will fail if any fields being modified are specified as rules and are computable fields (see LookupTypeDefinition to investigate field types).
-
BadTransfer Attempted to Transfer to field(s) `1` to `2` in object(s) `3`. Can only Transfer to a Notebook with a link to the Objects field of a LaboratoryNotebook. BigDataField There was an error with big data field `1`: `2`. ComputableField The following field(s) `1` in type(s) `2` at indices `3` are computable, and cannot be uploaded. EmptyName Empty string provided for Name in packets `1`. Please provide the Name field with a unique name of 1 or more characters in length. EraseDimension Erase specification(s) `1` at indices `2` contain rows and columns, but the field(s) `3` are 1 dimensional. ErasePattern Part(s) `1` at indices `2` are not valid erase parts. Erase parts must be specified as a row, row-column pair, or nested list of rows. Error `1` FieldStoragePattern The following field(s) `1` do not match their storage pattern(s) for objects `2` at indices `3`. InvalidOperation The following operation(s) `1` at indices `2` are not valid. Valid operations are in the form Append[field], Replace[field], Erase[field], EraseCases[field], Transfer[Notebook], or field. MissingLinkID The link ID `1` specified in field `2` for object `3` at index `4` is missing its backlink. To create this link do not specify a link ID and Upload will generate one automatically. MissingObject `1` MultipleField The following field(s) `1` are multiple fields and must be specified as Replace[Field], Append[Field] or Erase[Field] for objects `2` at indices `3`. NamedField The following named field(s) `1` for objects `2` at indices `3` require associations. NamedMultipleField The following named field(s) `1` for objects `2` at indices `3` require associations or lists of associations. NameStartsWithId Name in packets starts with id: `1`. Please remove prefix and provide the Name field with a unique name. NonUniqueLinkID `1` NonUniqueName `1` NoObject Fields `1` in change packets at indices `2` are specified as Erase, but did not have Object specified. Cannot erase values from new objects. NoSuchField The following fields(s) `1` are not present in the types `2` at indices `3`. NoSuchType Unknown type(s) `1` at indices `2`. NotAllowed User does not have permission for these changes ObjectsField Change packets at indices `1` specify the Objects field. The Objects field of an Object[LaboratoryNotebook] cannot be modified directly via Upload. PartDoesntExist `1` RepeatLinkID `1` SingleEraseCases The following field(s) `1` in change packets at indices `2` are single fields and do not support EraseCases. SingleEraseField The following field(s) `1` are single non indexed fields, and can not be operated on by Erase for object(s) `2` at indices `3`. TypeNotSpecified The packet(s) at indices `1` must have Type or Object specified in order to modify or create new object.
Input
Output
General Options
Messages
Examples
Basic Examples (5)
Additional Examples (32)
Append a single value to a multiple field:
Boolean fields work and return BooleanP:
Exrpressions get written and read out correctly:
Pre-created Object IDs can be used in indexed multiples:
Prepend a single value to a multiple field:
Returns an empty list when given an empty list:
Erase (6)
A row can be deleted from a Multiple field:
Delete a column from all rows in a named multiple field:
Delete a column from all rows in an IndexedMultiple field:
Delete a specific index in an IndexedSingle field:
Delete from an IndexedMultiple a specific row and column:
Multiple rows can be deleted from a Multiple field: