Find js-file in for customed report.

Ask general questions here.
Gilbert
Posts: 10
Joined: Mon Sep 30, 2013 8:54 am

Find js-file in for customed report.

Post by Gilbert » Mon Nov 18, 2013 4:02 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Find js-file in for customed report.

Post by Support Team » Wed Nov 20, 2013 1:41 pm

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
.
Image

Gilbert
Posts: 10
Joined: Mon Sep 30, 2013 8:54 am

Re: Find js-file in for customed report.

Post by Gilbert » Thu Nov 21, 2013 9:20 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Find js-file in for customed report.

Post by Support Team » Fri Nov 22, 2013 12:13 pm

Hello Gilbert,

You find the definition of the "ShowHideItems" function in your custom *.rxlog file.

Regards,
Markus
.
Image

Gilbert
Posts: 10
Joined: Mon Sep 30, 2013 8:54 am

Re: Find js-file in for customed report.

Post by Gilbert » Thu Nov 28, 2013 8:23 am

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
..

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Find js-file in for customed report.

Post by Support Team » Mon Dec 02, 2013 4:41 pm

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
.
Image