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

Form Elements value display Problem

Started by kalyan_sekhar1, 08 Oct 2005 11:54:27 PM

Previous topic - Next topic

kalyan_sekhar1

Hi,

I am having a report in which , i kept Metric Name and Metric ID. Now i kept a HTML element which access the element values in the Report. Here is the code for HTML
----------------------------------------------------
<script language='javascript'>

function clk()
{
alert(document.forms["formWarpRequest"].elements[2].value);
}

</script>

<a href="#" onclick="clk();">Click</a>
----------------------------------------------------

becuase i dont know how to refer with name, i am accessing using elements[2], which is in my case is metric ID. First time its giving fine , but when i close the window and agn access the report its giving null value. But when i save the report and open the report i am getting the value.

Is there any way i can call method from javascript before clicking the link, so that i can access the element value

Thanks

sir_jeroen

Is this ReportNet or Metrics Manager related?

By the way:
Javascript counts from 0 ... xx and not from 1.. xx. First Element is Element[0]
So elements[2] refers to the 3rd element in your list..

sir_jeroen

Little reminder: close the topic if it's been solved/closed (see board rules)