Skip to Content
0
Apr 23, 2021 at 12:01 PM

Scanner Implemented problem - not able to show toast message in onSuccess

202 Views

Hi,

I am trying the implemented Barcarole Scanner in one of my MDK page. I am using BarcodeScannerAction and in onSuccess I am calling BarcodeScanResult.js

BarcodeScanResult.js

export default function BarcodeScanResult(context) {

var actionResult = context.getActionResult('BarcodeScanner');

let pageProxy = context.getPageProxy();

if (actionResult) {

pageProxy.setActionBinding({ 'Result': actionResult.data, });

return context.executeAction('/DemoSampleApp/Actions/ShowScanValueMessage.action');

}

}

ShowScanValueMessage.action is a tostAction

{ "Message": "Scan value is {Result}", "_Type": "Action.Type.ToastMessage" }

But this action is not executing.

Please let me know am I doing anything wrong there.