Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Add New column on M...
 
Notifications
Clear all

Add New column on Menu Projects

22 Posts
2 Users
0 Reactions
17.9 K Views
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 
[#1101]

Hello ,

How i can add new column on the menu projects ?


 
Posted : 17 Apr 2013 4H33
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

and how it can be filled ? i want a test field in the menu when i add new project and i have this error when i update $_layout


 
Posted : 17 Apr 2013 18H49
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

You have to create the field in the database and define it in Project.php.

Search a bit in the Furom, you'll find many helpfull posts on the subject.


 
Posted : 17 Apr 2013 19H24
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

i have researched on the forum many hours but i can't find anything! that's why i have post this question :cheer:


 
Posted : 17 Apr 2013 19H27
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

you are very strong!! Thank you :)))


 
Posted : 17 Apr 2013 19H36
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

I'm not strong, I'm just the Best 😉

(my mummy always told me I was the best, and one must always trust his mummy)


 
Posted : 17 Apr 2013 19H42
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

i have add the new colomn in the data base and add this link in the $_layout (

${IdDirection}

) but nothing displayed

what what is missing?


 
Posted : 18 Apr 2013 2H41
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

Two things :

1) idDirection must be listed in the fields list of the Project.php

2) As the new field names in the format idXxxxx, you need to define the Direction class. This means at least :
- create direction table
- create /model/Direction.php class file, with at least id and name


 
Posted : 18 Apr 2013 11H51
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

l'image reste n'est pas clair !! comment le TextField va etre apparait dans le menu projet au moment ou je vais ajouter un nouveau projet??

Voila un autre erreur


 
Posted : 18 Apr 2013 13H21
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

Ce ne sera pas un TextField mais un Select List, du fait de l'appellation idDirection.
Il faut d'ailleurs que le format en base soit du INT(12) non signé...

L'erreur vient du fait que le champ s'appelle idDirection et que la classe Direction n'existe pas. voir le post précédent.


 
Posted : 18 Apr 2013 22H06
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

Le contenu de la class /model/Direction.php c quoi?


 
Posted : 18 Apr 2013 23H16
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

C'est la définition d'un objet "Direction" qui permet de définir une liste de valeurs.


 
Posted : 19 Apr 2013 3H09
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

peut etre vous n'avez pas compris ce que je veux faire! je veux un champ text comme le nom du projet du s'affiche au moment de la creation d'un nouveau projet pour le remplir puis l'afficher comme une colonne du projet. Comment faire ça?? j'ai vraiment besoin de ça :))


 
Posted : 19 Apr 2013 3H48
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

I suffit de nommer le champ "direction" au lieu de idDirection...


 
Posted : 19 Apr 2013 11H36
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

Voila aprés ce que j'ai fai qu'est ce qu'il m'affiche .
J'ai ajouter les lignes suivant :
En Project.php

  • ${IdDirection}
  • "Direction"=>"nobr",

J'ai ajouter une nouvelle fichier nommer Direction.php Contient

Mais j'ai Un champ nommer Nom et un autre champ qui s'affiche sans nommation. c'est quoi le problem?


 
Posted : 19 Apr 2013 15H21
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 
${IdDirection}

Attention au nom de champs, sensible à la casse (saisir "direction" et non "Direction", et remplacer ${IdDirection} par ${direction}
Ceci imposera d'ajouter colDirection dans le fichier de langue.

"Direction"=>"nobr",

A enlever (surtout si vous ne comprenez pas l'effet de ce tag)

Direction.php

Inutile si le champs est textuel


 
Posted : 19 Apr 2013 15H29
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

toujours il n'y a rien! just un champ nommé : nom [] et les autres projets que j'ai ne s'affiche pas dans la listes des projet.et pourquoi la colonne se nomme "colDirection"?


 
Posted : 19 Apr 2013 16H06
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

toujours il n'y a rien! just un champ nommé : nom []

Vous devez avoir specifié à tort une entrée dans $_colCaptionTransposition, du type "direction"=>"name"...

et les autres projets que j'ai ne s'affiche pas dans la listes des projet

Vous devez avoir une erreur : regardez dans le fichier de log, ou testez http://monServer/projectirria/tool/jsonQuery.php?objectClass=Project

pourquoi la colonne se nomme "colDirection"

C'est une norme d'interprétation dans le module d'internationalisation. Pour une colonne xxx, on cherche la valeur colXxx dans le fichier de lanque. Si on la trouve, on substitue la valeur, si on ne la trouve pas on affiche [colXxx] (le libelklé entre crochets)


 
Posted : 19 Apr 2013 17H38
safouen
(@safouen)
Posts: 46
Active Member
Topic starter
 

Les autres problems sont réglés mais toujours il y a le champ nom[] pourtant j'ai ajouter cet ligne dans $_colCaptionTransposition :"Direction"=>"Direction" et comment ce champ va etre liée au champ du tableau direction qui va etre afficher?


 
Posted : 19 Apr 2013 18H16
babynus
(@babynus)
Posts: 14956
Main Contributor Admin
 

Le lien est juste sur le nom du champ.


 
Posted : 19 Apr 2013 21H57
Share:

Scroll to Top