today:
12
yesterday:
148
Total:
999,148

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
66 INSERT PROCESS admin 2016.04.28 159
65 TAP ( Main & Sub ) / Button 의 Switch admin 2016.04.28 158
64 Delete Message - Are you sure you want to delete this object? admin 2016.04.28 158
63 DELETE PROCESS admin 2016.04.28 157
62 SQL Developer Password change / EXPORT & IMPORT admin 2022.03.18 157
61 JAVA for delete admin 2016.04.28 154
60 MAX admin 2016.04.28 154
59 PHONE NUMBER admin 2016.04.28 152
58 Forgot Oracle username and password, how to retrieve? admin 2022.03.18 151
57 NVL admin 2016.05.19 151
56 CREATE (INSERT) PROCESS admin 2016.04.28 150
55 Field Showing admin 2016.04.01 148
54 wwv_flow_files admin 2016.05.01 147
53 Outer Join with Oracle SQL admin 2016.04.29 147
52 COUNT admin 2016.04.28 145
51 BOOLEAN SAMPLE admin 2016.05.11 144
50 How to Update Oracle XE admin 2018.04.25 137
49 APEX Connect 2016 - David Peake - New Features in Oracle Application Express 5.1 admin 2017.11.25 134
48 Delimiter admin 2016.04.29 133
47 HEAD TITLE (제목)을 조건에 따라 바꾸기 admin 2016.05.03 132