This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
But that servlet doesn't output any data, so probably that's why you aren't seeing anything in the response.
And I don't understand what you mean by a "parent" servlet.
Joined: Oct 27, 2010
Hello I am trying to do the following:
(At a high level)
1) Create a session variable in your application where you would store the "parentId"
2) In the report where you are using the parentId to filter the query you will have to read the session variable and add it to the query instead of the report parameter value. However, inorder to make it run from your desktop you may need the parameter otherwise it will always be null.
e.g. in the beforeOpen method of the query
var sessionParentId = null
sessionParentId = params[
this.queryText = 'select distinct home_short_name from home where parent_id = ' +sessionParentId;
While calling the report do not pass the parentId in the URL.
I understand the beforeopen, I am having trouble with the session servlet described above.
I already have a servlet running the page, the page is displaying some dynamically hyperlinked items in xml 1.0 and because it is dynamically hyperlinked, it displays the parameter parentid on the URL when you click on the hyperlink and it also displays the parameter when you hover above it.
It is already using a bunch of servlets which utilize the following: