Page 3 of 3

Re: Deleting Lines in Dayfile Editor

Posted: Sun 19 Feb 2023 11:13 am
by mcrossley
Arrrggghhhh!

I compared the dataTables.altEditor.free.js files on my test instance and the distribution folder.

They are both v2.0, both dated 2017 - quite different contents :groan:
My test version has code for "select" amongst many other changes.

I'm not sure why my diff program was not flagging this, that is tbi. :bash:
Nor do I understand how Paul seems to have the later version as well.

But try this version in /interface/lib/datatableseditor/...

Re: Deleting Lines in Dayfile Editor

Posted: Sun 19 Feb 2023 11:17 am
by mcrossley
My compare program had an exclude for the /data folder - unfortunately, I did not end the compare string with $ so it was also matching /datatables and /datatableseditor :oops:

Re: Deleting Lines in Dayfile Editor

Posted: Sun 19 Feb 2023 11:48 am
by HansR
OK. Succesful i.e. I can delete one (1) line.

However, I did that with the modified (Select... to true) code of datalogs.js and was not able to delete more than one line no matter how many I selected. Restoring the original datalogs.js (so Select... to 'os') did not help.

In all situations only one line was deleted.

(so now my installation now has the new editor code and the restored original datalogs.js and dayfileeditor.js)

We're getting there.

Re: Deleting Lines in Dayfile Editor

Posted: Tue 28 Feb 2023 5:17 pm
by mcrossley
I'm not 100% sure where to go next with this.

It appears that the datatables library is not returning more than one selection for some people. Determining why is a bit hard when it isn't happening on any of your machine/browser combinations!

Re: Deleting Lines in Dayfile Editor

Posted: Tue 28 Feb 2023 7:07 pm
by HansR
mcrossley wrote: Tue 28 Feb 2023 5:17 pm I'm not 100% sure where to go next with this.

It appears that the datatables library is not returning more than one selection for some people. Determining why is a bit hard when it isn't happening on any of your machine/browser combinations!
Neither do I

I just tested it again (deleting two more lines) and it simply does not work.
So, let it be .,. until it is understood ¯\_(ツ)_/¯

Re: Deleting Lines in Dayfile Editor

Posted: Thu 02 Mar 2023 1:34 am
by apple8
HansR wrote: Tue 28 Feb 2023 7:07 pm
So, let it be .,. until it is understood ¯\_(ツ)_/¯
I agree and there is the alternative of editing the day file.txt as a workaround, which I think is only on rare occasions anyway if things are going well. The issue that caused my problems I believe I have overcome by isolating the USB cable away from the other data cables monitoring solar inverters and energy consumption.