modify the  split

Started by yahi, April 06, 2021, 10:31:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yahi

i just wanted to know if there is a way to  modify the  split in some activities without removing the  whole information .it seems that  the only thing that  can"t  be changed is the  split .thanks a lot for  the  answer

Darren McDonald

Unfortunately I don't have anything to suggest here, but I've also needed to modify the split for an activity, and had to create a new activity to address this. I wonder if the ability to change the split is something that could be added in the next version of FET?

(In the past, I've exported my activities to a csv file, deleted the original activity, then changed the split for the activity in question in the csv file and imported the updated activity using the csv file import option.)

Liviu Lalescu

It is impossible to increase the split, because it would mode all the ids of the activities. To decrease the split, deactivate some activities.

yahi


onlines92

Currently changing the number of activities per week is very common, if it is possible to unlock the "Modify Activity" function by 2 steps: 1. Delete the old activity, add a new activity without caring about the id constraint then Great
Quote from: Liviu Lalescu on April 07, 2021, 03:51:34 AMIt is impossible to increase the split, because it would mode all the ids of the activities. To decrease the split, deactivate some activities.


Liviu Lalescu

#5
I am sorry, but activities ids are very important in the list of constraints which are referring to activities.

ngoctp29121982

onlines92
Delete the old activity, add a new activity without caring about the id constraint then Great
you can export the file and go to the advanced delete all activities then add the activity in csv and import

ayreon

Quote from: Liviu Lalescu on May 02, 2022, 06:58:20 AMI am sorry, but activities ids are very important in the list of constraints which are referring to activities.


Hi Liviu,
In the past I had the need to modify the split of some activities so I created a small program to do so, maybe you can do something similar in FET?
Removing a subactivity is easy, just delete it and change the total duration of the owner, when I need to increase it I create a new subactivity with a new ID that is computed as the maximum ID+1, this way ID are preserved and all works well. Optionally, I recompute all the IDs (to make them increasing) preserving constraints links

Liviu Lalescu

Hello, ayreon,

Activities id-s from the same component should be i, i+1, ..., i+n-1. Also, it is complicated to check all constraints relating to the removed/added id-s, or recompute.

But I will add your words in the TODO.