Content and Experience

Get Involved. Join the Conversation.

Topic

    chakravarthy elchuri
    calling barcode scanner function
    Topic posted October 9, 2019 by chakravarthy elchuri, tagged APIs 
    14 Views, 2 Comments
    Title:
    calling barcode scanner function
    Summary:
    How to trigger barcode scanner function
    Content:

    Hi,

    Do we have any option that can enable barcode scanner from plug-in button click.

    Thanks,

    Chakravarthy.

     

    Version:
    19A

    Comment

     

    • Igor Polyakov

      You should check AIF - https://docs.oracle.com/en/cloud/paas/content-cloud/developer/develop-custom-actions.html#GUID-865B560A-2D11-432C-88CE-DB3352878518 

    • chakravarthy elchuri

      Hi Igor,

      i have used below event in plug-in to open barcode scanner window. Now its fine.

       

      initProcedureActions: function (element) {
                  $(element).find('.button__send-procedure').click(function (e) {
       
                      var jsonToSend = $(element).find('.json__procedure-new').text().replace(/%%uniqueId%%/g, this.generateCallId());
       
                      this.showProcedureJson(element, 'request', jsonToSend);
                      this._sendPostMessageData(jsonToSend);
                  }.bind(this));
              },