Hi guys,
I have a small doubt that what is the difference between a file which is created with .js extension and a normal report which is created under Reports folder. Both files contains JavaScript code then what is the difference between those files?
I am facing one problem when importing two files (one is .js file and other one is Report) in one of my report, let's give a name as 'child report'.
I have one user defined function in one of my report and I am calling that function in "child report'.
when I am doing this it's working perfectly in development environment of my system. But when I am calling the same function in production my "child report" is not able to recognize that function. Even I have that imported file also in production.
And if I will define the same function in one of my .js file and then import that .js file in "child report" then it is working fine in prod.
then why It was not able to recognize the same function from a user defined report and how it was working in development environment?
Don't know what is the root cause behind this problem.
Please help if you can. :)
Thanks,
Ankit
Martin Miskovic on
Hello Ankit,
Well, I dont know if this will help you to find the problem, but I can share some information I have found out while playing with Reports.
Report (in Reports) is runnable in ARIS, meaning you can start the Report in the Evaluations menu.
Standard .js file can contain same code as Report, but you are not able to run it directly. I use it for functions & constants that I need in more than 1 Report (used via imported files).
When you want to import files into your Report, you can import all items in your Common files folder
and items in the your Report folder, meaning you can not import items from another folder / category.
If your Report can not recognize user-defined function, then I can not think of other solution other than the file is not imported in the Report. If you want to use user-defined function in an imported file, it is not important if it is a Report (.arx) or .js file.
Martin