pillai.ganesh
20th October 2011, 13:52
Can any bodybody please give me the standard command name for "Copy to Clipboard" so that i can use it with choice.<...>.

zardoz
20th October 2011, 22:11
Isn't a possible choice.

Copy, cut & paste are UI commands, not form commands and they are 'local' to the machine on which you run the UI, not the server on which the bshell runs.

Maybe there are other ways to obtain what you want, please explain better why you are trying to do that...

pillai.ganesh
21st October 2011, 10:03
We were facing the problem while using 'Copy to Clipboard' functionality in FP6 our FP3 MMT session's copy to clipboard is not working when taken to FP6 ; infact it is giving a fatal error after selecting the record range.
When I bypassed te before.display of some fields the error stoped but now I want to code the bypassing logic such that it is executed only when 'copy to clipboard' .I was thinkin of usin a bool variable that will be set fo true only when the user selects "Copt to Clipboard"

mpfaender
17th November 2011, 09:26
Hi pillai.ganesh,

here an example for your problem. You have to work with UI functions.

domain tcmcs.st60m shpm.addr(20)
string buf(512)

long id, ret

|* reading business partner address
tccom.dll4030.format.address(i.cadr, 10, shpm.addr)

buf = trim$(shpm.addr(1,1)) & chr$(13)
buf = buf & trim$(shpm.addr(1,2)) & chr$(13)
buf = buf & trim$(shpm.addr(1,3)) & chr$(13)
buf = buf & trim$(shpm.addr(1,4)) & chr$(13)
buf = buf & trim$(shpm.addr(1,5)) & chr$(13)
buf = buf & trim$(shpm.addr(1,6)) & chr$(13)

|* Copy data into Clipboard
id = create.object(DsCclipboard, 0)
change.object(id, DsNfieldData, buf, len(buf))
change.object(id,
DsNformat, DSCLIPBOARDTEXT,
DsNaction, DSCLIPBOARDPUT
)
destroy.object(id)



Best regards
Michael