Forum

[SOLVED] How to add...
 
Notifications
Retirer tout

[SOLVED] How to add a button in work place

6 Posts
2 Utilisateurs
0 Reactions
4,751 Vu
koorosh
(@keloniton)
Posts: 47
Trusted Member
Début du sujet
 
[#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


 
Posté : 23/05/2016 1:18 pm
(@babynus)
Posts: 14952
Membre 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


 
Posté : 23/05/2016 11:47 pm
koorosh
(@keloniton)
Posts: 47
Trusted Member
Début du sujet
 

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


 
Posté : 24/05/2016 11:07 pm
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 25/05/2016 12:10 am
koorosh
(@keloniton)
Posts: 47
Trusted Member
Début du sujet
 

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.


 
Posté : 25/05/2016 2:05 am
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 25/05/2016 10:19 am
Share:
Retour en haut