Call report from Form. [message #530835] |
Fri, 11 November 2011 00:21 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
I used Report Builder 9.0.4.0.33, and i want to call 1 report name is "DOCK_RECEIPT.rdf" from Form when click into button name is "Print". I write code in When-button-press follow:
This is code call report from Form.
Declare
pl_id paramlist;
Begin
pl_id := get_parameter_list('tmpdata');
If Not id_null(pl_id) Then
destroy_parameter_list(pl_id);
End If;
pl_id := create_parameter_list('tmpdata');
add_parameter(pl_id, 'PC_SLIP_NO', text_parameter, :pallet.slip_no);
add_parameter(pl_id, 'PC_CONTAINER', text_parameter, :control.nyk_container_no);
add_parameter(pl_id, 'PC_RETURN', text_parameter, :control.txt_reason);
add_parameter(pl_id, 'PC_WH', text_parameter, :control.from_loc);
add_parameter(pl_id, 'PC_SEAL_NO', text_parameter, :control.nyk_seal_no);
add_parameter(pl_id, 'PC_CAR_NO', text_parameter, :control.car_no);
run_product(reports, 'DOCK_RECEIPT.rdf', synchronous, runtime, filesystem, pl_id, Null);
If Not id_null(pl_id) Then
destroy_parameter_list(pl_id);
End If;
End;
On report "DOCK_RECEIPT" has parameter same parameter on Form. But when i click button "Print" then can't call report,while form and report that together folder.
Now, i want to question, how must configure report builder for call report from form that?
example: about directories,path, etc
|
|
|
|
|
|
|
|