Getfield Peoplecode Scroll 1
So you are wanting the dropdown list to change when the date changes if I understand correctly. You should then put your code in the FieldChange Event for the date field.In PeopleSoft you have Record.Field.FieldChange Event and Component.Record.Field.FieldChange.
The Record.Field.FieldChange event will fire whenever this field is changed regardless of what component it is in. While Component.Record.Field.FieldChange PeopleCode only fires when that field is changed in the component where you saved the code.In your case you likely want it on the Component.Record.Field.Fieldchange event as your logic sounds componentpage specific.
- Sep 23, 2014 - Rowsets - Accessing data at scroll level 2. Local Rowset &rsLvl1, &rsLvl2. Get Level 1 Rowset./ &rsLvl1 = GetLevel0(1).
- GetField: Field 'PTLAYOUT.PAGETITLEGROUPBOX' not found in scroll level 0. HRPSELGROUPFL.Activate PCPC:1199 Statement:16 The specified field was not found in the indicated scroll level. This may occur with various PeopleCode built-in functions that specify a 'scroll context' via a series of records and a field name.
I have a page that contains a parent record and several children records. There is a field (level 1) that is a checkbox that is a 'final draft' field - after this is checked no more changes can be made (even in correction mode); a new row/effdt must be inserted. The children records are all in level 2. Fallout 4 keeps crashing to desktop.
Peoplecode Functions With Examples
One of the most painfull situations when we have to write PeopleCode is when we need to get a field´s value in any level of the page to do some specific processing. Coding to get any field´s value traversig page´s levels is a skill that requires time and an fully understanding about how to Reference Data in the Component Buffer.