While Oracle Application Builder Cloud Service provides a no-code development experience, it does provide a JavaScript API that enables more advanced developers to add code that will achieve more advanced functionality in ABCS.

 

Screen Shot 2016-07-07 at 3.17.15 PM.png

 

In the video below we show you how to use the API to add records into a custom object. We read the data from a REST service end-point - making the data that we insert into the object dynamic.

'

If you want to try this on your own then:

 

var eo = Abcs.Entities().findById('project');

$.getJSON("https://api.github.com/users/Oracle/repos", function (result) {

    $.each(result, function (i, field) {

        var operation = Abcs.Operations().create({

            entity: eo,

            record: {

                Name: field.name,

                Description: field.description

            }

        });

        operation.perform().then(function (result) {

            // Insert code you want to perform after record being created

        });

    });

});

//Need to refresh the table

self.projectListArchetype_viewModel.fetch();

resolve();