Configuring Uploader's "Recall" functionality
In this section you will learn how the Uploader automatically recalls previously mapped and cleaned data making subsequent uploads easier and faster.
Overview
Once the fields and data are initially mapped, subsequent upload logic can be recalled based on the optional Parameterized Fields, "userID" and "userGroup". Which, unlike other parameterized fields, are defined outside the schema.
Here's an example of using the userID parameterized field to populate a field called user_id for every row by pulling the property curUserID from the browser.
There are two applications of Parameterized Fields in this example:
The
curUserIDbecomes the value of theuserIDparameter, which is used to control recall.Also, the
userIDparameter is being used to populate the fielduser_idwithin the uploaded data itself - this is optional.
<script>
Osmos.configure({
userID: window.curUserID,
schema: {
fields: [
{
name: "user_id",
fieldType: 'userID'
},
...
]
},
...
});
</script>Hierarchy of Recall
Last updated
Was this helpful?
