Page 1 of 1
Find js-file in for customed report.
Posted: Mon Nov 18, 2013 4:02 pm
by Gilbert
Hi,
Where should i find the functions (like "translate" ) used in the .xsl-file? (See the code below)
Where is the .js-file in wich they are implemented?
<input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="ShowHideItem($(this).parent().parent().next().find('tr.{translate($levelName,' ','_')}'),
Thanks and Greets,
Gilbert
Re: Find js-file in for customed report.
Posted: Wed Nov 20, 2013 1:41 pm
by Support Team
Hello Gilbert,
"translate" is a standatd XSLT function.
Please find a detailed description on the following link:
http://zvon.org/xxl/XSLTreference/Outpu ... slate.html
Regards,
Bernhard
Re: Find js-file in for customed report.
Posted: Thu Nov 21, 2013 9:20 am
by Gilbert
Hello Bernhard,
you are right. My real problem is to customize the click on the checkbox.
The "Onclick"below call another function.
onClick="ShowHideItem($(this).parent().parent().next().find('tr.{translate($levelName,' ','_')}'),".
Where can i find the function "ShowHideItems"? so that i can edit it.
Thanks and Greets,
Gilbert
Re: Find js-file in for customed report.
Posted: Fri Nov 22, 2013 12:13 pm
by Support Team
Hello Gilbert,
You find the definition of the "ShowHideItems" function in your custom *.rxlog file.
Regards,
Markus
Re: Find js-file in for customed report.
Posted: Thu Nov 28, 2013 8:23 am
by Gilbert
Hello Markus,
thanks, i find it
. I try to implement my own method, it doesn't work and i don't understand why.
Here is where i call the method in .xsl-file :
...
<label for="checkBox{$currentId}" onLoad="HideAllErrors($(#checkBox{$currentId})).parent().parent().next().find('tr.{translate($levelName,' ','_')}'))">
<xsl:value-of select="$levelName"/>
</label>
...
and here where i implement it in.rxlog-file:
..
function HideAllErrors(item)
{
item.hide();
}
...
What am i doing wrong here?
Please Help!!!
Greets,
Gilbert
..
Re: Find js-file in for customed report.
Posted: Mon Dec 02, 2013 4:41 pm
by Support Team
Hello Gilbert,
You need to remove one closing bracket: HideAllErrors($(#checkBox{$currentId})).parent().parent().next().find('tr.{translate($levelName,' ','_')}')) and add the quotes: HideAllErrors($('#checkBox{$currentId}').parent().parent().next().find('tr.{translate($levelName,' ','_')}')).
Regards,
Markus