All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
  Print view

Pass Variable Session
Author Message
PostPosted: Tue Dec 11, 2018 7:45 pm 

Joined: Wed Aug 01, 2007 9:09 am
Posts: 121
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

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->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");



Re: Pass Variable Session
PostPosted: Tue Dec 18, 2018 3:31 am 
User avatar

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 311
Location: Mumbai, India
$_REQUEST GET Request? in browser url does selectedproject appears? Can u share the URL?


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 17 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group