Difference between revisions of "Link to QR codes"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
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;

Revision as of 18:33, 17 August 2017

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?http://tempusserva.dk/mediawiki/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