Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > RecurringTask in ProjectTask View modes: 
User avatar
Member
Member
hitesh - 4/27/2013 2:55:49 AM
   
RecurringTask in ProjectTask
Hi every one,

Can anyone help me how to develop a web part RecurringTask. Let me elaborate for e.g I want a task (say backup of all files) to be added to user task list on every last day of the month.
Basically it is something like scheduler but in this case its like a regular task for a user.
Please kindly help me.

Thanks

User avatar
Member
Member
kentico_sandroj - 4/27/2013 1:32:11 PM
   
RE:RecurringTask in ProjectTask
Hi,

Are you aiming to just show the user a schedule of the tasks or give them the ability to run the task?

You could use the event calendar for scheduling.

Also, the linked document explains how to schedule custom code.

Please let me know if you have any additional questions.

Thanks,
Sandro

User avatar
Member
Member
hitesh - 4/29/2013 1:33:31 AM
   
RE:RecurringTask in ProjectTask
Hi Sandro,
What I want is the task just adds as a regular task in his task info list (but for a specific interval). So that he sees that he has a task to done. If he completes the task in specified interval he will click Finished button, if not the task will be due or we can change status of task.
I mean the other functionality for a task except for adding a recurring task will be same. So how I'm going to modify the scheduler control according to this. I'm thinking of making a separate table with combination of fields from both PM_ProjectTask and CMS_ScheduleTask. I have recently started using the CMS please help me.

thanks
Hitesh

User avatar
Member
Member
kentico_sandroj - 5/8/2013 3:25:19 PM
   
RE:RecurringTask in ProjectTask
Hi Hitesh,

How are you? I apologize for not getting back to you sooner. Now that I have a better understanding of your aim, I believe the best approach would be using the Project List Web part. This Web part allows you to create projects, assign specified time intervals, assign project managers, authorized roles, etc.

I believe if you use this Web part you will not have to do any customizations, especially database customizations.

Please take a look at the Web part and let me know if this approach would work for you.

User avatar
Member
Member
hitesh - 5/10/2013 6:38:53 AM
   
RE:RecurringTask in ProjectTask
Hi Sandro,
It's ok. I think I have worked out some things regarding the project. I have created a control built inside Edit.ascx control having comments and also about to accomplish recurring task functionality.

Can you guide me on this? I'm stuck. Actually I have modified the ProjectTask table and added some fields from table 'cms.TaskSchedular'. I have 'task interval' field and 'TaskExecution' field and 'IsRecurring task'( this one I added extra). I'm having problem in setting 'schedular1.SchedularInterval' value. It needs string value which I'm providing (fetching from database) but the value is not getting assigned. When I debug it keeps its default value. Actually the problem I'm seeing is in the 'TaskInterval' which is null. And if I try to assign it any value it gives error that it's a read only property.

So I wan't to know If 'TaskInterval' can't not be assigned then how its returning value in Scheduler used in Site Manager. Is there any way to override this functionality or how I can make it to return value that I set in database.

Thanks,
Hitesh

User avatar
Member
Member
hitesh - 5/10/2013 10:54:33 PM
   
RE:RecurringTask in ProjectTask
Hi sandro,
I worked out that at also. Actually TaskInterval is a class in CMS.Scheduler namespace. I used it in my code and created a static object of that class assigned it a value. Now, I'm using it in my scheduler.
Thanks for replying to my post and considering my queries.

Thanks
Hitesh