Difference between FieldEdit and FieldChange events

Field Change PeopleCode is for recalculating field values based on changes made to other fields. For instance, suppose you have 2 fields, rate and quantity and there is another field which shows total cost. Whenever a value is changed in either of the two fields, rate and quantity, the total cost will also change. So on the field change event of those two fields, you can write code to calculate the total cost.

Field edit event is used for validating field values. If the field doesn't pass the validation, an error message is shown and the page is redisplayed with that field marked in red. For instance, if you do not want a certain quantity to exceed 1,000 and it does, the system should display an error. You can write PeopleCode that will check the quantity, if it is greater than 1000 an error message will be displayed.
發佈了3 篇原創文章 · 獲贊 4 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章