How to hide & unhide the grid from the page by using people code?
How to hide & unhide the grid from the page by using people code?
In the given example, user wants to hide and unhide the grid from the page by selecting the check box option on the page. If the check box is checked the grid should be visible else hide the grid & delete the values present in the grid.The check box is at level 0 & the grid is at level 1.
Function HideAllRows() can be used to hide the grid, & function ShowAllRows() can be used to unhide the grid.
HideAllRows hides all rows of the rowset.
For the given example, write the below people code at field change of check box.
1) Hide the grid.
&Rowset0 = GetLevel0();
&Row0 = &Rowset0(1);
&Rowset1 = &Row0.GetRowset(Scroll.
&Rowset1.HideAllRows();
2) Delete the data from the grid
&Rowset0 = GetLevel0();
&Row0 = &Rowset0(1);
&Rowset1 = &Row0.GetRowset(Scroll.
For &i = &Rowset1.ActiveRowCount To 1 Step - 1
&Rowset1.DeleteRow(&i);
End-For;
OR
If the data is present in the component buffer & not present in the data base, then use function flush() to delete the data from the buffer.
&Rowset0 = GetLevel0();
&Row0 = &Rowset0(1);
&Rowset1 = &Row0.GetRowset(Scroll.
&Rowset1.flush();
3) Unhide the grid
&Rowset0 = GetLevel0();
&Row0 = &Rowset0(1);
&Rowset1 = &Row0.GetRowset(Scroll.
&Rowset1.ShowAllRows();
People-Tools 8.51 is available now.
People-tools 8.51 is available now. It has a lot of interesting features as explained in my earlier posts.
Some of the resources links for 8.51
1) People-books - Finally a new look to People-books - Not many notable changes in the UI.
Hosted peoplebooks.
http://download.oracle.com/docs/cd/E18083_01/pt851pbr0/eng/psbooks/index.htm
2) Peopletools Advisor 8.51 Advisor Webcast
https://oracleaw.webex.com/oracleaw/ldr.php?AT=pb&SP=MC&rID=57986397&rKey=8437b9e766fd40d7
3) Documentation on 8.51 release.
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1127534.1 ( login required)
Some of features to look forward.
1) Test-frame work.
2) Smart Navigation.
3) UPK Help Embedding.
4) Advanced Integrations.
5) Peoplesoft Work center framework - Role-based functional portals.
It will be available fully in 2010 Q3 and 8.52 will be available for 2011 Q3.
What are the features in your wishlist for People-tools - 8.52 ?