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
--
ThomasEsau - 11 Apr 2008
Answer
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