today:
120
yesterday:
191
Total:
998,467

QR Code plugin

admin 2017.11.30 13:44 Views : 1585

QR Code plugin

Self contained QR Code item plugin for the Oracle Application Express.

Plugin simply renders value of the item as a QR code. Users can easily scan the QR code with their smart phones directly from the screen or print the page and use it as a ticket.

QR codes are generated using JavaScript - directly in the browser. Plugin does not depend on any external QR generator service.

Demo: http://apex.oracle.com/pls/apex/f?p=QRDEMO

More about QR codes: http://en.wikipedia.org/wiki/QR_code

Follow @apexindublin

##Installation

  • Import src/item_type_plugin_com_jannavratil_apex_qr.sql into your application
    • There are no associated database objects
    • Javascript library is contained in the plugin (no need to copy .js files onto web server)
  • Create a Page item - select Plug-ins - QR Code Item
  • Set the source value for the item
  • Run the page!

##Plugin attributes QR plugin has following custom component attributes

  • Size: Height and Width of the QR code in pixels - default 200
  • Color: Color of the QR code - default #000000 (black)
  • Background: Background color - default #FFFFFF (white)

For performance and scalability reasons you can also store JavaScript file (src/qrcode.min.js) on your Web Server. You would need to change the "File Prefix" plugin attribute accordingly (e.g. from #PLUGIN_PREFIX# to #IMAGE_PREFIX#).

###Dynamic actions (optional) Dynamic actions can be used to update QR code on the page in a real time. Each QR Code item has a dedicated JavaScript function renderQR_#ITEM_NAME#(newValue).

To update QR code in real time create dynamic action "Ececute JavaScript Code" with following code:

renderQR_#ITEM_NAME#('New Value');

e.g. renderQR_P100_MYQRCODE($x("P100_MYVALUE").value);

###Examples There are three examples in the demo application (examples/qr-code-demo.sql) on page 101:

  • First is the basic use - QR code is updated when page is submitted (Apply button)
  • Second: The QR code is updated each time user changes the value - Dynamic action (Event = Key Release)
  • Third is based on a timer - see Page Source / Execute when Page Loads

##Compatibility

  • Developed with APEX 4.2
  • Tested with following browsers: Firefox, Chrome, IE11, Safari (iPhone)
  • Tested with following QR code scanners: scan.me, RedLaser, Google Authenticator, HDE OTP

##License

  • The MIT License (MIT)
  • See LICENSE-MIT for details
No. Subject Author Date Views
126 ACTION admin 2019.01.11 6454
125 Fundamentals of PL/SQL admin 2016.05.10 2031
» QR Code plugin admin 2017.11.30 1585
123 QR Code plugin Process admin 2017.11.30 962
122 How to Update Oracle XE Version admin 2018.02.23 929
121 GP PRINT admin 2018.05.31 917
120 INSTR admin 2016.05.19 785
119 SELECT last_name FROM admin 2018.12.12 742
118 TREE admin 2016.05.18 722
117 IMP admin 2018.10.08 717
116 JK admin 2019.02.05 700
115 CREATE TABLE admin 2018.09.25 471
114 APEX Password Change admin 2016.08.26 452
113 JavaScript for Member List admin 2016.08.17 427
112 Membership Management admin 2016.06.09 425
111 QRCODE admin 2020.05.25 405
110 control break admin 2016.06.25 388
109 SQL admin 2016.07.15 387
108 DATE Compare admin 2018.05.22 365
107 APEX Web Services Proxy Settings admin 2016.06.07 351