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.

[SOLVED] How to add...
 
Notifications
Clear all

[SOLVED] How to add a button in work place

6 Posts
2 Users
0 Reactions
4,753 Views
koorosh
(@keloniton)
Posts: 47
Active Member
Topic starter
 
[#3408]

Hello Dear Mr babynus;
I appreciate if you help me with the following considerations:
1. I want to add a button in the place which we make an activity. Where is the related source code.
2. I want to add some reports. Where is the related source code.
Thank you very much


 
Posted : 23 May 2016 13H18
(@babynus)
Posts: 14952
Member Admin
 

1) in objectButton.php
2) Need to create report in table report, then report parameters in table reportparameter, the corresponding report file in /report


 
Posted : 23 May 2016 23H47
koorosh
(@keloniton)
Posts: 47
Active Member
Topic starter
 

Thanks for your answer. I checked objectButtons.php. As i understood it is related to the buttons on top. I showed the place i want to place my button in the attached photo.
Thank you very much


 
Posted : 24 May 2016 23H07
(@babynus)
Posts: 14952
Member Admin
 

This king of button is designed in drawSpecificItem()
For instance have a look at this fnction in /model/WorkElement.php


 
Posted : 25 May 2016 0H10
koorosh
(@keloniton)
Posts: 47
Active Member
Topic starter
 

Dear Mr babynus
Thank you for your reply Sir. My question refers to the place where this button is supposed to be located. I know how to make a button, but i do not know which file refers to the part i signed in the attached file.
thank you very much.


 
Posted : 25 May 2016 2H05
(@babynus)
Posts: 14952
Member Admin
 

It is really done in drawSpecificItem($item)
You need to have a field $_spe_yourItem in fields list, where you want to place it.
Then in drawSpecificItem($item), test if ($item='yourItem') and generate html objects you need.
Really, have a look at this fnction in /model/WorkElement.php, you should understand better.


 
Posted : 25 May 2016 10H19
Share:

Scroll to Top