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

Re: AttachmentViewer Error Handling in HWC app

$
0
0

Hey Midhun,

 

Thank for reply,

 

I tried the same code:

 

function customBeforeReportErrorFromNative(errorString) {

 

                    var screenKey = getCurrentScreen();

// Screen where the error comes

                    if (screenKey == "PDF"){

                              if(errorString.indexOf("Missing%2520required%2520parameter") != -1){

                                  showAlertDialog("There is no attachment available for this order."); // Your custom message.

                                                  }

                              return false;

                    }

                    else{

                              return true;

                    }

}


Viewing all articles
Browse latest Browse all 8459

Trending Articles



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