Configure BI Publisher Report with User Input Parameters as External URL Task
You can configure an external URL task to enable users to supply input parameters when accessing a BI publisher report. This allows the report to dynamically retrieve and display data based on values entered by the user at run time.
Create Data Model
- Go to .
- Click Browse Catalog.
- Click .
- Click .
- Enter the name, select data source as ApplicationDB_HCM and type of SQL as Standard SQL.
- Enter this SQL query and click
OK.
select dor.document_number, dor.document_code, dor.document_name from hr_documents_of_record dor, per_all_people_f per where dor.person_id = per.person_id and per.person_number=:P_PERSON_NUMBER and trunc(sysdate) between per.effective_start_date and per.effective_end_date - In the Add Parameter – ID SQL Query dialog box, select the P_PERSON_NUMBER checkbox and click OK.
- Click View Data.
- Enter the person number and click View.
- Click Save as Sample Data and click OK.
- Save the data model.
- Click Create Report and follow the steps to create the custom report based on your requirements.
- Save the report and make a note of the report name.
Enable Users to Access Report
Ensure that the report is enabled for the necessary roles.
- Go to the saved report.
- Click .
- Click the + icon to add users or roles.
- Select All in the List field.
- Search for the required roles to be given access.
- From the search results, select the role name and click the > icon to move the role under Selected Members.
- Click OK two times.
Create Task of Type External URL
- Go to .
- Click Create and select the creation method.
- Enter the details for the journey template and click Create Draft.
- In the Tasks section, click and enter details for the task as shown in this table. For
other fields, use the default values.
Field Value Task Name Review document records Task Description Optional Status Active Sequence Retain default value Make this task mandatory Yes Performer Area of Responsibility Performer Responsibility Type Human resources representative Owner Area of Responsibility Owner Responsibility Type Human resources representative Task Type External URL Task URL {environment}/xmlpserver/{Report Path}/{Report_Name}?_xmode=2 Example value: https://<server_host>/xmlpserver/Custom/Human Capital Management/Onboarding/DocRecordsReport.xdo?_xmode=2
Note that the external URL needs to be suffixed with _xmode=2 for only the report to open, and not the entire BIP dashboard.
Open URL on same page Unchecked When does the task expire? After assigned date After how many days? 7 - Click Save.
When users click the URL, the report opens in a new browser tab. They are prompted to enter the required parameter values, after which the report retrieves and displays data based on the inputs provided.