Author Topic: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office  (Read 23578 times)

darkbalder

  • Newbie
  • *
  • Posts: 8
    • View Profile
Hi,

I was reviewing the code here:

http://forums.fengoffice.com/index.php?topic=3826.0

... and I have a gantt version using existing javascript objects (ogTasks.Tasks, ogTasks.Milestones, ...)

I provide an diff file to patch fengooffice. I tried this patch on version 1.7_rc and 1.6.2. I develop it with version 1.7_rc but  with version 1.6.2 works.

Gantt image (gantt.png) should be at public/assets/themes/default/images/16x16/ directory.


Actual features:
- Show active workspace and subworkspaces. if select *All* workspaces, it will show all workspaces.
- Show milestones, tasks subtasks. If a task has subtask, it will be showed as group;
- Task colors are based in dueDate. Completed tasks are showed in blue, pending tasks are showed in orange and late tasks are showed in red.


If you have time, help me testing and posting results, please.

Thanks for your work!  ;D
« Last Edit: May 06, 2010, 04:43:55 pm by allenlook »

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #1 on: May 06, 2010, 02:24:56 pm »
@darkbalder,

That sounds excellent!  Great work.

I wish I knew how to apply and test it - do you have any instructions on how to apply the patch to Feng Office, or can you at least point me to some documentation on how patches get applied?

UPDATE:  Never mind, I found the docs on tools patch and diff, now I just need to find Windows versions of those tools and create a dev environment.
« Last Edit: May 06, 2010, 02:29:06 pm by allenlook »
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

darkbalder

  • Newbie
  • *
  • Posts: 8
    • View Profile
METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #2 on: May 06, 2010, 04:01:25 pm »
Thanks for interesting ;D

I develop on gnu/linux, I can explaine for *nix systems:

Code: [Select]
cd /path/to/fengoffice/
cp /path/to/patch/fo_gantt-1.7_rc.patch.gz ./
gunzip fo_gantt-1.7_rc.patch.gz
cat fo_gantt-1.7_rc.patch |patch -p1
cp /path/to/gantt/image/gantt.png public/assets/themes/default/images/16x16/


Example:
Code: [Select]
cd /var/www/fengoffice/
cp /home/darkbalder/downloads/fo_gantt-1.7_rc.patch.gz ./
gunzip fo_gantt-1.7_rc.patch.gz
cat fo_gantt-1.7_rc.patch |patch -p1
cp /home/darkbalder/downloads/gantt.png public/assets/themes/default/images/16x16/

Here a link to patch for windows http://gnuwin32.sourceforge.net/packages/patch.htm, I dont know how to use it, but it can be useful



allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #3 on: May 06, 2010, 04:24:21 pm »
I downloaded the gnu32 toolset, and tried to apply the patch to a 1.6.2 installation but it force-exited after failing on the first attempt to patch the controller file.

We may be uploading a new version of feng_gantt shortly, and to avoid confusion, let's start a new thread to talk about this new method of integrating jsGantt. :)
« Last Edit: May 06, 2010, 04:44:34 pm by allenlook »
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

swb

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #4 on: May 14, 2010, 05:59:13 am »
@darkbalder,

This is excellent. Works great!  ;D

darkbalder

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #5 on: May 14, 2010, 11:19:14 am »
Thanks!  ;D

I'm working in other changes like sort by properties, i.e sort by completed, start date, due date, and I changed the gantt icon, rename it and replace.

I'll upload other patch soon.

If there are bugs, tell me please


alexlim

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #6 on: May 18, 2010, 12:47:47 am »
Hey guys,

This feature rocks! Took me a while to figure out that the report is in the Tasks tab though.

Thanks.

darkbalder

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #7 on: May 18, 2010, 02:05:54 am »
Hi  :)
Quote
This feature rocks! Took me a while to figure out that the report is in the Tasks tab though.

Sorry, I forgot put information about integration. I try to attach a screenshot but i get an error.

BTW,  Gantt integration is put as an icon in Task Tab



wj

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #8 on: October 31, 2010, 01:06:22 am »
Excellent job you guys done. I have compressed the patch file which is applicable for 1.7.2 as attachment. But two issues still need to fix. One is the chart alignment problem, one is the format button width (due to form input width defines in forms.css) . Hope you guys have good solution.

filriyadh

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #9 on: February 01, 2011, 10:07:49 am »
quickly implemented thank you everybody  :)

bpritchard

  • Freshman
  • *
  • Posts: 17
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #10 on: July 27, 2011, 12:33:32 pm »
Is there anyway to patch an existing build on a webserver?

jolivaresd

  • Freshman
  • *
  • Posts: 18
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #11 on: August 22, 2011, 12:23:30 am »
It´s works in Feng Office 1.7.5!!!! it's great!!! enjoy!
Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas.

jolivaresd

  • Freshman
  • *
  • Posts: 18
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #12 on: August 24, 2011, 12:07:53 pm »
Friends, how to print or export to pdf the gantt chart? some idea?
Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas.

public_morozov

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #13 on: September 19, 2011, 07:13:00 am »
Hi there,

So, does anybody have working gant solution on windows system? When I've patched Feng 1.7.5 with path fo_gantt-1.7_rc.patch, I've got error

Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Whats wrong?

jaume

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
« Reply #14 on: January 16, 2012, 11:19:01 am »
Hi,

I tried to apply the patch to a fresh install 1.7.5 fo with no luck. It look confusing to me as I see 2 methods but I don't clearly understand if they are related. This is what I have done:

-Downloaded and installed fo 1.7.5 (fresh install).
-Copy gantt.png
-Copy patch file to feng DocumentRoot and applied it.

Then I get these errors:

Hunk #1 FAILED at 23.
1 out of 1 hunk FAILED -- saving rejects to file public/assets/themes/default/stylesheets/website.css.rej

I also tried to overwrite files with the rar file posted by user wj with no luck.

Could someone help?

Thanks!