HI All.
I am trying to fetch data on the basis of primary key using sup hybrid.
Steps done:
1: created MBO
2: Deployed application on the server
3: Generated Hybrid app api
4: created a html file where i tried to get the data from back-end on the basis of primary key
function deleteDepartment() {
var dep = new Department();
dep.dept_id="2";
department_findByPrimaryKey( dep, "" , function(error)
{alert(error)});
}
Method 1:
hwc.processDataMessage = function
processDataMessage(incomingWorkflowMessage, noUI, loading,
fromActivationFlow, dataType) {
alert(incomingWorkflowMessage);
}
Method 2:
hwc.processDataMessage = function
(incomingWorkflowMessage) {
alert(incomingWorkflowMessage);
}
I tried to use both the method(method 1 and method 2), but control is not going to any of the methods.
Please help..
Also if anyone have sample for sup hybrid app using generated hybrid app api. please provide.
Thanks