Progress Data Catalog - Upload files / REST

Posted by smartsysISV on 21-Nov-2015 03:20

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?

All Replies

Posted by smartsysISV on 21-Nov-2015 05:37

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?

Posted by smartsysISV on 21-Nov-2015 05:45

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.

Posted by smartsysISV on 30-Nov-2015 06:03

Can anyone give me some answer/tips ???

Posted by Santosh Patel on 30-Nov-2015 07:00

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.

Posted by Anoop Premachandran on 30-Nov-2015 07:01

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 ?

Posted by smartsysISV on 30-Nov-2015 07:28

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?

Posted by Ruben Dröge on 27-Oct-2016 02:54

[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?

This thread is closed