Oracle Apex 5.1.1 Interactive Report with PL/SQL - oracle-apex

How do I can to create an interactive report with PL/SQL in Apex 5.1.1?
It's important that work in Apex 5.1.1
The IR have a PL/SQL with Dynamic Parameters that I want change the query before submit with values of parameters that user can select

Aha, that would be a function (i.e. PL/SQL program unit) that returns query which is used as a source for the interactive report? If so, let it accept parameters which will be used to compose the SELECT statement. Depending on what you pass, you'll get appropriate SELECT.
I'd suggest you to move the function into the database (i.e. so that it is a stored function). Doing so, you'll be able to test it in a simple manner than if it was in Apex.

Related

Can I programatically pass a parameter value to a PowerBI report?

I have an embedded PowerBI report that needs to execute a query with a parameter that changes depending on which client opens a report. I need to programatically pass the value of a parameter (that cannot be prepopulated inside a filter) so that I can then use this value to execute the SQL query.
Also this parameter should not be visible/modifiable to the reader of the report because they would be able to change the value and see data they were not supposed to see.
I tried passing a value programatically to a filter but the filter needs to contain the value in order to set the value being passed.
You can do this with a Paginated Report using a Hidden Parameter, but not a Power BI Interactive Report. See In SSRS, how does an "Internal" parameter differ from a "hidden" parameter?

Oracle apex classic report hidden column

I have a classic report region in my oracle apex application, with query
SELECT SENDER,SUBJECT,SDATE,MAIL_NO
FROM MAIL
I want to hide the column 'MAIL_NO' but also want to access its value in front end, so I can not use hidden column property of classic report. I need one more similiar region in the same page so that I can not use tabular form and it's hidden column save state property of tabular column. How can I achieve this using classic report in oracle apex ?
you can reach the column value using Substitution Strings. for example if you want to use the column value as a link to detail page. for more details about Substitution Strings visit the oracle docs
try putting this in inline css in the main page
#MAIL_NO, /*header*/
td[headers="MAIL_NO"]/*rows*/
{
display:none;
}
Hide the column and put it in another item (also hidden item) and you could use it
more info
https://jackiemcilroy.blogspot.com/2018/03/delete-row-of-report-with-dynamic-action.html

How do you create a parameter list drop down in Power BI?

I have always been able to create drop-down list parameters within SSRS that allow the user to dynamically filter their reports based on one or more values selected from the drop-down list box of multiple values.
Translating now over to Power BI I cannot find any documentation to achieve the same functionality.
I've found a method of turning the slicer into a drop down list box. But it only allows for the selection of 1 value at a time. So it essentially seems to me to be more of a drop-down list of radio buttons.
In SSRS I could create a stored procedure that accepted a value and returned a record set filtered on a specific value(s).
I can see how to do this with Power BI as well but the method I've seen demonstrated, forces the user to select a value before the report is loaded and subsequently loads a pre-rendered report template. Which isn't the same.
So how does one go about creating a report that implements a true drop-down list box allowing for selection of 1 or more values to dynamically generate the result in the report?
Reference links are welcome if a simple answer isn't possible.
This is an out-of-the-box feature in PowerBI
Create a slicer visual and, as you've already discovered, set it to Dropdown type using the upside down carrot icon on the slicer header. The dropdown list is multi-select by default. Hold down [ctrl] while making the multiple selections. However, you can control Multi-Select behavior under the 'paintbrush.' When the visual is active, click the paintbrush icon under visualizations, expand 'Selection Controls' and you will see several options to manage your slicer's behaviors.
Additionally, you may want to explore the new filter experience, which is still in beta. https://learn.microsoft.com/en-us/power-bi/power-bi-report-filter-preview
Otherwise, The behavior in SSRS where the report loads from data sources using parameters chosen by users either as parameters in stored procedures or incorporated into dynamic SQL is not replicated in PowerBI. It's true that there are parameters that can be incorporated in that way with the data set refresh - but these are controlled on the data set, not the report, and are not convenient (or appropriate, really) for report viewers to manipulate.

Download to Excel option from Oracle APEX 5 Classic Report based on PL/SQL Function Body Returning SQL Query,

The description of the task:
Our current reporting system that we are trying to modernize/replace utilizing oracle APEX is written in php.
It has some predefined reports with parameters the users can run, as well as “custom report builder” that allows the user to build the custom report by selecting parameters, table columns, and other operators to help build the query that generates the report.
All options allow the user to download the report output into Excel file.
Some users with advance SQL knowledge are given option to write their custom quires to generate the output. They would write the query in the text window and then generate the output.
I have to duplicate this functionality in APEX 5.2.
I have done this by creating the Textarea item where user types the query and a Classic Report region based on PL/SQL Function Body Returning SQL Query, than passing this value to a PL/SQL block returning a query. I had to use the “Use Generic Column Names” option for this to work.
I can generate the output this way.
The problem/issue encountered:
Since it can only be a Classic Report (based on PL/SQL Function Body Returning SQL Query ), I do not have a build-in option to download to Excel. In addition, all APEX plugins for this purpose that I have found/tried are designed for Interactive Reports/Grids as well.
So:
Can you suggest a better way to approach the task?
If my approach looks OK, any suggestion for download to Excel option (via button) ?
Here's how:
navigate to reports's Attributes page
scroll down the properties; you'll see the "Download" section
set "CSV export enabled" to "Yes"
set other properties (if you want; a separator, link text, ...)
run the page
you should see the "Download" link at the bottom of the region

Oracle Apex 5 Checkbox binding

I have an apex interactive report and a matching edit form working. I'm trying to add extra column in my database that would bind to a checkbox on a report and a form for each row. The only way of doing that after researching various references seem to be using APEX_ITEM.CHECKBOX2 in SQL query and selecting graph as column data type. I can render a check box but it is not bound and to save the state I figure I would have to script some code somewhere. Seems to be an awkward way of doing things considering text just binds out of the box. Is there a better way of binding a row level check box in an interactive report, i.e. choosing some specific data type in a database?
Thank you in advance,
Radek