This question about Using an extension: Asked

EditRowPlugin not rendering date fields correctly

I have a table with a date field in it. Included below is a small sample of it for demonstration.

Note:
  • Others on the IRC channel have verified that this problem also exists with the current version
  • I have my EditRowPlugin to process %EDITROW%, so I can control when EditRowPlugin is being used and when EditTablePlugin is being used.

The EditTable example source looks like this:

%TABLE{id="showstabledate" sort="on" initsort="1" initdirection="down" tableborder="2" tablewidth="100%" columnwidths="1&,10%,10%,10%,60%" headerrows="1" footerrows="0" headerbg="#ddddff" headeralign="left"} %EDITTABLE{format="|date,10,,$percntY$percntm$percntd|text,6,|text,6,|text,40,|" changerows="on" headerrows="1"}%
| Date | Time | Channel | Show |
| 20120522 | | SyFy | Face Off |
| 20120525 | | foo | bar |

When I edit that table and enter the date field, I correctly get the calendar. When I save it, the date is correctly displayed in YYMMDD format.


The EditRow example source looks like this:

%TABLE{id="showsrowdate" sort="on" initsort="1" initdirection="down" tableborder="2" tablewidth="100%" columnwidths="1&,10%,10%,10%,60%" headerrows="1" footerrows="0" headerbg="#ddddff" headeralign="left"}% %EDITROW{format="|date,10,,$percntY$percntm$percntd|text,6,|text,6,|text,40,|" changerows="on" headerrows="1"}%
| Date | Time | Channel | Show |
| 20120516 | | SyFy | Face Off |
| 20120530 | | Foo | Bar |

When I edit that table and enter the date field, I correctly get the calendar, and when I click on a date it shows it in YYMMDD format. However, when I save the table, the date does not display in YYMMDD format, and a bunch of source code (TML? JavaScript?) is shown instead of the value. It looks like this:

Note the date column does show the selected date in YYMMDD format, but also shows TML (or whatever it is) before it.

-- DavidKramer - 10 Jul 2012

 

QuestionForm edit

Subject Using an extension
Extension EditRowPlugin
Version Foswiki 1.1.4
Status Asked
Related Topics
I Attachment Action Size Date Who Comment
foswiki_edit_row_date_problem_120709.pngpng foswiki_edit_row_date_problem_120709.png manage 12 K 10 Jul 2012 - 01:56 DavidKramer Screenshot of EditRow problem
Topic revision: r1 - 10 Jul 2012, DavidKramer
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy