Hi, i know this is best posted under achievo forum but I need to pass variable
( $selectedproject ) from the Project node to a module i created .
But i only get 0 when i select a project.
what could be the issue
Code:
class patient_cases extends atkNode
{
/**
* Constructor
*/
function patient_cases()
{
[b] global $g_sessionManager;
$selectedproject = array_key_exists("selectedproject", $_REQUEST) ? $_REQUEST["selectedproject"] : "0 or Patientid is not null";[/b]
$this->atkNode("patient_cases");
$this->add(new atkNumberAttribute("Patient_cases_id", AF_AUTOKEY));
$this->add(new atkAttribute("Title", AF_OBLIGATORY));
$this->add(new atkManyToOneRelation("Patientid", "project.project",AF_OBLIGATORY|AF_SEARCHABLE));
// $this->add(new atkDateAttribute("entrydate", "","", date("Ymd"), 0, AF_HIDE));
$this->add(new atkDateAttribute("Onset", "","", date("Ymd"), 0, AF_HIDE));
//$this->add(new atktextAttribute("history",AF_LIST_NO_NULL_ITEM|AF_HIDE_LIST, 15));
$this->add(new atkManyToOneRelation("owner", "employee.employee", AF_READONLY|AF_OBLIGATORY));
$this->add(new atkDateAttribute("entrydate", "","", date("Ymd"), 0, AF_OBLIGATORY));
//$selectedproject = array_key_exists("selectedproject", $_REQUEST) ? $_REQUEST["selectedproject"] : 0;
[b] $this->addFilter("Patient_cases.Patientid = $selectedproject");
[/b]
$this->setTable("Patient_cases");
$this->setOrder("entrydate");
}