View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] How to Change Layout/Position of Predecessor, Successor and Linked Elements - ProjeQtOr
 
 

[SOLVED] How to Change Layout/Position of Predecessor, Successor and Linked Elements

More
29 Jul 2015 11:16 #1 by iconic
Firstly I would just like to say, I loved version 5.0.3 It is so much easier to look at and use. I have the new buttons and feel of the program.

The only question I have is how could I change the position or Layout of the the Elements. At the moment the elements are displayed from left to right as ...

Predecessor element | Successor Element | Linked Elements
| Attachments
| Notes

This layout doesn't work for us at the moment. I am trying to find a way to make it display as
Notes | Attachments | Linked Elements
| Predecessor element
| Successor Element

Please Log in or Create an account to join the conversation.

More
29 Jul 2015 11:31 #2 by babynus
Just change order in object definition (for instance in /model/Activity.php for activities)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
29 Jul 2015 11:35 #3 by iconic
Can you be a little more specific as to where I can change the order in object definition. I looked at /model/Activity.php and I can't seem to find anything I can change the order for.

Please Log in or Create an account to join the conversation.

More
29 Jul 2015 11:46 #4 by babynus
My mistake.
It is in ActivityMain.php.
class ActivityMain extends SqlElement {

  // List of fields that will be exposed in general user interface
  // List of fields that will be exposed in general user interface
  public $_sec_description;
  public $id;    // redefine $id to specify its visible place 
  public $reference;
  public $name;
  public $idActivityType;
  public $idProject;
  public $externalReference;  
  public $creationDate;
  public $idUser;
  public $idContact;
  public $Origin;
  public $description;  
  public $_sec_treatment;
  public $idActivity;
  public $idStatus;
  public $idResource;  
  public $handled;
  public $handledDate;
  public $done;
  public $doneDate;
  public $idle;
  public $idleDate;
  public $cancelled;
  public $_lib_cancelled;
  public $idTargetVersion;
  public $result;
  public $_sec_Assignment;
  public $_Assignment=array();
  public $_sec_Progress;
  public $ActivityPlanningElement; // is an object
  
  public $_sec_predecessor;
  public $_Dependency_Predecessor=array();
  public $_sec_successor;
  public $_Dependency_Successor=array();
  public $_sec_Link;
  public $_Link=array();
  public $_Attachment=array();
  public $_Note=array();
  
  public $_nbColMax=3;

But best way is :
-copy Activity.php in /model/custom
- copy fields description from /model/ActivityMain.php to /model/custom/Activity.php
- change order or fields in /model/custom/Activity.php
This should do the job and will not be overwritten by new versions.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
29 Jul 2015 12:03 #5 by iconic
I think I made an error as I am now receiving the following error.
"Fatal error: Class 'Activity' not found in /home/iconicprod/public_html/Project-Management/view/objectList.php on line 42"

I did as you said and made a copy in of Activity.php in .../model/custom

Here is what I copied and is now showing in Activity.php in .../model/custom
require_once('_securityCheck.php');
class ActivityMain extends SqlElement {
 
  // List of fields that will be exposed in general user interface
  // List of fields that will be exposed in general user interface
  public $_sec_description;
  public $id;    // redefine $id to specify its visible place 
  public $reference;
  public $name;
  public $idActivityType;
  public $idProject;
  public $externalReference;  
  public $creationDate;
  public $idUser;
  public $idContact;
  public $Origin;
  public $description;  
  public $_sec_treatment;
  public $idActivity;
  public $idStatus;
  public $idResource;  
  public $handled;
  public $handledDate;
  public $done;
  public $doneDate;
  public $idle;
  public $idleDate;
  public $cancelled;
  public $_lib_cancelled;
  public $idTargetVersion;
  public $result;
  public $_sec_Assignment;
  public $_Assignment=array();
  public $_sec_Progress;
  public $ActivityPlanningElement; // is an object
 
  public $_Note=array();
  public $_Attachment=array();
  public $_sec_Link;
  public $_Link=array();  
  public $_sec_predecessor;
  public $_Dependency_Predecessor=array();
  public $_sec_successor;
  public $_Dependency_Successor=array();
 
  public $_nbColMax=3;
  
   /** ==========================================================================
   * Constructor
   * @param $id the id of the object in the database (null if not stored yet)
   * @return void
   */ 
  function __construct($id = NULL, $withoutDependentObjects=false) {
    parent::__construct($id,$withoutDependentObjects);
  }

   /** ==========================================================================
   * Destructor
   * @return void
   */ 
  function __destruct() {
    parent::__destruct();
  }


}
?>

What have I done wrong?

Please Log in or Create an account to join the conversation.

More
29 Jul 2015 12:08 #6 by babynus
Issue is that you copied all what I showed.
You should just have copied fields (lines starting with public)
The most important is the class definition that must be :
class Activity extends ActivityMain {

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.036 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.