Interactive Grid how to collaps all records - oracle

I have a IG with control break to collapse grouped records based on varchar column.
The solution proposed in How run a control-broken IG as collapsed in the first place? by #akil_Ramesh is working fine for me but only when the report has few records. If the query returns more records the user needs to scroll down the page to see other records and in this case the control break will not be collapsed.
So the question is: there is a way to fetch all records in IG? Or another way to collpase control break after scroling down?
My setup: Apex 21.2, Oracle Database 19c Enterprise Edition Release 19.3.0.0.0

I founded a solution working for me:
set IG pagination attribute = page
create a DA for event "Page change [Intercativ Grid]" on your IG
in True side: "Esecute Javascript code": $("#YOUR_STATIC-ID_IG .a-GV-table tr.a-GV-controlBreak .a-GV-controlBreakHeader .a-Button.js-toggleBreak").click();
(the code from #akil_Ramesh)
Regards

Related

Apex 5 Add new row at the and of interactive grid

I'm a new user of oracle apex 5. I'm using interactive grid but i have a problem, by default apex 5 add the new row after the selected row, but i want add the new row after the latest row.
How can i do it?
I don't know, but - why do you care about position where row is inserted? It is - after all - stored into a RDBMS table, and in those tables there's no "order" of rows; think of them like apples in a basket. Which one is first, which one is last? You can't tell until you sort them, and that's done with the ORDER BY clause.
Which, in your case, means: the next fetch (or refresh) will sort them properly anyway.

Oracle Apex 18.1 editing IR

When I try to edit more than one row in an Interactive Grid, some rows are deleted. I use Oracle Apex 18.1
Here is Apex IR
If query (that the IG is based on) contains a WHERE clause, and if you modify columns that are used in that WHERE clause, maybe they don't satisfy the condition so IR doesn't display them any more. They aren't actually "deleted", you just don't see them.
Oracle Apex has not reported any known bugs in the release notes for APEX 18.1.0:
https://www.oracle.com/database/technologies/appdev/apex/known-issues-v181.html
The issue might be due to:
(1) On Click of Save the saved record must disappear because you might have not have returned the primary key in the Interactive Grid Processing Section.
(2) There might be some WHERE conditions in the query that might not satisfy the condition so the rows(s) might disappear.
(3) There might be some CODE written in the Database to delete the rows based on some condition (or) there might be some Triggers in the table that deletes the rows based on some condition.
(4)Installation Issue (Please check the Installation LOG), consider this point as the last approach.

Oracle Apex - Links in report row that gets a value from the row and uses it to generate another report on a different page

Oracle Apex 5.1
I have a report (Report A) that has a table of values generated from a SQL query.
How do I get a link column to get a value (e.g. employee_ID) of the current row then send that value to another page that has a report (Report B) that is generated using the value from report A.
New to Apex and a lot of the guide or tutorials seem very convoluted for something that seems like quite a standard thing.
Thanks for any help!
This is a pretty basic thing and there are many examples of it online.
The simplest way is to create a column link (in attributes) which links to your target page containing report B. On the page containing report B have a hidden item (e.g. employee_id) and in your link use the set items area to set PX_employee_id to value #employee_id#. Then on report B have a where clause - where employee_id = :PX_EMPLOYEE_ID (replace X with the relevant page number).

How to use the result offset and fetch clauses with Oracle Forms Builder

I am currently working with Oracle Forms and I have made a dynamic query which is being passed on to the Set_Block_Property() and then the query is Executed. The output is ordered by using the 'Order By' option in Property Palette of respective form.
My requirement is to limit the number of records and when clicking the next button, It has to show the next set of records. I have been using the 'maximum records fetched' property in the Form Palette; however, I came across the OFFSET and FETCH clauses in Oracle 12c R1 (12.1), which do this with ease.
Is it possible to use the same with Oracle Forms Developer? Any answers or references would be appreciated. Thank you in advance.
At block level you got an option Query Array Size
This is the number of records fetched from the database.

ssrs questions regarding drop down menu and dataset

I am using SSRS through VS 2010 and have the following questions:
Can I define a drop down menu without defining a dataset?
I have a dataset defined, is there anyway to add "manual" values to this dataset? The background requirement of this is that the report query is based on this dataset. However I want to have an option in the dataset where it says "all" in order to allow the user to see everything instead of narrowing down results based on the dataset.
Thanks,
Bruce
I am a newbie to SQL Server reports and found my answers:
For the first one, can simply create a table and use a dataset on the created table with customzied values.
Same goes for the second one, the manual data can be added to the table itself.

Resources