FET Forum

FET Support (English) => Tips and Tricks => Topic started by: yahi on April 06, 2021, 10:31:34 PM

Title: modify the  split
Post by: yahi on April 06, 2021, 10:31:34 PM
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
Title: Re: modify the  split
Post by: Darren McDonald on April 07, 2021, 03:46:05 AM
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.)
Title: Re: modify the  split
Post by: Liviu Lalescu on April 07, 2021, 03:51:34 AM
It is impossible to increase the split, because it would mode all the ids of the activities. To decrease the split, deactivate some activities.
Title: Re: modify the  split
Post by: yahi on April 07, 2021, 07:03:38 AM
thanks a lot
Title: Re: modify the  split
Post by: onlines92 on May 02, 2022, 05:34:25 AM
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.

Title: Re: modify the  split
Post by: Liviu Lalescu on May 02, 2022, 06:58:20 AM
I am sorry, but activities ids are very important in the list of constraints which are referring to activities.
Title: Re: modify the  split
Post by: ngoctp29121982 on May 02, 2022, 08:30:18 AM
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
Title: Re: modify the  split
Post by: ayreon on September 02, 2022, 04:47:10 PM
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
Title: Re: modify the  split
Post by: Liviu Lalescu on September 02, 2022, 04:57:03 PM
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.