Feng Forum

Other Topics => Development => Community Contributions => : darkbalder May 06, 2010, 02:06:32 PM

: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: darkbalder May 06, 2010, 02:06:32 PM
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
: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: allenlook 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.
: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: darkbalder May 06, 2010, 04:01:25 PM
Thanks for interesting ;D

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

:
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:
:
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 (http://gnuwin32.sourceforge.net/packages/patch.htm), I dont know how to use it, but it can be useful


: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: allenlook 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. :)
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: swb May 14, 2010, 05:59:13 AM
@darkbalder,

This is excellent. Works great!  ;D
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: darkbalder 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

: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: alexlim 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.
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: darkbalder May 18, 2010, 02:05:54 AM
Hi  :)
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


: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: wj 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.
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: filriyadh February 01, 2011, 10:07:49 AM
quickly implemented thank you everybody  :)
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: bpritchard July 27, 2011, 12:33:32 PM
Is there anyway to patch an existing build on a webserver?
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: jolivaresd August 22, 2011, 12:23:30 AM
It´s works in Feng Office 1.7.5!!!! it's great!!! enjoy!
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: jolivaresd August 24, 2011, 12:07:53 PM
Friends, how to print or export to pdf the gantt chart? some idea?
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: public_morozov 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?
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: jaume 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!

: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: jjoloka February 18, 2012, 02:33:00 PM
How to fix styles?
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: asdfghj March 15, 2012, 01:42:37 AM
ive got this working for the most part.  i am getting the following error, i think it has something to do with assigning tasks to a company.  it seems to work when using tasks assigned to individuals.

ERROR: ogTasks.getUser(item.assignedToId.split(":")[1]) is null

using feng 1.7.5 on linux.

also, was wondering how to implement the tasks being shown as having a strike through the text if they are completed in gantt view, and which file needs to be edited to fix the formatting issue.  it gets smashed up in the middle columns

thanks for the mod, and any help with these issues.
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: RayGauthier March 12, 2013, 03:54:09 PM
I realize this post is old but it's never too late to thank someone.

Here's quick note of extreme thanks to darkbalder.  I couldn't get the diff-patch to work so I updated all the files manually.  Works like a charm!  1.7.5 fresh install.  Many many thanks.
: Re: METHOD 2: How to Add Gantt Charts (JSGantt) to Feng Office
: Baveskara July 29, 2022, 04:21:43 PM
Sildenafil Citrate 100mg Plus purchase cialis (https://buycialikonline.com)
: tadalafil peptide cost
: Baveskara November 07, 2022, 04:20:16 AM
stromectol 12 mg buy (https://stromectol.buzz) Severe camphor poisoning, a seven year observational study
: cialis professional 40 mg pills
: Baveskara December 16, 2022, 02:50:45 PM
2 MOS social support scale n 0 buy priligy 30mg (http://priligy.homes) Thomas XcqnLjydjhVZZYN 5 19 2022
: is cialis not covered by insurance
: Baveskara January 28, 2023, 05:08:14 AM
PMID 26092062 buy clomid for men online (http://clomid.one)
: how to treat reaction to cialis
: Baveskara January 28, 2023, 05:08:54 AM
clomid for women (http://clomid.beauty) Faint positive tests and blood work showed a chemical pregnancy
: contact lilly cialis email
: Baveskara January 28, 2023, 05:09:28 AM
Women who consume two to five drinks daily have a greater risk of developing breast cancer than those who abstain from alcohol buy zithromax in stores (https://zithromax.mom)