I have to give some external partners access to "Upload" files to rollbase. I have a object with a "file-upload"-field and a "autoid"-field. I need to establish a new record for every files uploaded.
How can i do this?
Rest-service (post)?
But can I give the external user a single endpoint for this in rollbase?
Or should I use "Progress Data Catalogs"??
I have established a PDC connected to this object with this URL:
https://www.rollbase.com/rest/jsdo/catalog/TransportBookingBatch.json
I have downloaded the json-file from this catalog, but i'm not sure how the json-file attached to the request should contain.
Can anyone give me a example?
This is the Operation frm the json:
"operations" : [ {
"name" : "create",
"path" : "/create2?output=json&useIds=true&objName=edibatch",
"type" : "create",
"verb" : "post",
"params" : [ {
"name" : "edibatch",
"type" : "REQUEST_BODY",
"xType" : "DATASET"
}, {
"name" : "edibatch",
"type" : "RESPONSE_BODY",
"xType" : "DATASET"
} ]
And the two fields I have to set is this:
"R165440883" : {
"type" : "string",
"title" : "EDI-tjeneste"
},
-> Fixed: "ConfirmedBooking"
"xmlfile" : {
"type" : "string",
"title" : "XML-fil"
}
-> xml-file with the bookingfrom the external partner.
Can anyone give me some answer/tips ???
How about this?
An accompanying portal with a create page type on the UploadedFiles object (that will house the file). Available for unauthenticated users (portal guest).
An after create trigger on UploadedFiles object to create another record for the uploaded file.
Progress Data Catalogs does not support File upload yet. Its planned in next version of Rollbase (Q1 2016).
Cant this be done through Portals ? Expose the Create Page of the object with only File field as input ?
Thank you for this suggestion, but the upload of the files is not a manual job.
If I have 10 files in a directory and want to upload and esablish (save) this records. is there anyway to script this?
[quote user="Anoop Premachandran"]Progress Data Catalogs does not support File upload yet. Its planned in next version of Rollbase (Q1 2016).[/quote]
So I am wondering whether this has been resolved and has been documented somewhere?
Maybe some example available somewhere?