Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#830447
Hi!

I was able to call REST API via Ajax script in the dynaform. I would appreciate if someone could teach me on how to get the grid values from the dyanform and post that data in a html table format? Is this possible?

I am going to call the Create Case Note: POST /cases/{app_uid}/note endpoint via Ajax.

Please help.
#830453
Hi PM Team,

I just want to update you on my progress in consuming the API call for the case notes.


$("#postCaseNotes").find("button").click(function(){
var grd = $("#grd_followup_items");
var rows = $("#grd_followup_items").getNumberRows();

for (var i = rows; i <= rows; i++) {
var date_created = grd.getValue(i, 1);
var remarks = grd.getValue(i, 2);
var completed = grd.getValue(i, 3);
var assigned_usr = grd.getText(i, 4);
}

alert(date_created + ' ' + remarks + ' ' + completed + ' '+ assigned_usr);

var note_content = { "Date Created" : date_created, "Remarks" : remarks};

let execute_trigger_url = apiServer + "/cases/" + app_uid + "/note";

$.ajax({
url: execute_trigger_url,
data: {note_content},
type: "PUT",
beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer ' + token);},
success: function(put_data) {
console.log(put_data);
}

})

return true;
});

I get an error:
error Object { code: 404, message: "Not Found" }


Please help.

ICO software script is a pre-made program for crea[…]

A crypto exchange script is a pre-designed softwar[…]

So I recently bought an addmotor Ebike which of co[…]

A crypto casino clone script is a ready-made softw[…]