Hi:
I would like to copy one string to windows clipboard use Javascript in LabVIEW NXG web module.
The UI operation process is to put the "MES_EXP" string into the clipboard after user push down "Copy MES_EXP" button.
I had found the Java code for this app on the web, and I have tried many times to modify it according to the documentation on the NI official website.
However, it still doesn't work, I don't know where the error is, and since I don't have the ability to edit Java programs.
I'm hoping someone can provide this example to help me step to step how to use Javascript in LabVIEW NXG Web (or G Web) development.
I will keep trying and never give up. 😊
Anyway, thank you for reading this.
Best regards
Joe
Attach some information as follows:
LabVIEW Web UI:
Javascript: (Reference: " https://stackabuse.com/how-to-copy-to-clipboard-in-javascript-with-the-clipboard-api/ " )
Create JSLI in LabVIEW program: