[Zope] TinyTablePlus: Problems with quotation marks

Danny William Adair Danny@Adair.net
Wed, 25 Oct 2000 20:37:27 +0200


worked like a charm, thank you very much!

Danny

-----Ursprungliche Nachricht-----
Von: andres@corrada.com [mailto:andres@corrada.com]
Gesendet: Mittwoch, 25. Oktober 2000 20:24
An: Danny William Adair; zope@zope.org
Betreff: Re: [Zope] TinyTablePlus: Problems with quotation marks


You have to identify the column as a "key" column for the setRow method to
recognize an already existing one and modify it in place. You do this by
adding a "*" at the end of the column name. In your case,

Position*

On Wed, Oct 25, 2000 at 05:33:23PM +0200, Danny William Adair wrote:
> I have problems using Shane Hathaway's TinyTablePlus product. Maybe you
can
> help me.
>
> **************************************************************************
> My TinyTablePlus instance:
> **************************************************************************
> ID:
> Items
>
> Title:
> Items on Navigation Bar
>
> Columns:
> Position ShowItem Caption UseImage Image Service URL
>
> Data:
> "1", "yes", "HOME", "yes", "Home", "Home", "/Main"
> "2", "yes", "News", "yes", "News", "News", "/News"
> "3", "yes", "Discussion", "no", "", "Discussion", "/Discussion"
> --------------------------------------------------------------------------
>
> **************************************************************************
> My code: (I want to create a configuration page for a navigation bar,
which
> will have to change a table's rows depending on the contents of some form
> elements)
> **************************************************************************
> <dtml-let Position='1'
>           Caption='test'>
> <dtml-in Items sort=Position>
> <dtml-call "Items.setRow(Position=Position,Caption=newCaption)">
> </dtml-in>
> --------------------------------------------------------------------------
>
> **************************************************************************
> My problem:
> **************************************************************************
> Data afterwards:
>
> "1", NULL, "test", NULL, NULL, NULL, NULL
> "1", "yes", "HOME", "yes", "Home", "Home", "/Main"
> "2", "yes", "News", "yes", "News", "News", "/News"
> "3", "yes", "Discussion", "no", "", "Discussion", "/Discussion"
> --------------------------------------------------------------------------
>
> Shouldn't setRow recognize the existing row and change that one?
> I can't see what I am doing wrong here.
> Does it have anything to do with the double quotation marks in the data?
>
> tia, Danny
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>

--
------------------------------------------------------
Andres Corrada-Emmanuel   Email: andres@corrada.com
------------------------------------------------------