pEOPLE cODE

regarding the search page.

I am having a question on the getting search page which is as follows,
when I click on my component, it opens search rows in the search page , when the user clicks on the rows in the serach page, depending on the a field in the row, it transfer to the other page in other component due to the transfer function written in the peoplecode. From here, Is it possible to come back again to my orignal search page.

Problem while calulating aggregate using relative display fields

im having 4 fields in a grid.one is display control,one is relative control,one is derived record field,another is level1 record field.
when im trying to calculate aggregate sum,while inserting it is giving correct sum.but while deleting it is giving the sum without reducing previous deleted row value.Moreover when we edit a field which looks its value from another table,there is no effect in the sum.

My task is to calculate aggregate sum in a grid.
The field are
ERPA_AK_ITEM--it looks the item names from another table.it is display control field.

file layout error handling

I need to create a Rejected File that contains the data rejected by the File LAyout during inbound using AE. The File Layout writes the rejected data into the Log file, but do not write the error field data.
ex: For wrong date format, it writes into the log file all the data in the row except the error data (date in this case) specifying that there is an error in the date. I need to put the date also in the rejected file.
Also i need to prefix 'R' for each row in the rejected file(FileLayout has child segments). (Doesn't workout for child rows.).