PDA

View Full Version : how to call another xaction file in one xaction file



jerin
02-22-2007, 07:04 AM
i have two xaction files. if first xaction file i have a drop down box listing all the departments. the user has to select one department and while clicking on the update button it has to call another xaction file and pass the selected department into it. in the second xaction file it will display the sub departments of that selected department.
that is i have to call one xaction file and pass one parameter from my xaction file.
how i can do it
if anyone knows please let me know

zach
02-22-2007, 09:12 PM
In the tech tips there is a solution to what it sounds like you are trying to accomplish.

http://community.pentaho.org/techtip/articles/using_ajax_to_drive_dependent_report_parameters.php

This might be a way to do it...
Do the steps as you describe in one xaction document not two.
Process Action 1: look up departments
Process Action 2: prompt for departments
Process Action 3: look up sub-departments (pass the {department} parameter to the sub-departments look-up query)
Process Action 4: Run report.


I haven't tested this, but should work.

Zach