FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
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
Débuté par Ben, 09 déc. 2016 02:28 - 2 réponses
Connectez-vous…
Ben
#1
Posté le 09 décembre 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
Signaler
0
0
Fabrice Harari
#2
Posté le 09 décembre 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
Signaler
0
0
Ben
#3
Posté le 11 décembre 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
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte