Hi venkatesh,
My report has a query based data set but I think I did it. What I did is create a new query with a new view as data source. In the view I created a display method. Then I created new data set for the report with data source the new query. Then I load the data returned from the method as a normal field in the expression. I am not sure if it's the best way but it works.
This is my method:
public display UserName userNameDisplay()
{
return DirPersonuser::userId2Name(curUserId());
}
Thank you all for the help.