PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → 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
Iniciado por Ben, 09,dic. 2016 02:28 - 2 respuestas
Publicado el 09,diciembre 2016 - 02:28
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
Publicado el 09,diciembre 2016 - 12:51
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
Publicado el 11,diciembre 2016 - 23:56
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