How to fix headers in ADF tables? - oracle-adf

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

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

Refresh Detail Data Grid in WPF

I have a master and detail page. For Master table i have 4 text box displayed in detail layout and for detail table i have data grid. There is trigger on master table which insert some records in detail table. i want to refresh the detail data grid from database. How i can refresh detail data grid with database changes. Here is image. Data is inserted in upper form and there is trigger on upper form which insert data in detail table. I want to load data inserted by triggers in below grid. I m using Entity Framework and using context.SaveChanges(); to save data in database.
Thanks.
Usually Master details information displayed on same page; If there is your case, it is easy. when you are going to insert something in your master table, You can get updated records from detail tables based on PK. One downsize of this approach is, you need to be 100% sure how much trigger will take time.(I am not sure ADO.Net return status of ExecuteNonquery after insert row in specific table or completion of triggers).
In your case when you saveChanges(), make a request to get details against user. Hopefully it is the easiest way to achieve goal.
But if Master and details pages are separate, or information can be changed from other mean. Then you can use SqlDependency. Please Note that SqlDependency only works with SQL server. It monitor DB changes in specific table, and notify ADO.Net. You can handle SqlDependency.OnChange.

oracleADF 11g table refresh issue

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

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

Repeat a table on all pages in a SSRS

I have a legend table that I want to repeat on all pages of the report. Ideally I wanted to include this table in the footer of the report. But SSRS does NOT allow me to add a table to the report footer. Is there any way where I can repeat this table on all pages of the report? Please be kind enough to provide me with an answer.
What I feel from your question is the table you mention seems not to be too big, as you want it to be in the footer of the report
So what you can do is insert the Page Footer in the report.
Create the table that you want in the report footer with the help of TextBoxes and other toolbar items--- by enabling the border on all 4-sides of textboxes and then write the stuff you want in the table, then simply drag it to your footer.
It should look like a table on all the pages of the report ! :)

Resources