Quantcast
Channel: SCN : All Content - SAP for Mobile
Viewing all articles
Browse latest Browse all 6147

How to get data from backend in sup hybrid using generated hybrid js api

$
0
0

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


Viewing all articles
Browse latest Browse all 6147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>