Difference between revisions of "Link to QR codes"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
Example:
Example:


   https://omega.tempusserva.dk/qr/encode?http://tempusserva.dk/mediawiki/index.php?title=Link_to_QR_codes
   https://omega.tempusserva.dk/qr/encode?https://wiki.tempusserva.dk/index.php?title=Link_to_QR_codes


You can down the war file [https://www.tempusserva.dk/install/qr.war here] or just use our service.
You can down the war file [https://www.tempusserva.dk/install/qr.war here] or just use our service.
Line 12: Line 12:
Assuming you allready have an interface for a solution, you can add a button to build QR codes containing the tokens for selected elements.
Assuming you allready have an interface for a solution, you can add a button to build QR codes containing the tokens for selected elements.


Sample code:
First create a field of the type '''Button: Script execution'''.
 
Then set up the JS to handle open a window with a code:


   url = "main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilderQR&interface=foobar&SagID=257&DataID=" + DataID;
   url = "main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilderQR&interface=foobar&SagID=257&DataID=" + DataID;

Latest revision as of 12:15, 10 December 2021

You can use our online QR coder to convert links to mobile phone QR codes.

Add the link in question as the request string (after the ?)

Example:

  https://omega.tempusserva.dk/qr/encode?https://wiki.tempusserva.dk/index.php?title=Link_to_QR_codes

You can down the war file here or just use our service.

Transforming access tokens to QR codes

Assuming you allready have an interface for a solution, you can add a button to build QR codes containing the tokens for selected elements.

First create a field of the type Button: Script execution.

Then set up the JS to handle open a window with a code:

 url = "main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilderQR&interface=foobar&SagID=257&DataID=" + DataID;
 window.open(url, "QR kode", "width=300,height=300,menubar=no,resizable=no,toolbar=no,location=no");

In the above you will need to change

  • SagID
  • inteface