Hello, I'm trying to get the current logged user in order to filter my query in cde.

What I have done, is to create a javascript snippet in Resources Layout with this code:

$(document).ready(function() {
var param_user=Dashboards.context.user;

where param_user is a simple parameter.

(I read this in another post from here)

When I try to run the dashboard, it shows me a blank page, if I delete the snippet then everything works (but of course I cannot filter the query)

I have proved other combinations from other threads, but I am not been able to make it work.

I'm using Pentaho 7.1.

Any help will be apreciate.

Sorry for my bad english, and thanks for all.