• Welcome to the new forum! We upgraded our forum software with a host of new boards, capabilities and features. It is also more secure.
    Jump in and join the conversation! You can learn more about the upgrade and new features here.

Only some of the XML report tags display using javascript - any ideas?

chesl

Apprentice
Joined
Nov 26, 2015
Messages
6
Reaction score
0
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
 
Back
Top