PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Attaching a Dymo Label Print and a Database call on the same button click
Attaching a Dymo Label Print and a Database call on the same button click
Started by Ben, Dec., 09 2016 2:28 AM - 2 replies
Connect yourself…
Ben
#1
Posted on December, 09 2016 - 2:28 AM
Hi,
Im currently trying to create a visitor sign in system. Currently I have javascript to print a visitor label upon pressing the signin button however it only works if imported as a seperate javascript file and when done like this the writing to the database doesn't work in the click of button (server) code.
Any idea of how I can get these thing functioning together?
Also the label printer I'm using is a DYMO LabelWriter 450 so the javascript uses the DYMO SDK.
Cheers for any help,
Ben
Report
0
0
Fabrice Harari
#2
Posted on December, 09 2016 - 12:51 PM
Hi Ben,
there are several ways of doing that.
- You can include an ajaxexecute call in your browser code before or
after printing in order to call your server procedure
- You can start a timer before printing and having an executeprocess of
another button in the timer code
- you can try to isolate the printing code in a separate button, call it
from your main button with an executeprocess and see if the server code
of your main button runs in that case
- ...
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 12/8/2016 à 8:28 PM, Ben a écrit :
Hi,
Im currently trying to create a visitor sign in system. Currently I have
javascript to print a visitor label upon pressing the signin button
however it only works if imported as a seperate javascript file and when
done like this the writing to the database doesn't work in the click of
button (server) code.
Any idea of how I can get these thing functioning together?
Also the label printer I'm using is a DYMO LabelWriter 450 so the
javascript uses the DYMO SDK.
Cheers for any help,
Ben
Report
0
0
Ben
#3
Posted on December, 11 2016 - 11:56 PM
Hi Fabrice,
Thanks for the reply. I ended up solving the problem via making the external javascript reference onfocus for the button instead of onclick so that it did not overwrite the WLanguage code.
Thanks for the help,
Ben
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text