How can we access the value of the field in a line removed in the buffer of the component?

In the PeopleSoft component buffer when it removes a parent row children lines are also deleted, therefore, not possible to access the value of the field of these lines.

Example: If we have RECORD1 at level 1 and RECORD2 (which contains the INCIDENT_NBR field) at level 2.

If a row is deleted at level 1, level 2 lines are also deleted, but before delete, I need access to the value of INCIDENT_NBR and make sure no line (s) not many for this value in a third record record RECORD3.

If any line exist in the RECORD3 record an error message should appear in the case otherwise the delete process can go.

I put the peoplecode in RECORD2. INCIDENT_NBR. SavePreChange (at the record level) because this control must be carried out in all cases for all the component where my RECORD2 record is used.

When I display the value of the field I always get a null (00000000 digital).

It is possible that in PL/SQL within a trigger, but unfortunately in this case, I can not catch the error produced by RAISE_APPLICATION_ERROR (-20000, 'Suppression of an incident not allowed when there are dagnostics'); in Peoplecode.

Does anyone know if there is a way to get the values of the fields in the deleted lines?

Thank you

A rowset object has two properties

ActiveRowCount

All lines of lines in an exclusive set of deleted rows

Number of lines

All lines of a set of lines included the deleted rows.

So I would say, to loop through all lines and check for deleted rows and make any desired logic, something like:

For & i = 1 to & rs. Number of lines

& line = & rs. GetRow (&i);)

If & row. IsDeleted then

& rec = & rank. GetRecord (1);

& fld = & rec. GetField (FIELD. YOURFIELD);

/ logical necessary * /.

End - If;

-End;

Tags: Oracle Applications

Similar Questions

Maybe you are looking for

  • Hard drive Query - Satellite A200

    Hello I just bought an A200-1VG and whenever I load the "My computer" option it displays two hard drives but are only half of what hard disk space overall is. Is this normal? Thanks in advance chrjtay

  • Re: Satellite U300 hibernates when the battery is very low

    Hello I bought my satellite U300 141 two weeks ago.The computer is not put into hibernation when the battery is very low. I checked the settings of vista, default 2% of the battery capacity, the laptop must Hibernate. But mine is not.But I noticed th

  • What's safe to install 9.2.1 iOS?

    Fiasco from Apple launching v9 etc... I am extremely reluctant to update my iPad Air 9.2.1. Apple says it needs to address security issues, but they have said in the past. Versions 9 and 9.01, 9.1 done considerable damage - especially for the recepti

  • M5-581TG: fan control

    Hello I have a m5-581TG, and when I use it, for example, at the beginning, or only when opening IE, or by using Windows update, fan's quickier. Even if the computer is cold. Is this normal? After the installation of the computer, it was most of the t

  • Open the ini file

    Hello I have a little problem years hope anyone can help me. I would like to open a *.ini file if I press the button, but the file does not open. can someone help me please? int CVICALLBACK LoadFile(int panel, int control, int event, void *callbackDa