FoxInCloud
copy to clipboard
Hi Thierry,
I do a proration, convert the result to letters, display it in a popover, and want to copy it to the clipboard.
But this one remains hopelessly empty.
Can you tell me what's wrong with my code ?
thank you in advance
"Resultat" is a dropup button
Resultat.Valid()
IF (Type('m.thisForm.wlHTMLgen') == 'L' AND m.thisForm.wlHTMLgen)
RETURN .T.
ENDIF
WITH THIS.Parent
DO Resultatpp IN \VHDev\Program\Calculfin
MwcJS = TEXTMERGE([jQuery('#<<.Resultat.wcID>>').popover({content:'<<Mvalproc>>', title:'Résultat du calcul', placement:'auto', trigger:'click hover focus', container:'#<<THISFORM.wcID>>'}).popover('show');]) + RetChar +;
TEXTMERGE([(function(event){$('#<<.Resultat.wcID>>').select();document.execCommand("copy")})(jQuery);])
.wcScriptJSadd (m.MwcJS)
ENDWITH
You can forget about it, there is a new clipboard API which greatly simplifies the access rights issue.