I have an href in a repeated. I need to know which href the user clicked.
This is my code for creating the html text in the onBeforeDisplayEvent of the repeated.
I am creating an environment variable in the href to keep track of the index.
String myHrf = "<A HREF= ../Openexe/BlankPage1.Href1_onWebEvent(" + name +"),
?ROW_INDEX=" + currIndex + ">" + nextLine + "</A>";
(name - is the name of the href
currindex - is the current index updated in code
nextline - is the line I want displayed for that href)
then in the Href1_onWebEvent I have this code
try
{
int i = CSpider.getWebVar("ROW_INDEX").intValue();
}
catch (NullPointerException ex)
{
CSpLog.exception(this, "readObject", ex);
}
I keep getting a null pointer exception.
Does anyone know what I am doing wrong?
Thanks
Jan
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]