Updating a record in collection

127 views
Skip to first unread message

Vinod

unread,
Mar 29, 2016, 10:56:59 AM3/29/16
to Fujitsu RunMyProcess Developer Community
Hi

I getting error ("readyState":4,responseText{\error, :For input string\\\null\\"\\), status:400,statusText: Bad request) when trying to update a record in collection

Below is the code used. I have tried directly setting value and setting from widget. Neither is working out

Request help

Thanks in advance


Vinod


update();

function update()
{
var my_pattern = {};
my_pattern.enquiry_id = "6";
//my_pattern.enquiry_id = id_enquiry_id;
var my_object = {};
my_object.enquity_state="Forwarded";
col_enq.updateMultiCallback(my_pattern ,my_object ,update_ok,update_ko);
//col_enq.updateCallback(my_pattern, my_object, update_ok, update_ko);
}

function update_ok(result)
{
alert("ok " + JSON.stringify(result));
}

function update_ko(result)
{
alert("ko " + JSON.stringify(result));
}

svi...@astrainfotech.com

unread,
Mar 30, 2016, 1:22:31 AM3/30/16
to Fujitsu RunMyProcess Developer Community, svi...@astrainfotech.com
I am able to resolve the issue on my own

Regards

Vinod

Reply all
Reply to author
Forward
0 new messages