Item1095: EditTablePlugin: Hide ugly long CALC when editing replaced by static text CALC
Priority: Enhancement
Current State: Closed
Released In: 1.0.6
Target Release: patch
Wouldn't it be nice to hide the CALC when editing a table. Of course only when it is in a label or header or footer.
--
ArthurClemens - 17 Feb 2009
Yes I have also seen this problem. I use looong CALC macros in footer rows or label columns and in edit mode this makes the columns very wide.
This problem occurs after we changed so that ETP does not change macros to the static value. This was a good and important change, but created this new issue.
It may not only be CALC but often is.
I have been thinking that maybe instead of showing the header and label fields as we do today, we show the value in a non-editable text field with same width as a non-header/footer field has, and maybe in gray to indicate that the content cannot be edited.
I do not know any way to truncate the visible text by CSS, but I believe it is possible to define a text field which is non-editable.
--
KennethLavrsen - 19 Feb 2009
Showing the value may be a problem when CALC copies another part of the table, for instance the selected values.
--
ArthurClemens - 19 Feb 2009
Putting the text inside a read-only textfield is a good idea.
This should only be done with label fields, otherwise the text is no longer editable.
Fix for 1.0.5
--
ArthurClemens - 06 Mar 2009
Reopening
Good you did not merge this over to Release01x00. And please do not before after 1.0.4 official release has been out for some days.
There are some side effects of this enhancement. Try testing a little more with multiple table on a topic. And try where the other tables also have CALC in them. They do not need to be tables with EDITTABLE tag. You will notice that this enhancement has the side effect that those CALCS are not rendered.
Another problem is that the non-edit field works for labels that are simple bold text. But not for a label column.
I will help with more testing when 1.0.4 is out. For now keep the changes to trunk and do not release the plugin to Extensions web until we have it stable.
I do look forward to having this enhancement stable. It will be very useful.
--
KennethLavrsen - 07 Mar 2009
Try testing a little more with multiple table on a topic. And try where the other tables also have CALC in them. They do not need to be tables with EDITTABLE tag. You will notice that this enhancement has the side effect that those CALCS are not rendered.
In fact I have tested this, and found no problem. Except for EDITROW, that does not render CALC when editing an edit table - but that is another plugin.
Another problem is that the non-edit field works for labels that are simple bold text. But not for a label column.
I don't know what that means. I have also tested this table, that contains a label column:
--
ArthurClemens - 07 Mar 2009
The first problem turned out to also be in Release01x00 branch and reported as
Item1220
The 2nd problem happens on a table where I have two CALCs within a label
Cost of Stations
--
KennethLavrsen - 08 Mar 2009
With the code refactoring with
Item1406, the ugly raw CALCs have gone. Instead they are now replaced by faulty calculations. It looks better, but I can imagine this will lead to misinterpretations.
So I am still in favor of replacing the calculations by something like:
FORMULA .
--
ArthurClemens - 14 Jun 2009
We actually got this fully fixed in
Item1726. So setting this in
WaitingForRelease as the 1726 also fixed a bug. This way both the fix and the enhancement goes in release notes
--
KennethLavrsen - 15 Jun 2009