ID of activities in HTML

Started by castonepatha, January 20, 2023, 07:10:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

castonepatha

Hi, I'm new here and I hope you can give me some advice. It would help us a lot at school if we could display the ID of the activity in the html page of the schedule. Can you help me? Thanks.

Liviu Lalescu

Hello, and welcome to the forum!

Of course this can be done. The code to be modified should be in src/engine/timetableexport.cpp -- unfortunately it was done by Volker and I am not so well accustomed to it, but I think I can manage, if he cannot help.

In what HTML timetables would you like to see the ID-s of the activities?

Would you like only the exact instructions to modify the code, the modified code, or the executable (for what platform?)?

castonepatha

Thank you for very fast response.  :) I'm using linux version in most cases. I'm able to compile FET app from source but not sure what to change now. It will be nice to see it everywhere.

I'm just going through it briefly and trying to understand the code. I created my first schedule in this software and I'm amazed at what an excellent tool it is. This function is important for us for checking and other corrections in the schedule. It may not be in the final version, but at least it would help us a lot when creating the schedule. Maybe a few instructions would be enough. I really don't want to bother anyone, but if you can help me I will be very grateful. 

Liviu Lalescu

I did something: https://lalescu.ro/liviu/fet/download/custom/castonepatha/

I did a kind of hack, added 2 short lines in src/engine/timetableexport.cpp. It might not be perfect, but it is something to work with.

If you need more/other changes, let me know.

castonepatha

Would it be a big problem if you compiled the binary for me? It will take me a while to get new the virtual machine on the server run with whole environment (x86_64). I don't want to break a solution that is in active operation. Well, on my laptop I have an M1 and the arm virtual machine version of ubuntu, which doesn't help me much.

Liviu Lalescu

OK, sure, what version would you need? AppImage or gnu-linux-executable (AppDir)? It will take me 7.5 minutes to compile + a bit more for the other operations.

castonepatha

The Appimage will be perfect. Once again I want to thank you for your help. You are a very smart person.
How can I donate to your project?

castonepatha

#7
It would be great if you will implemented this function in main version as well. Or with some possibility to turn it off and on. Of course, please you can take it as a recommendation only. I know it's not that simple. "How can I donate to your project?" - I have found :)

Liviu Lalescu

#8
It is done: https://lalescu.ro/liviu/fet/download/custom/castonepatha/

If it is not nice, we can work on it.

Thank you very much for your kind words and intention!

I will write down your suggestion in the TODO list. It is not at all difficult, but until now we did not consider it useful -- on the contrary, we considered that it might clutter the timetables.

I think there was a single other person suggesting this idea.

I'll think about it -- if it can be added as an option to the official FET. @Volker Dirr , what do you say?

castonepatha

Thank you very much.

It is really very useful. Mainly for the back check of activities and subsequent corrections. Imagine that someone sends you requests for changes. For me, the ID is more important than the subject name (more repeated subjects and groups). It can be solved in a different way, but it will be great this way.

castonepatha

I am testing it. It is fantastic :) Wooooou. You are genius.

Liviu Lalescu

I added your suggestion in the TODO file/list (on my hard disk). We'll analyze this.

However, did you notice that with each completely generated there will be generated a file named ..._data_and_timetable.fet, which has each activity locked and should generate instantly? This might help, as in the FET interface > view timetable you can view the activities ID-s, if you click on the table cell.

Liviu Lalescu


castonepatha

I am testing it already and it works...I did not notice that file. It is very fast (I have it remotely on server). I am now switching between official and "castonepatha" version if i want to show IDs I will use moded version and I am locking whole timetable if im switching between versions. It looks taht ist does not break nothing in timetable I am still able to mod timetable data or lock vice versa between versions. "This might help, as in the FET interface > view timetable you can view the activities ID-s, if you click on the table cell." - not sure what do you mean...This function is not there...or do you mean that it will be there implemented? Btw that advanced filter for locking is coool feature that I had missing (before I ve been using 6.7.7).   

Liviu Lalescu

Quote from: castonepatha on January 20, 2023, 10:38:18 PMI am testing it already and it works...I did not notice that file. It is very fast (I have it remotely on server).

It should be normally good and very fast. For unusual files it might take longer or not finish (if you use in very peculiar cases 99.999999% for constraints which are broken in the final timetable). But don't worry about this. Also, if you use <100% preferred rooms or home rooms and in your final timetable an activity does not have a room, after generating on the locked timetable that activity might get a room. But this should not be a problem, I hope.

QuoteI am now switching between official and "castonepatha" version if i want to show IDs I will use moded version and I am locking whole timetable if im switching between versions. It looks taht ist does not break nothing in timetable I am still able to mod timetable data or lock vice versa between versions.

Do you mean the versions are interchangeable? Of course! :)

Quote"This might help, as in the FET interface > view timetable you can view the activities ID-s, if you click on the table cell." - not sure what do you mean...This function is not there...or do you mean that it will be there implemented?

It is there, but might be hidden if you resized the splitters to remove the text detailed description of the activity. There should be a text description, beginning with the activity ID, in the days horizontal and time horizontal timetable view from interface -- just click on a table cell with an activity in it. If you want, you can restore all the default FET settings if you lost this text description (but be careful, you will lose the settings).

QuoteBtw that advanced filter for locking is coool feature that I had missing (before I ve been using 6.7.7).   

I'm glad it is useful! :) I think you refer to the filter suggested by giardiniere in FET-6.8.1?