This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Nov 20, 2012, 12:52 PM
178 Posts

Link with script in data view control

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: Link Component,dataview
  • Replies: 1
 I have a link within the details section of a data view control. From the link I want to set some viewScope variables and open a dialog control which uses these viewscope variables.
 
This is the execute script under  the link control:
 
latitude = viewEntry.getColumnValue("Latitude");
longitude = viewEntry.getColumnValue("Longitude");
viewScope.put("latitude", latitude);
viewScope.put("longitude", longitude)
getComponent("dialogMap").show();
 
The code runs okey for the first time I click a link. The second time I click a link (the same or another link) I get the error message :
 

Unexpected runtime error

The runtime has encountered an unexpected error.

Error source

Page Name:/index.xsp
Control Id: link6
Property: onclick

Exception

Error while executing JavaScript action expression
Script interpreter error, line=1, col=10: Interpret exception

JavaScript code

   1: latitude = viewEntry.getColumnValue("Latitude");
 
What do I wrong? It does not matter what server update option I choose , the same error message appears...
Nov 22, 2012, 1:12 PM
43 Posts
Re: Link with script in data view control
 Interpret exception usually comes when 2 variables have same name I guess..
Latitude here is repeated twice..Just try changing it....Just a random guess..! 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal