How to display qrcode base on data in collection


#1

I have created qrcode using steeve:jquery-qrcode package but now I have problem to display qrcode image (text) base on _id collection. I dont know the code how to call generate qrcode base on id from collection. Anyone please I need your help. Thanks

This my code:
//html
`

Username: {{kategori}}
{{#if profil}} Profile name: {{kategori}} {{/if}}
Download Drawing
` //js `Template.profile.helpers({ profil: function(){ return Profil.find({}); } }); Template.profile.onRendered(function (event) { $('#qrblock').qrcode({text:"event.target.kategori.value"}); });`

#2

anyone help me please.How code to create qrcode from id data collection?