Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fernandog

Pages: [1] 2 3 ... 5
1
I too agree with this!

In fact, it would be great if the tasks could be ordered/sorted in a similar fashion as Windows Explorer (or most other interfaces, for that matter..) that is, clickable options at the top ("name",  "start date", "due date", "completed on", etc) with an arrow next to each option so they can be asc or desc.

2
Hi again Cabeza,

I was never able to figure this one out. Think you can give me a bit more help?

Thanks!

Fernando

3
wierd, my status combo is in the top toolbar. i guess i shoud say im using version 1.5.2. I know its an old one, just waiting on some projects to finish before i upgrade.

4
Hi Murz,

The line "this.load();" after each button should refresh the task list. I didnt change anything else on the code...

For what its worth, I placed it between

Code: [Select]
    this.add(this.statusCombo);and

Code: [Select]
};

function ogTasksLoadFilterValuesCombo(newValue){

Unfortunately I dont know how to make a patch file  :-\

5
Community Contributions / Re: no auto-subscribe
« on: July 14, 2010, 05:32:34 pm »
Any idea where in the code this is triggered?

6
Here it is  ;D
They are basically "one-click presets". You can modify it easily enough to fit your needs. Good luck.

7
Community Contributions / Re: Preset task filter queary
« on: July 13, 2010, 03:44:38 pm »
Ok, this is as far as I go. "Good enough" for me :)

This code will add four presets on the task list:
"My To-do List" |  Assigned to: Me, Status: Pending, Group by: Workspace, Order by: Due date
"Tasks for Grabs" | Assigned to: Nobody, Status: Pending, Group by: Workspace, Order by: Due Date
"All Pending Tasks" | Assigned to: Everyone, Status: Pendings, Group by: Nothing, Order by: Due Date
"My Completed Tasks" | Assigned to: Me, Status: Complete, Group by: Nothing, Order by: Completed on


Code: [Select]
this.add(new Ext.Action({
text: 'My To-Do List',
            tooltip: 'Assigned to: Me | Status: Pending | Group by: Worskpace| Order by: Due Date',
            handler: function() {
this.statusCombo.setValue(0);
this.filtercombo.setValue('assigned_to');

    var mycurrentUser = '';
var usersArray = Ext.util.JSON.decode(document.getElementById(config.usersHfId).value);
var companiesArray = Ext.util.JSON.decode(document.getElementById(config.companiesHfId).value);
for (i in usersArray){
if (usersArray[i].isCurrent)
mycurrentUser = usersArray[i].cid + ':' + usersArray[i].id;
}
this.filterNamesCompaniesCombo.setValue(mycurrentUser);


Ext.extend(og.TasksBottomToolbar, Ext.Toolbar, {
getDisplayCriteria : function(){
return {
group_by : this.groupcombo.setValue('workspace'),
order_by : this.ordercombo.setValue('due_date')
}
},
getDrawOptions : function(){
return {
show_workspaces : this.items.item('btnShowWorkspaces').pressed,
show_time : this.items.item('btnShowTime').pressed,
show_tags : this.items.item('btnShowTags').pressed,
show_dates : this.items.item('btnShowDates').pressed
}
}
});
Ext.reg("TasksBottomToolbar", og.TasksBottomToolbar);

this.load();
},
scope: this
}));




   this.add(new Ext.Action({
text: 'Tasks for Grabs',
            tooltip: 'Assigned to: Nobody| Status: Pending | Group by: Workspace | Order by: Due Date',
            handler: function() {
this.statusCombo.setValue(0);
this.filtercombo.setValue('assigned_to');
this.filterNamesCompaniesCombo.setValue('-1:-1');


Ext.extend(og.TasksBottomToolbar, Ext.Toolbar, {
getDisplayCriteria : function(){
this.groupcombo.setValue('workspace');
this.ordercombo.setValue('due_date');
return {
group_by : this.groupcombo.getValue(),
order_by : this.ordercombo.getValue()
}
},
getDrawOptions : function(){
return {
show_workspaces : this.items.item('btnShowWorkspaces').pressed,
show_time : this.items.item('btnShowTime').pressed,
show_tags : this.items.item('btnShowTags').pressed,
show_dates : this.items.item('btnShowDates').pressed
}
}
});
Ext.reg("TasksBottomToolbar", og.TasksBottomToolbar);


this.load();
},
scope: this
}));
   this.add(new Ext.Action({
text: 'All Pending Tasks',
            tooltip: 'Assigned to: Everyone | Status: Pending | Group by: Nothing | Order by: Due Date',
            handler: function() {
this.statusCombo.setValue(0);
this.filtercombo.setValue('assigned_to');
this.filterNamesCompaniesCombo.setValue('0:0');

Ext.extend(og.TasksBottomToolbar, Ext.Toolbar, {
getDisplayCriteria : function(){
this.groupcombo.setValue('nothing');
this.ordercombo.setValue('due_date');
return {
group_by : this.groupcombo.getValue(),
order_by : this.ordercombo.getValue()
}
},
getDrawOptions : function(){
return {
show_workspaces : this.items.item('btnShowWorkspaces').pressed,
show_time : this.items.item('btnShowTime').pressed,
show_tags : this.items.item('btnShowTags').pressed,
show_dates : this.items.item('btnShowDates').pressed
}
}
});
Ext.reg("TasksBottomToolbar", og.TasksBottomToolbar);


this.load();
},
scope: this
}));

   this.add(new Ext.Action({
text: 'My Completed Tasks',
            tooltip: 'Assigned to: Me | Status: Complete | Group by: Nothing | Order by: Completed on',
            handler: function() {
this.statusCombo.setValue(1);
this.filtercombo.setValue('assigned_to');

    var mycurrentUser = '';
var usersArray = Ext.util.JSON.decode(document.getElementById(config.usersHfId).value);
var companiesArray = Ext.util.JSON.decode(document.getElementById(config.companiesHfId).value);
for (i in usersArray){
if (usersArray[i].isCurrent)
mycurrentUser = usersArray[i].cid + ':' + usersArray[i].id;
}
this.filterNamesCompaniesCombo.setValue(mycurrentUser);

Ext.extend(og.TasksBottomToolbar, Ext.Toolbar, {
getDisplayCriteria : function(){
this.groupcombo.setValue('nothing');
this.ordercombo.setValue('completed_on');
return {
group_by : this.groupcombo.getValue(),
order_by : this.ordercombo.getValue()
}
},
getDrawOptions : function(){
return {
show_workspaces : this.items.item('btnShowWorkspaces').pressed,
show_time : this.items.item('btnShowTime').pressed,
show_tags : this.items.item('btnShowTags').pressed,
show_dates : this.items.item('btnShowDates').pressed
}
}
});
Ext.reg("TasksBottomToolbar", og.TasksBottomToolbar);


this.load();
},
scope: this
}));


(enter anywhere after "//Add stuff to the toolbar" on TasksTopToolbar.js)

See the screenshot attached.

Note; With this hack I ran into a little issue and I have not found a fix for it yet. Once you click on any of these presets, the bottom filters (group by and order by) cannot be changed until the page is refreshed or another preset is selected. If anyone cares to fix it, please share. Me and my team will use the presets solely so its not an issue for us.

Tested in IE and Firefox.

Have fun!


8
Community Contributions / no auto-subscribe
« on: July 12, 2010, 03:18:50 pm »
Hi there,

Does anyone know how to turn off "auto-subscribe"?
that is, when you comment ir edit an object you are automatically subscribed to it. I'd like to turn this off.

This should be a setting in the admin configuration

9
Feature requests / Re: Foreground Color or Line in Calendar
« on: July 12, 2010, 11:19:31 am »
I would like this aswell!!

10
Community Contributions / Re: Preset task filter queary
« on: July 09, 2010, 03:16:24 pm »

Sigh...

I got it to work with this code:

Code: [Select]
    this.add(new Ext.Action({
text: lang('my todo list'),
            tooltip: lang('my todo list tooltip'),
            handler: function() {
this.statusCombo.setValue(0);
this.filtercombo.setValue('assigned_to');
this.filterNamesCompaniesCombo.setValue('1:1');


Ext.extend(og.TasksBottomToolbar, Ext.Toolbar, {
getDisplayCriteria : function(){
return {
group_by : this.groupcombo.setValue('workspace'),
order_by : this.ordercombo.setValue('due_date')
}
},
getDrawOptions : function(){
return {
show_workspaces : this.items.item('btnShowWorkspaces').pressed,
show_time : this.items.item('btnShowTime').pressed,
show_tags : this.items.item('btnShowTags').pressed,
show_dates : this.items.item('btnShowDates').pressed
}
}
});
Ext.reg("TasksBottomToolbar", og.TasksBottomToolbar);

this.load();
},
scope: this
}));


This adds a button ('my todo list') which sets the filters to "assigned to: me, status: pending, group by: workspace, order by: duedate".

The problem is, after clicking on this button, the "group by" and "order by" boxes no longer work (no matter what I select, they stay at "workspace" and "duedate")

A little closer, but not quite there :)



11
Community Contributions / Re: Preset task filter queary
« on: July 09, 2010, 09:44:04 am »
Hello!

I use IE8.

The code was working fine changing the "filter" and "status". What I havent done is se tthe "group by" and "order by" (from the bottom)

I managed to set value to the dropdown list for "group by"  with this code:
Code: [Select]
this.add(new Ext.Action({
text: lang('my todo list'),
            tooltip: lang('my todo list tooltip'),
            handler: function() {
this.statusCombo.setValue(0);
this.filtercombo.setValue('assigned_to');
this.filterNamesCompaniesCombo.setValue('1:1');


Ext.extend(og.TasksBottomToolbar, Ext.Toolbar, {
getDisplayCriteria : function(){
this.groupcombo.setValue('workspace');
return {
group_by : this.groupcombo.getValue()
}
},
getDrawOptions : function(){
return {
show_workspaces : this.items.item('btnShowWorkspaces').pressed,
show_time : this.items.item('btnShowTime').pressed,
show_tags : this.items.item('btnShowTags').pressed,
show_dates : this.items.item('btnShowDates').pressed
}
}
});
Ext.reg("TasksBottomToolbar", og.TasksBottomToolbar);



var toolbar = Ext.getCmp('tasksPanelTopToolbarObject');
        toolbar.load();
},
scope: this
}));
but the change is not applied to the tasks. I think I'm getting closer so I'll keep trying...

Thanks again for your help




12
Community Contributions / Re: Preset task filter queary
« on: July 08, 2010, 03:59:17 pm »
Hi Cabeza,

Thanks for the help. Do you think you can be a bit more specific?

Im guessing it'll be something like:

og.TasksBottomToolbar.groupcombo.setValue('workspace');

and this would go somewhere inside the "handler: function() {"
is that right? So far its not working.

Cheers.

13
How To's / Re: where can i change Unique ID prefix?
« on: July 08, 2010, 03:13:22 pm »
in application\models\project_tasks\base\BaseProjectTask.class.php

change      protected $objectTypeIdentifier = 'ta'; to      protected $objectTypeIdentifier = 'SGT';

That should do it. (I just tried it)

PS:
I also noticed its referenced here
public\upgrade\templates\db_migration\1_1_bondiola.php
in concat('ta', format(((id+50) / 100)
i'm not sure if you should change it there as well, probably for upgrading.

14
Community Contributions / Re: Preset task filter queary
« on: July 06, 2010, 03:05:51 pm »
Hi There!

Thanks for the suggestion Cabeza... I had figured out that much :)

I think im close to get this done. I coded the following:

Code: [Select]
   
this.add('-');
    this.add(new Ext.Action({
text: lang('tasks for grabs'),
            tooltip: lang('tasks for grabs'),
            iconCls: 'TasksForGrabs',

handler: function() {
this.statusCombo.setValue(0);
this.filtercombo.setValue('assigned_to');
this.filterNamesCompaniesCombo.setValue('-1:-1');
var toolbar = Ext.getCmp('tasksPanelTopToolbarObject');
        toolbar.load();


},
scope: this
}));

(paste anywhere in TasksTopToolbar.js under "//Add Stuff to the Toolbar")

This basically adds a button named "tasks for grabs" and it shows all tasks assigned to: unassigned, status: pending.
For a "My Todo list" preset (assigned to: me, status: pending), simply use this.filterNamesCompaniesCombo.setValue('1:1');

I am yet to figure out how to set the options on both the top (tasktoptoolbar.js) and the bottom of the toolbat (tasksbottomtoolbar.js) with the same button.

Any pointers would be great!!! Cabeza? Anyone?

thanks!!


15
I'm trying to get this to work if anyone has any ideas or point me in the right direction that would be great.

I would like another dropdown list in the task module called presets.
When any of the options on this list is selected, all the filters change to match it.
ie,
"My todo list" would show tasks assigned to: me status:pending order by: duedate.
"Tasks for grabs" would show tasks assigned to: unassigned status:pending group by: workspace
you get the point...

These presets could be hardcoded for now but ideally the functionality of  allowing the user to create their own presets would be added.



Pages: [1] 2 3 ... 5