Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: Empty response HWC

$
0
0

Are you getting data when you do a preview of MBO ?

Help me understand what do you mean by  1. for HWC approach, while generating deploy package, do we need to specify MBO package details?

To deploy the MBO package right click on the project and select "Deploy Project" and to generate hybrid app from the screen designer right click and choose "Generate Hybrid App".

 

Can you try below code to find whether the data after sync is empty or not.

hwc.processDataMessage = function (incomingDataMessageValue) {

var currentScreenKey = hwc.getCurrentScreen();

if(currentScreenKey == "Start"){

  var mvc = incomingDataMessage.getValues();

  if(mvc){

  // Checking whether MBO is empty or not.

  var Test = mvc.getData("List");//List is the MBO name

  var firstCust = Test.value[0];

  if(typeof firstCust == 'undefined'){

  alert("Empty Data");

 

 

  }else{

alert("Has Data");

}

}

 

Provide complete details of the steps you followed.

 

Midhun VP


Viewing all articles
Browse latest Browse all 8065

Trending Articles



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