The below function is to be used on a grid with multiple check boxes. Place the code behind a FieldChange event and users will have the option to Select or Deselect grid rows all at once.
Make sure the Multiple Row (Check Box) is checked on the grid properties.

| Title | Under | Posted on |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
Comments
Thanks for sharing.
Can you explain when this functionality will be used ?
Hey HH,
There has been a question on the forum once on whether it is possible to use a dropdown with the ability for the users to make multiple selections BUT after some comments back and forth, it was decided that the best option is to provide a grid to users with the ability to select more than one row (multiple check boxes) and thus this post.
Does it make sense?!
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
We are using this functionality on a project I am working on currently. Pages contain Multi-row grids, and we have several processes that can be performed on the grid rows if selected--Refresh, Purge, Update Effdt to current week, etc.... The select all logic is a quick & easy way to handle it.
We used a checkbox, rather than a button. One drawback, while manipulating the checkbox works okay, if Select All is checked, and then the user manually unchecks one or more of the individual row selection checkboxes, there is no way to get the Select All indicator flipped to note such a change (i.e. - there can be a situation where not all row indicators are selected, but the Select All checkbox is--almost a sort of Out-of-Sync issue).
THANK YOU SOOOOOOOOOOOOOO MUCH
I just started working in PeopleCOde
needed above functionality in my project
I spent like 2 hours, tried implementing this .. but was unsucessful
It took like 5 mins to take above code n it worked .......
God Bless You :)
Does any body know if am changing any value in the Grid ( which does not have a check box ) how to check if the value is changed for that row.
Below is the code for which am updating the row with 'LASTUPDTTM' with Current Datetime for which the row was changed. This code is working fine, but somtimes when i update only one row in the grid LASTUPDTTM in that record gets updated for all rows. It should update the LASTUPDTTM only for that row.
Local Rowset &RS;
&RS = GetLevel0()(1).GetRowset(Scroll.Z_CC_PRMTP_TRFN);
For &I = 1 To &RS.ActiveRowCount
If &RS.GetRow(&I).IsChanged Then
&RS.GetRow(&I).Z_CC_PRMTP_TRFN.LASTUPDDTTM.Value = %Datetime;
End-If;
End-For;
Does any one know abt this ?
Hi,
I do not see a reason why the above code should not work but you can try below code in the record SavePreChange PeopleCode. Let us know if it works.
If GetRow().IsChanged Then
Z_CC_PRMTP_TRFN.LASTUPDDTTM.Value = %Datetime;
End-if;
Lepa
Unless I very wrong,I think this will select all the rows in the buffer. Not just the rows that are currently displayed.
Is it possible to select just the ones currently displayed on the page ?
hai all
please help me out on this issue...
basing on the check box checked we are making the field visible or unvisible...
but the checkbox is in one page and the field... is in other page...
now i need to kow whether the checkbox is checked or not.. that is through peoplecode...
I would thing creating a global variable flag and assigning a value of Y or N should do the trick.
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
First page activate pplcode:define the check box value as 'Y' if it is checked.
Second page u can retrive the value with the following code.
take the value in the variable--> &checkboxvalue.
&checkboxvalue=Fetchvalue(recordname.fieldname)
hi
there is a different case with me like... the user select a file through the attachment from the page.what ever file he selects (i.e the data in that file should be populated into the components)... using filelayout actually we load the data into the statging table..can we do this dynamically like wen we are selecting the file accordingly the ae should take the file the file we are selecting and then run and populate the data from that file to existing components...
thanks in advance
Post new comment