Getfield Peoplecode Scroll 1

&rsLvl0 = GetLevel0;/ Get Level 1 Rowset /&rsLvl1 = GetLevel0(1).GetRowset(Scroll.IOBMAPTSTSMS1);For &i = 1 To &rsLvl1.ActiveRowCount&getPhone = &rsLvl1.GetRow(&i).GetRecord(Record.IOBMAPTSTSMS1).GetField(Field.IOBMAMOBILENO).VALUE;&FIRSTNAME = &rsLvl1.GetRow(&i).GetRecord(Record.IOBMAPTSTSMS1).GetField(Field.FIRSTNAME).VALUE;&LASTNAME = &rsLvl1.GetRow(&i).GetRecord(Record.IOBMAPTSTSMS1).GetField(Field.LASTNAME).VALUE;&MIDDLENAME = &rsLvl1.GetRow(&i).GetRecord(Record.IOBMAPTSTSMS1).GetField(Field.MIDDLENAME).VALUE;End-for.
Field Definition: Importance of Label ID and its usageWhen you create a new Field Definition in PeopleSoft, you not only choose Field Type/Length/Format but also you enter the Label for the field which should appear on the page.So it makes a logical sense, to have atleast one Label ID for a field. This will be the Default Label.Suppose that the same field definition should display different Labels in different pages. In such a case, we go for multiple labels.In case of Multiple labels, if no default label is selected then the first one in the list will be treated as 'Default label'.Below are the various places in PeopleSoft where we come across the Labels for a field that should be displayed on the page.1. Field Definition Level2. Record Field Properties Level3. Page Field Properties Level4.
PeoplecodeLets see each of them in detail.1. Field Definition Level:Lets take Example of EMPLID field. You can see that the default Label ID here is EMPLID and hence the Name which is used for this Label Id will be displayed on the page. But which name would come up Long Name or Short Name. This can verified by simply creating a dummy page and inserting field on the page.
Peoplesoft Getfield
In the Field Properties, you can see that By Default RFT Long Name gets selected.Also Label ID can be same as Field Name.In this case both the Field Name and Default Label ID are same.Some Rules while creating Field Label:The LabelID should not contain any spaces. Also through peoplecode you can change the label of fieldthat is displayed on the page using FieldClass.