Show cool things you have done with our products


Post by jakub »

New MVC examples for Gantt/Scheduler using Java backend with a MySQL database. Requires Eclipse to run, all dependencies attached.
Attachments
sch-java.zip
Scheduler-Java CRUD MVC
(10.68 MiB) Downloaded 18563 times
gnt-java.zip
Gantt-Java CRUD MVC
(10.74 MiB) Downloaded 3459 times
JavaScript/Angular/ExtJS consulting - kuba@virtualdesign.pl

Post by seek »

Hello,
I'm triyng to run the gantt example on Oracle DB.
After all changes on the descriptor (of course I also created an Oracle schema based on script for MySQL bundled) all that I can see is in an empty Gantt.
Any suggestion please?
Some years ago, I bought the Gantt+Scheduler for Sencha 3.x, and now I would test if the new version can fit my needs of a starting project.

Thanks
Seek
GanttOracle.jpg
GanttOracle.jpg (248.47 KiB) Viewed 37945 times

Post by nickolay »

Hi,

Well, try to debug why its empty? :) See if the AJAX request is being made to the correct backend's endpoint and that backend returns correct data, etc.

Post by seek »

I don't have Gantt sources, and at the bottom of image, you can see what backend return ;-)

Thanks
Seek

Post by nickolay »

Ok, I see that all your fields in JSON are prefixed with "tas_". Did you make the appropriate changes for the field names in the task model?

See https://www.bryntum.com/products/gantt-for-extjs/docs/ ... stomizable

Post by seek »

nickolay wrote:Ok, I see that all your fields in JSON are prefixed with "tas_". Did you make the appropriate changes for the field names in the task model?

See https://www.bryntum.com/products/gantt-for-extjs/docs/ ... stomizable
I noticed that, too, I was just fixing...
I have never used this setup with Hibernate and Spring, my mistake! excuse me!!

Post by nickolay »

Sure, no prob

Post by seek »

nickolay wrote:Sure, no prob
All fields are "overridable"?
Ext.define('DEMO.model.Task', {
	extend: 'Gnt.model.Task',
	idField: "tas_Id",
	nameField: 	"tas_Name",
	startDateField:"tas_StartDate",
	endDateField: "tas_EndDate",
	durationField: "tas_Duration",
	durationUnitField:"tas_DurationUnit",
	percentDoneField: "tas_PercentDone",
	clsField: "tas_Cls",
	leafField: "tas_Leaf",
	parentIdField: "tas_ParentId",
	phantomIdField: "tas_PhantomId",
	phantomParentIdField:"tas_PhantomParentId",
	fields: [
	  {name: "tas_Resizable", type: "boolean"},
	  {name: "tas_Draggable", type: "boolean"}
	]
});

Post by nickolay »

That's right with exception for "parentIdField" - its a standard field from the Ext.data.NodeInterface. But AFAIK its not used for tree.

Post by Huasheng »

when I run sch-java project, firebug finds an error: 'TypeError: a.getSchedulingView is not a function'. what is the problem?

Post Reply