FoxInCloud
copy to clipboard
Gravatar is a globally recognized avatar based on your email address. copy to clipboard
  Vincent H.
  All
  Mar 31, 2021 @ 07:48am

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

Gravatar is a globally recognized avatar based on your email address. re: copy to clipboard
  Vincent H.
  Vincent H.
  Apr 1, 2021 @ 02:54am

You can forget about it, there is a new clipboard API which greatly simplifies the access rights issue.

Gravatar is a globally recognized avatar based on your email address. re: copy to clipboard
  FoxInCloud Support - Thierry N.
  Vincent H.
  Apr 1, 2021 @ 12:25pm

OK, thanks for the update

© 1996-2021