Cannot get a value in Page_load event (v2023)
Posted: Mon Mar 04, 2024 12:45 am
Hello,
I want to get a vaule to check a condition in Edit / Page_load event as the ocde below but it always shown as blank. the field got data and not sure if I missed anything.
// Page Load event
function Page_Load()
{
//Log("Page Load");
global $Page;
$Page->setMessage("Status value = ".$this->process_status->CurrentValue); //*** it shown nothing
If ($this->process_status->CurrentValue !=1)
{
$Page->setMessage("Status value = ".$this->process_status->CurrentValue); //*** it shown nothing
$this->informed_leaver->ReadOnly = TRUE;
$this->process_status->ReadOnly = TRUE;
$this->reminder_sent->ReadOnly = TRUE;
$this->mdp_sponsor->ReadOnly = TRUE;
$this->office_code->ReadOnly = TRUE;
$this->hrid->ReadOnly = TRUE;
$this->full_name->ReadOnly = TRUE;
$this->e_mail->ReadOnly = TRUE;
$this->employee_type->ReadOnly = TRUE;
$this->biz_title->ReadOnly = TRUE;
}
}