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.

New object
 
Notifications
Clear all

New object

7 Posts
2 Users
0 Reactions
10.9 K Views
(@adrien_obs)
Posts: 19
Active Member
Topic starter
 
[#524]

Hello there,

I would like to build a new Object called Skill which aims to store skills such as Php, Dojo or Java. I would associate it to users.

I’m actually far from success. I’m not able to see the relation between the menu and objects.

I also don’t understand the relation between two objects, like with Risk and Link. There is an array Link in Risk object but that’s all I understand.

So I’ll be glad if anyone could give me some advice.

Thanks by advance.

Best,


 
Posted : 16 May 2012 19H30
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

I’m not able to see the relation between the menu and objects

Menu tagged as object will automatically point to objet of correponding name - nothing to program ! :woohoo: .

There is an array Link in Risk object but that’s all I understand.

properties names $_MyObject will automatically load and store data of MyObjects . MyObject class just need to have propertire refType and refId :woohoo:

Magic B)


 
Posted : 16 May 2012 19H50
(@adrien_obs)
Posts: 19
Active Member
Topic starter
 

Hello,

This is a well made Framework. I'm starting to understand the way you built this application but I still can get what I want.

In order to save myself sometimes, I’ll tell you what I’ve done so you can see what my mistake is.

As I previously told you, I would like to add Skills in your application.

At first I added a new line in Menu table:

id menuSkill 0 object 11 0
107 name idMenu type sortOrder level idle

Then I added the line menuSkill: "Compétences", in tooli18nnlsfrlang.js file.

I also created a skill.php file with some properties and created the corresponding table:
• public $_col_1_2_description;
• public $id; // redefine $id to specify its visible place
• public $idSkill;
• public $name;
• public $description;
• public $idle;

The thing is that I’m not able to see the Skill menu.

Do you have any idea of what I’ve done wrong?

Best,


 
Posted : 21 May 2012 14H20
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

id menuSkill 0 object 11 0
107 name idMenu type sortOrder level idle

idMenu = 0 will set the menu at root of menu tree. Better set idMenu=id of the top menu (in parameteres values), and update order corresponding.

hen I added the line menuSkill: "Compétences", in tooli18nnlsfrlang.js file.

You'd bette update lang.xls file and use button "generate" to generate th .js files for all languages.

The thing is that I’m not able to see the Skill menu.

1) did you create the correspondong table ?
2) you did not create habilitation for the screen, so no one will see it in menu (you can use the habilitatoin screen for this, or insert manually)


 
Posted : 21 May 2012 14H55
(@adrien_obs)
Posts: 19
Active Member
Topic starter
 

Great! I completely forgot about the habilitation screen! I'm now able to see "Compétences" in the menu tree. I can’t see any information though, the process keeps loading. It looks like something goes wrong in "Skill.php". I’ll try to understand what’s going on Objects classes to see what’s wrong.

About "lang.xls", I have no I idea where I can get it. I only have "lang.js".

Thanks for your help,


 
Posted : 21 May 2012 15H52
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

About "lang.xls", I have no I idea where I can get it. I only have "lang.js".

Here, on the download page. :whistle:


 
Posted : 21 May 2012 15H58
(@adrien_obs)
Posts: 19
Active Member
Topic starter
 

hahaha. As the documentation says that lang.xls is stored in /tool/i18n/nls/lang.xls, I didn’t look further.

Thanks,


 
Posted : 21 May 2012 16H01
Share:

Scroll to Top