-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfileUploadWidgetTemplate.json
73 lines (73 loc) · 2.53 KB
/
fileUploadWidgetTemplate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"eula": "",
"vendor": "SAP",
"license": "",
"id": "com.sap.fileUploadWidget",
"version": "changeme",
"name": "File Upload Widget",
"newInstancePrefix": "FileUploadWidget",
"description": "A widget that allows users to upload a file and import data into a model",
"imports": [],
"webcomponents": [
{
"kind": "main",
"tag": "com-sap-file-upload-widget",
"url": "changeme",
"integrity": ""
},
{
"kind": "builder",
"tag": "com-sap-file-upload-widget-builder",
"url": "changeme",
"integrity": ""
}
],
"properties": {
"modelId": {
"type": "string",
"description": "The targeted model ID",
"default": ""
},
"importType": {
"type": "string",
"description": "The data import type",
"default": "Update"
},
"mappings": {
"type": "Selection",
"description": "Mapping selection from SAC identifiers to end user's file column names"
},
"defaultValues": {
"type": "Selection",
"description": "Default values to be used when import data into a model and the data is missing a column"
},
"jobSettings": {
"type": "Selection",
"description": "Data Import Service API job settings"
}
},
"events": {
"onSuccess": {
"description": "Triggered upon successful import of all records by the import job."
},
"onPartialSuccess": {
"description": "Triggered when at least one record has failed but the import job has completed."
},
"onFailure": {
"description": "Triggered when no records are imported due to a failure in the import job. Note here that getJobFailedRowCount may not be accurate if jobs are never rejected by the service / an error occurs beforehand."
}
},
"methods": {
"open": {
"description": "Open the Dialog for the DIS Custom Widget"
},
"getTotalJobRowCount": {
"description": "Get the total number of rows attempted to upload to the job in the last run of the widget based on the user's uploaded file. Returns -1 if a job has not ran.",
"returnType": "integer"
},
"getJobFailedRowCount": {
"description": "Get the number of failed rows in the last run of the widget. Note if a user uploads data to a pivoted job this could exceed getTotalJobRowCount since data is unpivoted and that number of rows are returned.",
"returnType": "integer"
}
}
}