If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

I would like a copy/paste button for prompt

Started by STLAURENT, 08 Feb 2008 02:53:04 PM

Previous topic - Next topic

STLAURENT

In my prompt page, i would like a button for copy/paste a value, prompt1 -> prompt2

I create a button in my prompt page with Java code i don't have a code for copy prompt

Thank you !!! ;)

Example :

Prompt1 (Date) : 2008-02-01                 Copy Button -->            Prompt2 (Date) : 2008-02-01

Java Code I have :

<HTML>
<BODY>
<script language="javascript" type="text/javascript">

function copy_clip(txt)
{
}

</script>
<input type = "button" value = "-->" onclick = "copy_clip(document.getElementById('txt').value)" >
</BODY>
</HTML>

sandhya

If ur prompt page contains textbox prompts then u can use the following javascript.U must set the name property of the two textbox prompts as PDate and PDate1 respectively

<input type=button value="-->" OnClick=copy_clip();></input>
<script>
function copy_clip()
{
var val=document.formWarpRequest._textEditBoxPDate.value;
document.formWarpRequest._textEditBoxPDate1.value=val;
}
</script>