-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qrcode feature #1087
base: master
Are you sure you want to change the base?
Qrcode feature #1087
Conversation
…/birt into qrcode_feature
Prepared QR code for birt releng
New Feature: QR-Code item #984
ATM I am off sick and I try to understand how to add scripting support to an extended item. Does anyone know how this is supposed to work? |
I decided to give up trying to support the usual events (onCreate in particular). But without the ability to use scripting events, I think it is not good enough to meet users' expectations (IMHO this also applies to the RotatedTextItem). Thus I'll withdraw this PR. Anyone who understands the internals of the scripting better than me may try to continue this work. It is possible to create a QR Code without the plugin as follows: The idea is to use a dynamic Image item and Javascript (most of which should go into a separate *.js library, preferrably). The following script should be in a *.js library referenced by the report. The second best solution would be to put it into the
Inside the report, use a dynamic image item referencing an expression like this:
where row["TEXT"] is the text that you want to encode as QR Code. BIRT will automatically detect that the bytes describe a PNG image. |
@hvbtup let's work on this branch. I could not push back to the PR.