Question
LTIMindTree
US
Last activity: 4 Jun 2018 2:35 EDT
Open Webcam in a section and take snapshot from the webcam and link it work object
Hi All,
I have a requirement where i need to capture the customer picture using webcam which is initiated by clicking a button on UI. Once the webcam opens and i need to provide another button to take snapshot and the snapshot should be embedded in Correspondence...
Please help me in solving this issue..
i have a HTML code where i can open webcam and take snapshot. But how can i do that in pega?
***Edited by Moderator Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Learning
IN
Hello Vinay,
Thanks for posting your query in PSC.
You can create a non-auto generated section and include your code in that section.
You can create a section normally. Click on the HTML tab and uncheck the Auto-generated HTML checkbox.
Hope this helps.
Thanks,
Hari
LTIMindTree
US
Hello Hari,
Thanks for your reply.
I had already tried the suggested process but the section is not being displayed.
My HTML Code for Webcam..
Hello Hari,
Thanks for your reply.
I had already tried the suggested process but the section is not being displayed.
My HTML Code for Webcam..
Learning
IN
Hello Vinay,
Which version of Pega that you are using at your end.
Thanks,
Hari
LTIMindTree
US
Hi Hari,
I am using Pega 7.3.1
Learning
IN
Hello Vinay,
I have tried the same at my end which is working fine at my end. Kindly follow the steps in attached document.
Thanks,
Hari
-
Pavan Kumar Bejgam
LTIMindTree
US
Hi Harish,
I need some clarification on this "Step-2 : Copy below javascript code and paste it in your userworkform:- "
I did not understand, what is this user workform. Is it the same HTML section or anything else..
Thanks,
Vinay_Sarupuru
Learning
IN
Hello Harish,
Userworkform is an HTML fragment provided by pega to write custom javascript or custom css files. This file will be called whenever the page loads.
Thanks,
Hari.
Singtel
IN
Hi Hari,
Ideally, it should work but as said it's not working try below steps.
1. keep HTML and CSS code in same non-auto generated section
2. Create a JS file keep your JS code into it and call the file in Harness level styles and scripts tab
3. If you put in UserWorkForm it will be applicable to the entire application, As your requirement is specific to single harness so in this case UserWorkForm is not recommended.
-
Geetha Peesari
LTIMindTree
US
Thank you GodavariM,
I will try out this process and let you know .
Learning
IN
Thanks Godavari for the information.
As per Vinay's code I understood that there is body tag which triggers init function. So I suggested userworkform to trigger the function.
LTIMindTree
US
Hi Godavari and Hari,
I had tried all the process but still the code is not working. I am able to get the webcam capture work only in Microsoft Edge browser. I can't even open webcam in other browsers.