Tags:
create new tag
view all tags

Question

Hi guys!

I do really like the select parameter in the EditTablePlugin. I’ve build a table with dynamic values in a drop down box of the table columns. This works great! Here an example how I’ve done it:

%EDITTABLE{format="|text,75|select, 1,%CALC{"$LISTMAP(contacts.$item,  %SEARCH{ "META:FORM.*ContactForm;[T]opicClassification.*value\=.*\"Person" type="regex" web="Contacts" nonoise="on" format="$topic" separator=", " }%)"}%|"}%
| *discription* | *contact* | 
| bla bla bla | Contacts.FirstLastName |

The above mentioned feature of the EditTablePlugin works great for columns, but not for rows. Here another example:

%EDITTABLE{format="|label,25|text,75|"}%
| *description:* | bla bla bla | 
| *contact:* | Contacts.FirstLastName %EDITCELL{ select, 1,%CALC{"$LISTMAP(contacts.$item,  %SEARCH{ "META:FORM.*ContactForm;[T]opicClassification.*value\=.*\"Person" type="regex" web="Contacts" nonoise="on" format="$topic" separator=", " }%)"}%"}% |

The same search (as mentioned also in the very top example), will be replaced comma separated by the found entries. After changing and saving the table, it’s the last time, when this cell is going to be dynamic. Here an example for the bad result:

%EDITTABLE{format="|label,25|text,75|"}%
| *description:* | bla bla bla | 
| *contact:* | Contacts.FirstLastName %EDITCELL{ select, 1, Contacts.FirstLastName1, Contacts.FirstLastName2, Contacts.FirstLastName3, etc."}% |

Is this a bug? Any other ideas for fixing that problem?

Regards, Thomas

PS: This issue does occur in the recent version of EditTablePlugin.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian 4.0
Web server:  
Perl version:  
Client OS:  
Web Browser: Firefox 2, Opera 9, IE 6
Categories: Search

-- ThomasEsau - 11 Apr 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

This is a known limitation of the EditTablePlugin: Variables in table cells are expanded. Sorry, I see no workaround for your use case.

-- PeterThoeny - 11 Apr 2008

Thanks for your quick reply. I'm looking forward...

-- ThomasEsau - 14 Apr 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-04-14 - ThomasEsau
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.