Sometimes it will be necessary to control display of field formats through peoplecode.

Example: In PeopleSoft ,a signed number needs to be displayed as integer on a page.That is remove decimals from page display using peoplecode.

We will be using FieldClass for modifying such field properties.


Write Below Code on Component Record RowInit PeopleCode event

Record.Field.DecimalPosition = 0; {Here 0 is the decimal position which is required to be displayed on page}

JOB.AMT1.DecimalPosition = 0;