How to put a field value into clipboard in Formula

I can get the value from a field in Formula.I want to generate a string according the field value and put it to clipboard. Then it’s easy to paste to console command line.

Subject: How to put a field value into clipboard in Formula

You have to put the value in some other field, go to that field, use EditSelectAll and then EditCopy, and then come back to the current field. You could do approximately the same thing in Lotussscript. Neither option is really good.

Another option in in Lotussscript is to use the WindowsClipboard class: Reading/Writing Windows Clipboard

Subject: How to put a field value into clipboard in Formula

If you are able to use javascript you can use the following, where s is the value you want to pass to the clipboard, in this case the value of the PackageID field

function ClipBoard()

{

form = document.forms[0];

s = document.all.PackageID.value;

var temp1 = null;

var hidden1 = null;

if ( typeof( form.hidden1 ) == “undefined” ) {

form.innerHTML += ‘<INPUT TYPE=“hidden” NAME=“hidden1” VALUE="’ + s

  • ‘">’;

}

form.hidden1.value = s;

temp1 = form.hidden1.createTextRange();

temp1.select();

temp1.execCommand( ‘copy’ );

}

Subject: Customize toolbar

Actually I am working in customizing toolbar.Editing the icon only acccept Formula.

Any ideas of Formula can work on it?