Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x02x03
TWiki plugins: EditTablePlugin
Server OS: Linux
Web server: Apache 2.0
Perl version: 5.6.1
Client OS: WinXP service pack
Web Browser: Firefox 3.0
Categories: Forms, Missing functionality, Plugins

-- VasekOpekar - 16 Nov 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r4 - 2008-11-25 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.