oracleADF 11g table refresh issue - oracle-adf

I have an adf table. Each column has a footer. These footers contain the sum of all the values of that column. The sum is calculated from a backing bean.
The issue is that the values are not getting populated in the footer with a table refresh. I have to do a page refresh to make them display the values. Doing a page refresh is not acceptable. Can some body help with this.
I have tried refreshing the table but that's not helping me.

I found the solution,
I was refreshing the table using the following statement
AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
where uiComponent is binded to the table. but when i did that only table is refreshing and not the footer.
so what i did i created a panelgrouplayout around the table. now binded this PanelGrouplayout to the managing bean(private RichPanelGroupLayout uiComponent)
now i refreshed the panelgrouplayout.using
AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
when i did that its refreshing the whole table and footer.
Thank you

Related

How to persist the column order of the dataGridPro table in Material UI?

I am trying to persist the column order of the dataGridPro table in Material UI. As you know, we can simply allow all column reordering by dragging the header column and moving them left or right. But the column order would be initialized after the page reloading.
By default, columns are ordered according to the order of the columns array.
Should I store the updated array in the backend database or other storage? How can I implement this functionality and which choice would be preferable?
I am looking forward to your answer.
Expected behavior
Persist the column order after the page reloading or page navigation

Making persistant for Toggle Columns in treetable

Is there any example you have to make the table data persistent after hide or show or reorder certain columns in primeng.
For example:
If there is a treetable with 3 columns Id,Name and type and by toggling I hided the ID column using toggle option and if I refreshed the page, the table should come with Name and type only.
Is there any api is available to get the column data dynamically for each hide and show as well as reordering ? kindly provide an example it will be really helpful.
I don't think there is an API for this.. I used localstorage for saving the state of the table.

How to fix headers in ADF tables?

How to fix the ADF table header when scrolling that table?
When I am scrolling down the table to see the data the table header should remain displayed. I don't know how to do this in ADF tables.
Size your table to fit into your page - and then this will be the default behavior.
See - http://jdevadf.oracle.com/adf-richclient-demo/faces/components/table.jspx

Reactjs Table Component

I've been using Fixed Data Table and i want to show/hide rows on row click. I couldn't find anything related to show/hide or sub table in react fixed data table. Is there any way to achieve this or any other table component which will help me achieve this.

Handling Onload events to add server side logic in ADF

I want to know how do we handle onload event so that we add some business logic once a view is loaded.
In brief this is what i want to achieve -
I have a entity object which i am showing as editable ADF table. Now once the page is loaded and I want the table to show at least 4 rows no matter how many rows exist in Database table. For example, if database table has 2 entries then ADF table should show those 2 rows and additional blank 2 rows in ADF table. And if the database table has 6 rows it should show 6 rows in ADF table.
How to programmatically handle this functionality. What functions and methods i need to override or add.
Any help is appreciated.
Thanks.
There are multiple ways of doing this, including doing this in a method call in the taskflow before you reach the page.
Some options:
https://blogs.oracle.com/adf/entry/an_epic_question_how_to

Resources