Hello;
I am a new user with PHPMaker. I am working on a project, that I need to filter lookup field based on a value of Sheet_ID. I have tried to pull a value using $this->Sheet_ID->CurrentValue. but it did not worked . plz see the below code.
// Lookup Selecting event
function Lookup_Selecting($fld, &$filter) {
if ($fld->FldName == "Teacher_Name")
$Get_Sheet_ID=$this->Sheet_ID->CurrentValue; // Get Value from fld!!! BUT DOES NOT WORK !!!
$Sheet_Hospital = ew_ExecuteScalar("SELECT `Sheet_Hospital` FROM `sheet_db` WHERE `Sheet_ID` = $Get_Sheet_ID");
ew_AddFilter($filter, "Hospital = '$Sheet_Hospital'");
}
Please help me.
Thank you so much