Question
Is it possible to init the newly created row with values from the previous row in
EditTablePlugin?
I've tried something like %EDITTABLE{format="|textarea,5x30,%CALC{"$T(R$ROW(-1):C$COLUMN(0))"}%| }%
- where %CALC{"$T(R$ROW(-1):C$COLUMN(0))"}% is a naiive attempt to get the init value from previous row(doesnt work this way)
Any idea, suggestion?
Or will I have to implement "copy values from previously edited" functionality to
EditTablePlugin like %EDITTABLE{format="|textarea,5x30, copy"|}?
Thanks,
Vasek
Environment
--
VasekOpekar - 16 Nov 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.
I am not sure if this is possible with the CALC since CALC can only refer to content above in a table. It looks like you'd need to extend the plugin itself to copy the cell above the current cell when adding a row. Best to discuss the spec first in
EditTablePluginDev. We'd love to see your contribution on twiki.org!
--
PeterThoeny - 17 Nov 2008
Thanks Peter, I thought so. I'll check if I'm able to do the functionality change in
EditTablePlugin.
Btw. I'm not allowed to edit the
EditTablePluginDev topic (no rights)
--
VasekOpekar - 24 Nov 2008
Thanks for the offer to enhance the plugin! On no rights, we temporarily locked down 4 TWiki webs due to a noisy & hostile fork. Please read the yellow broadcast message at the top of this page and opt-in by editing your homepage.
--
PeterThoeny - 25 Nov 2008