Oracle Apex 5 Checkbox binding - oracle-apex

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

Related

Oracle APEX - Find all pages utilizing specific LOV

I want to find out if a specific LOV has been used by any pages in my application. I assume this can be done by querying APEX express views. I found a view containing LOV data - APEX_APPLICATION_LOVS but that does not help me get the list of pages utilizing the LOV. Can anyone point me in the right direction?
The easiest way is via the APEX Builder tool:
As that shows, there are 3 places they can be used:
page items
report columns
interactive reports
(though I would expect interactive grids to be there too, and perhaps facets too).
Another way to to search APEX_DICTIONARY for likely columns e.g.
select * from apex_dictionary
where column_name like '%NAMED_LOV%';
That returns:
APEX_APPLICATION_PAGE_IR_COL
APEX_APPLICATION_PAGE_ITEMS
APEX_APPL_PAGE_FACETS
I don't have the definitive list, but I hope that helps.

Oracle APEX Interactive Grid Filter on Shuttle Columns APEX 19.2

APEX Interactive Grids have a nice OOTB feature for filtering columns as long as they are represented by text areas, or text fields or selects. As soon as you change them to multi-select or shuttle they are no longer filterable with the out of the box functionality.
Is there a workaround where one could create a custom filter perhaps with a dynamic action?
I just need to search for a string in the field.
Use case is a multi-value column that holds tags and I just want to find records that contain one of the tags.
This would be handy for prototyping where you don't want to create a tags table and many-to-many mappings etc.
I'm using APEX 19.2
Thanks!
It is not possible to add a filter to a shuttle because the each row might contain more than one value (return/display value). So Apex internally won't know what to show when filtered.

Is there a way that POWERBI does not agregate all numeric data?

so, I got 3 xlsx full of data already treated, so I pretty much just got to display the data using the graphs. The problem seems to be, that Powerbi aggregates all numeric data (using: count, sum, etc.) In their community they suggest to create new measures, the thing is, in that case I HAVE TO CREATE A LOT OF MEASURES...Also, I tried to convert the data to text and even so, Powerbi counts it!!!
any help, pls?
There are several ways to tackle this:
When you pull a field into the field well for a visualisation, you can click the drop down in the field well and select "Don't summarize"
in the data model, select the column and on the ribbon select "don't summarize" as the summarization option in the Properties group.
The screenshot shows the field well option on the left and the data model options on the right, one for a numeric and one for a text field.
And, yes, you never want to use the implicit measures, i.e. the automatic calculations that Power BI creates. If you want to keep on top of what is being calculated, create your own measures, and yes, there will be many.
Edit: If by "aggregating" you are referring to the fact that text values will be grouped in a table (you don't see any duplicates), then you need to add a column with unique values to the table so all the duplicates of the text values show up. This can be done in the data source by adding an Index column, then using that Index column in the table and setting it to a very narrow with to make it invisible.

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