on 08-30-2011 9:26 AM
Hello all,
is there any possibility to copy a fields value to the operating system clipboard?
I want to create a button to "simulate" ctrlc, for instance to copy the value of a FormattedTextEdit to an external program (e.g. microsoft wordpad). I don't need ctrlv. Just "copy to clipboard".
Thanks for your help.
Hi,
I don't know whether there is a WD4A-propriatary function for this, but in plain abap you can use either
Class CL_GUI_FRONTEND_SERVICES Method CLIPBOARD_IMPORT
or Function Module CLPB_EXPORT (obsolete).
Implementing respective coding in the action handler of your button should do the trick.
regards, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>
> I don't know whether there is a WD4A-propriatary function for this, but in plain abap you can use either
>
> Class CL_GUI_FRONTEND_SERVICES Method CLIPBOARD_IMPORT
> or Function Module CLPB_EXPORT (obsolete).
>
> Implementing respective coding in the action handler of your button should do the trick.
>
> regards, Lukas
Don't bother trying either of these approaches. They utilize the SAPGUI for frontend access and will only produce a short dump in WDA.
From within the browser, applications can't just directly access the clipboard. It takes special controls or JavaScript to do so; neither of which are currently available in the Web Dynpro framework.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.