- This topic is empty.
- AuthorPosts
-
- 01/04/2011 at 3:26 am #5100
AnonymousParticipantQuest Web Parts do not currently support the SharePoint Gantt View. We have a Gantt Web Part planned as a future Quest Web Part. Until then, a potential workaround is to use the qListview to generate a Javascript Gannt chart using the "Custom Display" option. Here is a link to a pure JavaScript Gantt Chart:
You can use the qListView Custom Display Header Section for steps 1 through 4 and the Body section for step 5, Step 6 would be in the Custom Display Footer Section.
Curtis Kelly
PM, Quest Web Parts for SharePoint
-
03/31/2011 at 10:45 am #6984
AnonymousParticipantA couple questions:
- Where does the javascript get saved on my SP site
- For the body section, how do you get it to load the data that would be returned into the body of the qlistview (or is this just automatic)? It looks like it needs to be in a certain format.
Sorry if this is basic stuff, but I am not sure how to proceed.
Thanks'
- 12/16/2011 at 11:40 am #6985
AnonymousParticipantDid you ever get this to work? Before spending a lot of time trying I thought I'd see if you had any luck.
Thanks!
-
12/20/2011 at 9:40 am #6986
AnonymousParticipantSandy, yes I did get it all working.
In the qListView webpart:
- Add your list to the Viewed Lists section on the Display tab
- Navigate to the Custom Display tab
- Add the top part of the code to the results header section (as defined above by Curtis)
- In results body place the field to be graphed (i.e., <%GanttData%>)
- In the Results footer, add the g.Draw() and the remainder of the script
I had all of the data added into a calculated field formatted in the correct format. If the data is not in the correct format, the chart will not display. I found that you need to eliminate any trailing ',' in the data where parameters are not valued at the end of the data parameters. Once I figured this out, all worked fine.
Jeff
- 12/22/2011 at 11:00 am #6989
AnonymousParticipantAwesome…thanks for the response! I got it working as well…thanks for the great idea and work around for the ugly out of the box gantt charts that SharePoint provides.
- 08/12/2014 at 9:07 am #7355
AnonymousParticipantHi Curtis,
n
I've followed your example but I'm still seeing an empty qListView webpart. Do you have any additional information on this technique?
n
Thanks,
n
Matt
- 03/28/2015 at 11:29 am #7031
AnonymousParticipantCan anyone explain what exactly they put into the body block?
n
- 03/29/2015 at 7:51 am #3899
AnonymousParticipantHello All,
We are trying to determine if it is possible to use the qListView to display a roll-up of multiple lists, using the Gantt View, or at least simulating it. Or should i be looking at qChartView configurations? Has anyone ever attempted this?
Thanks!
- 03/29/2015 at 7:51 am #7032
AnonymousParticipantHi,
n
n
You can reference to the ‘TaskItem’ interface in jsGantt API to set the data in ‘body’ setting. I follow Curtis’s steps, and I can make it works. I would like to share my steps to you.
n
1. I add a HTML Form web part into the page, set the below HTML code in the Source Editor:
n
<link rel="stylesheet" type="text/css" ref="/_Layouts/QuestSoftware/jsgantt.css" />
n
<script language="javascript" src="/_Layouts/QuestSoftware/jsgantt.js"></script>
n
<div style="position:relative" class="gantt" id="GanttChartDIV"></div>
n
<script language="javascript">
n
var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'day');
n
</script>
n
Of course, I put the jsgantt.css and jsgantt.js files into the /layout/ QuestSoftware folder.
n
n
2. Configure qListView to the list, set the ‘Custom Display’ as below:
n
Results Header:
n
<script language="javascript">
n
Result Body:
n
g.AddTaskItem(new JSGantt.TaskItem(<%ID%>, 'Define Chart API', '<%Start Date%>', '<%End Date%>', 'ff0000', 'http://help.com', 0, '<%Resource%>', <%Complete%>, 0, 0, 1));
n
Result Footer:
n
g.Draw();
n
g.DrawDependencies();
n
</script>
n
3. Save all.
n
n
In the step 2, the <%[FIELD]%> will be replace to the real field’s data. After that, the gantt chart should be rendered.
n
n
-
- AuthorPosts
You must be logged in to reply to this topic.