I'd like to extend my existing custom report by doing some calculations in the .htm file via javascript.
I've noticed that some of the BS2 tags display fine in javascript but some of them do not and they just do not work.
An example would be writing:
<script language='javascript'> document.write($mash_efficiency); </script>
This will successfully display in the report with a value such as: 74.5
However, if I try and do:
<script language='javascript'> document.write($est_mash_efficiency); </script>
This just returns a blank.
If I just display the same tag in normal html then it displays a value such as 75.6% (noting that it includes the % sign automatically).
Does anyone know why it does this and how I can get access via javascript to all the xml tags? It's as if some of the variables are of a particular format definition and some are another type and only some of them work when displayed via javascript.
If anyone has any ideas I'd appreciate it.
Thanks
I've noticed that some of the BS2 tags display fine in javascript but some of them do not and they just do not work.
An example would be writing:
<script language='javascript'> document.write($mash_efficiency); </script>
This will successfully display in the report with a value such as: 74.5
However, if I try and do:
<script language='javascript'> document.write($est_mash_efficiency); </script>
This just returns a blank.
If I just display the same tag in normal html then it displays a value such as 75.6% (noting that it includes the % sign automatically).
Does anyone know why it does this and how I can get access via javascript to all the xml tags? It's as if some of the variables are of a particular format definition and some are another type and only some of them work when displayed via javascript.
If anyone has any ideas I'd appreciate it.
Thanks