Add field to project
Page: 1, 2
Sebastian Tänzer
on Dec 24. 2007. 9:07 am
I'd like to add a "budget" field to the "Edit Project" page and show the field on the overview etc.
How do I do this with a new module?
How do I do this with a new module?
Sebastian Tänzer
on Dec 24. 2007. 9:36 am
Thanks for the routine description. I'll see how far I'll come with this.
As far as I understand you this includes hacking the "core" and we'd have to maintain this in future updates.
Is there no other way to "expand" the default fields without changing the default form templates etc.?
No, adding the budget to the summary field won't do the trick (at least for us) as we're querying the database with a php script directly to generate some print reports (that have a budget column, too). I could parse the summary field but that could lead to other problems if so. (if there are more than 2 people working on a project you can count on so. producing a typo ;) )
As far as I understand you this includes hacking the "core" and we'd have to maintain this in future updates.
Is there no other way to "expand" the default fields without changing the default form templates etc.?
No, adding the budget to the summary field won't do the trick (at least for us) as we're querying the database with a php script directly to generate some print reports (that have a budget column, too). I could parse the summary field but that could lead to other problems if so. (if there are more than 2 people working on a project you can count on so. producing a typo ;) )
Sebastian Tänzer
on Dec 24. 2007. 9:52 am
Thanks for the feedback. Programming experience is not an issue. I just want to reduce the effort for future updates of aC to a minimum.
And by the way: Merry Christmas :)
And by the way: Merry Christmas :)
Hi there,
I followed your steps and managed to add a bunch of custom fields to the Project class for ActiveCollab 1.0. But now that I've upgraded to AC 1.1.2, I tried doing the exact same thing and now when I change the field values, they don't get saved to the DB.
I added fields to the Project Status page and the only way I can change the values of the custom fields is if I change the value of the Project Status. If that remains unchanged when I submit, then none of the other changes in the custom fields are saved. I assume there is some trigger to tell whether or not the status has changed and if not, then don't bother writing anything but it wasn't like this for 1.0 and I can't seem to find it anywhere.
Any ideas?
I followed your steps and managed to add a bunch of custom fields to the Project class for ActiveCollab 1.0. But now that I've upgraded to AC 1.1.2, I tried doing the exact same thing and now when I change the field values, they don't get saved to the DB.
I added fields to the Project Status page and the only way I can change the values of the custom fields is if I change the value of the Project Status. If that remains unchanged when I submit, then none of the other changes in the custom fields are saved. I assume there is some trigger to tell whether or not the status has changed and if not, then don't bother writing anything but it wasn't like this for 1.0 and I can't seem to find it anywhere.
Any ideas?
Hi Ilija,
Thanks for the quick reply and I also have to say thanks for a great product!
Yeah, I actually have added it to the $fields array, created getters and setters and added case statements for each field in setFieldValue();
I'm not sure where else to look.
Thanks,
Garry
Thanks for the quick reply and I also have to say thanks for a great product!
Yeah, I actually have added it to the $fields array, created getters and setters and added case statements for each field in setFieldValue();
I'm not sure where else to look.
Thanks,
Garry



