CSIBEllington
Technical User
I have a report that needs to display a set of data which can be manipulated at the web interface level. I do the manipulation with javascript, and that works well. When I put it all in a Browser Scripting Control it works great. The trouble happens when I try to make it dynamic. To do taht, I need to get it to increment according to the person viewing the report.
Basically, what I want to have happen is this. The data control returns a list of all the items that need to be displayed (i.e. subordinates). It then goes through some code to create the javascript necessary to handle the form it is about to display them in. For this, I need to get a total count of all the rows retrieved. I then need to use (presumably) the onrow method to add each item retrieved, but at the same time I need a counter that will increment a variable name used by javascript (I think I know how to do this part).
My question is, how do I get the total amount of rows returned by the data control before I start processing the individual rows? Also, what is the syntax for accessing that in code? I don't want to use global variables if it can at all be avoided.
I've tried to add component level variables and manipulate them, but I get the following error when I do:
ReportRoot::Frame1::BrowserScriptingControl%Start(5): Invalid procedure reference. - (xxxxxxxx)
ReportRoot::Frame1::BrowserScriptingControl%Start(5): Illegal variable use. - (xxxxxxxx)
Any ideas on either the syntax or the correct use of variable scope?
Also, are there any good resources on the web for learning Actuate Basic? I'm finding the actuate documentation a little dry and difficult to assimilate.
Thanks!
Basically, what I want to have happen is this. The data control returns a list of all the items that need to be displayed (i.e. subordinates). It then goes through some code to create the javascript necessary to handle the form it is about to display them in. For this, I need to get a total count of all the rows retrieved. I then need to use (presumably) the onrow method to add each item retrieved, but at the same time I need a counter that will increment a variable name used by javascript (I think I know how to do this part).
My question is, how do I get the total amount of rows returned by the data control before I start processing the individual rows? Also, what is the syntax for accessing that in code? I don't want to use global variables if it can at all be avoided.
I've tried to add component level variables and manipulate them, but I get the following error when I do:
ReportRoot::Frame1::BrowserScriptingControl%Start(5): Invalid procedure reference. - (xxxxxxxx)
ReportRoot::Frame1::BrowserScriptingControl%Start(5): Illegal variable use. - (xxxxxxxx)
Any ideas on either the syntax or the correct use of variable scope?
Also, are there any good resources on the web for learning Actuate Basic? I'm finding the actuate documentation a little dry and difficult to assimilate.
Thanks!