Showing posts with label HRMS EMployee. Show all posts
Showing posts with label HRMS EMployee. Show all posts

Wednesday, 20 February 2013

How to disable Correction or Update button on Oracle HRMS screen

1) In Oracle apps HRMS Employee screen, after any changes to the employee, two options popup.
Correction and Update.

2) I have seen some clients asking to disable the correction button, the button cannot be removed by Personalization.

3) This can be done by using CUSTOM Pll.

4) Go to procedure style in CUSTOM Pll, and add the condition on DT_SELECT_MODE.
   if event_name = 'DT_SELECT_MODE'
        then
return custom.after;
else
return custom.standard;
end if;

5) Then after that go to event and add the below to disable the Correction Button.

  if (event_name = 'DT_SELECT_MODE') then
    if name_in('GLOBAL.G_DT_CORRECTION') = 'TRUE' then
    copy('FALSE', 'GLOBAL.G_DT_CORRECTION');
    copy('TRUE', 'GLOBAL.G_DT_UPDATE');
    end if;
    end if;

6) This can be applied to any button after changing the data in Employee screen.

For more details, refer the implementation guide.
http://docs.oracle.com/cd/E18727_01/doc.121/e13535.pdf