Author |
Message |
16/06/2021 06:06:11
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
(from mail conversation)
There is some automated creation of a popup menu item, which allows to copy the text of the current component into the client clipboard. How to invoke/control?
1. The easiest way is to append URL parameter "ccpopupmenucopyclipboard=true" to the .risc-URL.
2. The nicer way is to go through CLIENTCONFIG component. The attribute POPUPMENUCOPYCLIPBOARD can be set in the following way:
a. false => no popup menu
b. true => popup menu on any component
c. gridOnly => popup menu only for components that are part of a grid (FIXGRID)
Do not use 1. and 2. together. 2. will win! ;-)
|
Björn Müller, CaptainCasa GmbH |
|
|
13/07/2021 14:30:21
|
abender
Power User
Joined: 04/02/2010 16:32:13
Messages: 34
Offline
|
Hi Björn,
just got the same question from my customer about missing popup menu to copy text content into the clipboard.
Configuration with CLIENTCONFIG works fine to copy text of the component.
But the automatic cut/copy/paste popup menu on text fields does not show as in Swing Client. Instead the popup menu shows all buttons with hotkeys on the current page.
Regards
Axel
|
Axel Bender, DXC Technology |
|
|
13/07/2021 14:39:22
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
there are two issues:
1. by default menus are extended by all globally defined hotkeys. This c an be switched off by using CLIENTCONFIG-popupmenuglobalhotkeys
2. the default Browser-menu is not available, this is correct - and there is no chance to really access it from JavaScript.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
13/07/2021 14:49:25
|
abender
Power User
Joined: 04/02/2010 16:32:13
Messages: 34
Offline
|
Thanks for the quick answer.
regards
Axel
|
Axel Bender, DXC Technology |
|
|
22/07/2021 07:51:12
|
abender
Power User
Joined: 04/02/2010 16:32:13
Messages: 34
Offline
|
Hi Björn,
how is the attribute popupmenuglobalhotkeys in t:clientconfig to be used? There is no documentation for this attribute. Is it just true/false?
I would like to add a menu item "Copy from clipboard" for input fields. Is there a way to do this?
The class Clipboard only has a funtion to copy to client clipboard but not to copy from client clipboard.
Regards
Axel
|
Axel Bender, DXC Technology |
|
|
22/07/2021 09:08:36
|
abender
Power User
Joined: 04/02/2010 16:32:13
Messages: 34
Offline
|
Hi Björn,
I just found out we use
<t:popupmenu id="COPYPASTE" >
<t:systemmenuitem id="g_1" clientsystemcommand="cut" text="Ausschneiden" />
<t:systemmenuitem id="g_2" clientsystemcommand="copy" text="Kopieren" />
<t:systemmenuitem id="g_3" clientsystemcommand="paste" text="Einfügen" />
</t:popupmenu>
on the outermost jsp to add cut/copy/paste menuitems to input fields. This works with Swing client but not with RISC client. Ist that what you men by
"2. the default Browser-menu is not available, this is correct - and there is no chance to really access it from JavaScript."
Regards
Axel
|
Axel Bender, DXC Technology |
|
|
|