Douglas Law
Posts: 0
Joined: Wed Aug 21, 2013 8:57 am

apprentis question: relates to sound and email booking system

Hi there, I hope you can help, I want to make the button when pressed make a sound. specifically the sound of a car unlocking when the keyfob is pressed.
Im not having much luck with this im afraid.

one other thing i need help with is creating a booking system where basically the information (user inputs the name and other details) gets passed to an email.
have u got something that may be able to help me with this too?

thanks very much

dougie

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

apprentis question: relates to sound and email booking system

Hi Douglas,
[quote:]I want to make the button when pressed make a sound[/quote]Please take a look at PhoneGap's API: http://docs.phonegap.com/en/2.4.0/cor...
[quote:]i need help with is creating a booking system where basically the information (user inputs the name and other details) gets passed to an email.[/quote]Use Appery("component_name") to access component on the same page. If you would need more pages you can use $("[dsid=component_name]") to access components on other pages. You can form all data as a string with a few fields in this function:
codevar s = '';
s = s + "TEL;WORK;VOICE:" + Appery("componentName1").val() +"\n&quot
s = s + "TEL;HOME;VOICE:" + Appery("componentName2").val() +"\n&quot/code
You can use a service is such as SendGrid, for sending emails - http://sendgrid.com

I would strongly recommend you to start from our tutorials on http://docs.appery.io

Douglas Law
Posts: 0
Joined: Wed Aug 21, 2013 8:57 am

apprentis question: relates to sound and email booking system

Hi Katya, Thanks for a swift responce,

one other thing is i want to add a counter to my qr reader (installed) discount page so it shows after one scan it shows as 1 tick/counts, and after the second scan it shows as 2 ticks/counts.
i imagine thats some javascript?

anyway, i will try to use what you have given me to answer my first 2 questions i set you before i hound you again. i have already got sendgrid set up on my app though.

thanks again

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

apprentis question: relates to sound and email booking system

Hi Douglas,

Each Barcode scanner service call is accompanied by Success event. In the event handler you can increment a localStorage variable that can be assigned to a counter (Label, for example) on the application page.

Douglas Law
Posts: 0
Joined: Wed Aug 21, 2013 8:57 am

apprentis question: relates to sound and email booking system

hi katya, the sound option ive put on the back burner for a minute while i concentrate on the counter for the qr reader. could you guide me through how i would add that to it if you would be so kind please? should i share my project with you so u can see it too perhaps?
thanks

Douglas Law
Posts: 0
Joined: Wed Aug 21, 2013 8:57 am

apprentis question: relates to sound and email booking system

do u think its possible to explain how to do the counter for the qr reader in more detail the please? thanks

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

apprentis question: relates to sound and email booking system

Douglas,

Try to implement this, it's not difficult.
Let us know if you have any problems.

Douglas Law
Posts: 0
Joined: Wed Aug 21, 2013 8:57 am

apprentis question: relates to sound and email booking system

easy for you to say. wish you could show me how

Douglas Law
Posts: 0
Joined: Wed Aug 21, 2013 8:57 am

apprentis question: relates to sound and email booking system

i am sorry but im still trying to impliment the counter. i had to " increment a localStorage variable that can be assigned to a counter "....
my label is there..so that will be my counter but i cant see how.
can you kindly explain further please?
thanks

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

apprentis question: relates to sound and email booking system

To call a service create a localStorage variable named counter_for_BCS, it is necessary for IDE to be aware of the existence of such a variable. Don't map anything to it.

On Barcode scanner Success event run:
codevar counter = parseInt (localStorage.getItem ("counter_for_BCS"), 10) | | 0;
counter + +;
localStorage.setItem ("counter_for_BCS", counter);/code

Somewhere before show start counter, for example, on Page Show create Set property action for Label component, tick "Read from local storage variable" and specify counter_for_BCS

Return to “Issues”