tag:blogger.com,1999:blog-6140199022860280334.post3810998272702579892..comments2024-03-29T06:37:56.706+00:00Comments on Bob Buzzard Blog: Reading QR Codes in Salesforce1Bob Buzzardhttp://www.blogger.com/profile/07815472992351343395noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-6140199022860280334.post-8593891849791223162020-03-13T13:02:45.406+00:002020-03-13T13:02:45.406+00:00The content of the QR code is stored in a variable...The content of the QR code is stored in a variable named 'a' - my stuff then navigates to the object or URL - you would need to take that 'a', store that in a record and then save it.Bob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-7836571995854945732020-03-10T06:17:05.960+00:002020-03-10T06:17:05.960+00:00Hi Bob. Thank you for this article. I have one que...Hi Bob. Thank you for this article. I have one question after decoding I need to save the value in Particular field, how this can be achieved?<br /><br />Thanks in advance. Sindhuhttps://www.blogger.com/profile/13937226686059904308noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-89635530969952351752018-11-06T12:18:15.242+00:002018-11-06T12:18:15.242+00:00This comment has been removed by a blog administrator.akhilapriya404https://www.blogger.com/profile/10222629842767638735noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-1805654182637673122018-11-06T12:15:07.357+00:002018-11-06T12:15:07.357+00:00This comment has been removed by a blog administrator.akhilapriya404https://www.blogger.com/profile/10222629842767638735noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-84825117335942267452017-07-24T16:38:30.420+01:002017-07-24T16:38:30.420+01:00Hi Bob. Thank you for the tutorial. Its amazing. M...Hi Bob. Thank you for the tutorial. Its amazing. May I know where did you add the VF page button? was it on the home page component?Pavanhttps://www.blogger.com/profile/17616925276588571737noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-39390742966816738462017-04-27T10:42:46.967+01:002017-04-27T10:42:46.967+01:00hi All,
I am also getting the following error aft...hi All,<br /><br />I am also getting the following error after I uploaded QR code:<br /><br />Error - ReferenceError: qrcode is not defined.Niranjan Chakankarhttps://www.blogger.com/profile/04987144357287993680noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-43953244919986691702015-06-18T02:21:00.280+01:002015-06-18T02:21:00.280+01:00hi All,
I am also getting the following error aft...hi All,<br /><br />I am also getting the following error after I uploaded QR code:<br /><br />Error - ReferenceError: qrcode is not defined.Pardeephttps://www.blogger.com/profile/05172137881843043569noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-79050619082527095412015-06-18T01:13:39.303+01:002015-06-18T01:13:39.303+01:00hi Bob,
Is there any way using this code, i can s...hi Bob,<br /><br />Is there any way using this code, i can scan the image and get the corresponding Id for that.<br /><br />Thank you<br />Regards,<br />Paddy Pardeephttps://www.blogger.com/profile/05172137881843043569noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-24677294230284012362015-06-12T04:57:35.650+01:002015-06-12T04:57:35.650+01:00Its huge pain. Still can't able to solve it. I...Its huge pain. Still can't able to solve it. In android can't able to take picture using mobile camera. Any solutions for it?Vetriselvan Manoharanhttps://www.blogger.com/profile/11499346249694603380noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-64712562720744062662014-06-19T12:41:57.456+01:002014-06-19T12:41:57.456+01:00Wow! Nice information. There is wonderful on "...Wow! Nice information. There is wonderful on <b>"Reading QR Codes in Salesforce1"</b>. I am intimidated by the value of in progression on this website. There are a lot of excellent assets here. Definitely I will visit this place again soon. <br />I think, Today, Quick Response Codes can be a lot more attractive and a lot more useful with the addition of image tools like logos, colors, and photographs.<br />Here is some helpful information about <a href="http://barcode-generator.us/1dbarcodes.html" rel="nofollow">QR Codes</a>.Anonymoushttps://www.blogger.com/profile/12035184008727883290noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-82138576315732637642014-05-28T20:23:15.428+01:002014-05-28T20:23:15.428+01:00This was great Bob!! Thank you!
I created an ape...This was great Bob!! Thank you!<br /><br />I created an apex class to accept a serial number from the QR scanner and return the record ID:<br /><br />public with sharing class snlookup {<br />String sn= ApexPages.currentPage().getParameters().get('sn');<br /> public ApexPages.StandardSetController setCon {<br /> get {<br /> if(setCon == null) {<br /> setCon = new ApexPages.StandardSetController(Database.getQueryLocator([select SN__c, name, Id from unit__c WHERE SN__c = :sn]));<br /> }<br /> return setCon;<br /> }<br /> set;<br /> }<br /> public List getunits() {<br /> return (List) setCon.getRecords();<br /> }<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-84948843204346109412014-05-06T14:28:13.521+01:002014-05-06T14:28:13.521+01:00Hello Bob,
Nice tutorial.
I was able to decode QR...Hello Bob,<br /><br />Nice tutorial.<br />I was able to decode QR codes in iPhone by resizing the photo taken from the iPhone.<br /><br />Million Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-58840615555133865552014-04-28T08:29:26.922+01:002014-04-28T08:29:26.922+01:00Hi Bob,
How can i access mobile contacts from the...Hi Bob,<br /><br />How can i access mobile contacts from the Salesforce1 app.<br />I tried using cordova, but it didn't work.<br /><br />navigator.contacts.find(["displayName"], function(contacts){<br /> alert('success'+contacts);<br /> }, function(){<br /> alert('failure');<br /> }, {});<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/11168965205361087436noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-85227902682086595562014-04-11T17:21:13.055+01:002014-04-11T17:21:13.055+01:00Hi Bob!
Thank you for great article.
I think a ...Hi Bob! <br /><br />Thank you for great article.<br /><br />I think a way when we take a picture and than trying to decode it (in browser by JS or on any server) it is not good way initially. <br /><br />We should integrate Zxing in our App or call their Scanner App by startActivityForResult (in Android) and than get result and work with it.<br /><br />But we can not do it with SF1, we have no access to its code.<br /><br />And two questions, hopefully you can tell me something about that:<br /><br />(1) Is it possible to call another Android App by startActivityForResult from HTML5 (JS) placed in our VF page and opened in SF1 app? <br /><br />(2) I found a special Scanner attachment on a market with its driver for mobile device (but didn't use it yet). I thought: and how I can integrate it to SF1? <br />And I got an idea: what if this scanner device could replace a standard camera completely, and we could use it by calling from JS like a regular camera call. And the most important thing that this device could return back to JS not a picture file, but a text string (!) with decoded information. And we could do everything what we want with that information. Do you think it is technically possible in SF1?<br /><br />thank youDen Brownnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-9084202467028766112014-02-25T18:44:32.774+00:002014-02-25T18:44:32.774+00:00Thanks Bob I got it working except for like @Marco...Thanks Bob I got it working except for like @Marco Cestaro said, "Choose File" button doesn't work for Android.Vinarhttps://www.blogger.com/profile/02593683969974457221noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-34720475907985691132014-02-25T16:21:37.016+00:002014-02-25T16:21:37.016+00:00My code just has the id of a record in the system,...My code just has the id of a record in the system, then I use the sforce.one() JavaScript object to navigate to the mobile version of that record.Bob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-3146996007267075392014-02-25T16:19:41.309+00:002014-02-25T16:19:41.309+00:00Hey Bob, this is an excellent article and somethin...Hey Bob, this is an excellent article and something I was looking for. Totally appreciate your hard work. After working through the code myself, I have one question for you<br /><br />1. What is the URL that your QR code outputs. The application reads the code for me on iPad but and I see the correct URL on alert pop up. But when I press OK, it takes me to a screen which says nothing and when I pull down the screen to refresh it says "The page you are trying to access is not supported on mobile devices". <br />here is an example of my URL<br />https://cloudapps-xxxx-xxx--xxxxx.xxxx.my.salesforce.com/a0IZ0000002jJdN (the same URL as the record possesses on web).<br /><br />Thanks in advance<br />Vinarhttps://www.blogger.com/profile/02593683969974457221noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-42071488481519946012014-02-12T08:43:07.722+00:002014-02-12T08:43:07.722+00:00It works in the HTML5 version of Salesforce1 (one/...It works in the HTML5 version of Salesforce1 (one/one.app) in my version of android as well - 4.1.3.Bob Buzzardhttps://www.blogger.com/profile/07815472992351343395noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-74850073058024959142014-02-11T23:54:44.112+00:002014-02-11T23:54:44.112+00:00The "Choose File" button doesn't wor...The "Choose File" button doesn't work in the Android version of Salesforce1. Works fine in Chrome mobile interface. Other than that, very cool. Thank you for posting.Anonymoushttps://www.blogger.com/profile/08036873894257161138noreply@blogger.com