Js con Peoplecode
Js con Peoplecode
One-way to hide PeopleSoft delivered component events buttons (Save, ReturnToList, Add, UpdateDisplay…. etc.) by
using JavaScript. Follow the below steps to hide the delivered buttons.
This way can be used if we have many pages in component and we don’t want delivered buttons on some pages. Here are
steps.
Step1: Place HTML area in page and assign derived and work record (Say: HIDE_WRK) and field (Say: HTMLAREA)
to it.
function appsDisablePTControls() {
var aPTButtons = ['#ICSave', '#ICList', '#ICNextInList', '#ICPrevInList',
'#ICSendNotify', '#ICNext', '#ICSpellCheck', '#ICRefresh', '#ICAdd', '#ICUpdateAll',
'#ICCorrection', '#ICUpdate'];
appsDisableTable(aPTButtons, true);
}
How do I do this:
Here is a step by step work around to disable one radio button using a simple javascript.
1. We need to set a page field name from the radio button properties. I named this one "ADJ_CATCHUP".
2. Place HTML area to the bottom of the page to make sure that the page had been fully rendered before the
javascript being called)