You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Deleting a row on a grid which is flagged for no auto update

1 reply [Last post]
Guest's picture
Guest

Hello,
If on a grid with no auto update cheked, I fired rowdelete on a row and the user saved that component, what will happen
1. when the row delete is executed. Will it still mark the row ad deleted and hide the row, the moment, the people code is fired ?
My guess: Yes
2. Will the changes ( deletes ) be commited to the database when the user hits the save button ?
My guess: No

3. Will the user get a message that data has changed when the us2r tries to move away from the page ?
??

4. Will the save events fire for the rows at all ?
??

5. Is there an example in HCM /Financials that I can look up ?

Thanks HH

CompShack's picture
User offline. Last seen 6 years 9 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Re: Deleting a row on a grid which is flagged for no auto update

Hello again,

Question 1:
You are correct - it will mark it for deletion and will hide the row from the grid.

Question 2:
This one is kind of tricky. I would say that if it is the delivered save button then the answer would be "No". But if you take a look at the Phone numbers page under Self Service > Personal Information, the save on the page calls a CI that saves data to the database. The "No Auto Update" is checked for the grid on the page, but since the user is clicked "non" standard save button the "Yes" the data gets committed to the database.

Question 3:
Not 100% sure on this one, but my guess would be No.

Question 4:

I fired rowdelete on a row and the user saved that component, what will happen

Are you using Peoplecode rowdelete function? or is the user clicking on the (-) grid button?

Question 5:
I was looking at Self Service > Personal Information > Phone numbers. If i find a better example will let u know.

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