Wednesday, 1 October 2014

Peoplecode-Changing color of Field Text

Here is the situation .

I am making a check that Interview Date should not be empty.

Peoplecode on Field Change Event of the Interview Date Field


TIME_REC.INTRVW_DT_FLD.Style = "PSEDITBOX";



Peoplecode on Field Change Event of the page save button
If (TIME_REC.INTRVW_DT_FLD.Value = "") Then
  
   SetCursorPos(Page.PageName , TIME_REC.INTRVW_DT_FLD , CurrentRowNumber());
   TIME_REC.INTRVW_DT_FLD.Style = "PSERROR";
   &MsgTXt = MsgGetText(20000, 76, "Interview Date Should not be empty.");
   Error (&MsgTXt);
End-If;

No comments:

Post a Comment