Guest User

Untitled

a guest
Sep 5th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. PROCEDURE EJECUTA_BIP IS
  2. bi_username varchar2(20);
  3. bi_password varchar2(20);
  4. repid REPORT_OBJECT;
  5. v_rep varchar2(256);
  6. rep_status varchar2(256);
  7. v_xmlpserver varchar2(256);
  8. BEGIN
  9. -- Servidor de BI Publisher
  10. v_xmlpserver := 'http://HOST:PORT/xmlpserver/';
  11. bi_username := 'username';
  12. bi_password := 'password';
  13.  
  14. -- Identify the Report Object.
  15. repid := find_report_object ('BIP_P');--nombre del reporte
  16.  
  17. -- Before reaching this point be sure to obtain the username and password
  18. for BI-Pub.
  19. -- Pass in the username and password. This is required.
  20. SET_REPORT_OBJECT_PROPERTY (repid, BIP_USER, bi_username);
  21. SET_REPORT_OBJECT_PROPERTY (repid, BIP_PASSWORD, bi_password);
  22.  
  23. --
  24. SET_REPORT_OBJECT_PROPERTY (repid, BIP_SSL_CONNECTION, OPTIONAL);
  25. SET_REPORT_OBJECT_PROPERTY (repid, BIP_SERVICE_LOCATION,
  26. v_xmlpserver||'/services/v2/ScheduleService?wsdl');
  27. SET_REPORT_OBJECT_PROPERTY (repid, BIP_REPORT_PATH, '/Samples/1.
  28. Overview/Salary Report.xdo');
  29. SET_REPORT_OBJECT_PROPERTY (repid, BIP_REPORT_LOCALE, 'ES-es');
  30. --Tipo de formato de salida, p.e.: html,pdf,rtf,xslx,csv
  31. SET_REPORT_OBJECT_PROPERTY (repid, BIP_REPORT_FORMAT, 'pdf');
  32.  
  33. -- Ask BIP to run the report.
  34. v_rep := RUN_REPORT_OBJECT(repid);
  35. END;
Add Comment
Please, Sign In to add comment