on 04-08-2014 8:21 AM
Dear UI5 Gurus,
Can we Implement Electronic/Digital Signatures using SAPUI5? Consider a business scenario which might require this functionality for some sort of auditing purpose based on Production Order Confirmation/Updation.
Thank you in advance!
Regards,
Sai Vellanki.
Hi Sai,
you can have look at Signature Pad · Thomas J Bradley and Signature Pad demo
Refer Capture Signature using HTML5 and iPad - Stack Overflow
with the help of mentioned libraries, you can achieve your requirement.
Meanwhile see this demo example JS Bin - Collaborative JavaScript Debugging</title> <link rel="icon" href="h...
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandrashekhar,
This is very good link for electronic signature. I could integrate it easily.
I have few questions; In signature lib <canvas> is used. Is there any control in SAPUI5 I can use for <canvas>. I have xml views, I am adding the canvas from js controller to <core:HTML id="signature" />.
This way <canvas> is not responsive.
If there is no alternative control in SAPUI5, Is there a control where I can place the canvas from controller which would make canvas responsive without additional coding?
Thanks,
Rashmi
Hi Rashmi,
not sure what you mean by "not responsive"... it should work fine.
A cleaner solution might be to create your own Canvas control, e.g. like this:
http://jsbin.com/nazusimafone/1/edit?html,output
Then it can also be re-used in different places.
Regards
Andreas
Oh, ok, got it.
No there is no UI5 control offering a generic <canvas> which adapts to different sizes.
Well, what kind of responsiveness would you like to achieve? You can start from the example I gave to create your own. One tricky thing with canvas is that it has two different sizes: the painting area size in pixes and the visible element size in the page. So while you could set the css size to 100% width, the horizontal number of pixels in the painting area will be a fixed one and resizing the window will stretch/compress these pixels.
So I guess for a really good solution you'd keep track of all drawn stuff in a separate layer and scale/redraw once the size of the canvas changes significantly. Also keep the aspect ratio stable to avoid distortions.
Regards
Andreas
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.