Tags:
create new tag
view all tags

Question

I have created a custom comment template that contains some logic using the Spreadsheet CALC variable.

When the custom comment renders on the page that references it, the CALC variable is not evaluated.

For example:

If I create a custom comment topic with the following definition in it

%TMPL:DEF{PROMPT:issueassign}%
%CALC{"$ABS(-12.5)"}% 
%TMPL:END%
%TMPL:DEF{OUTPUT:issueassign}%
%POS:BOTTOM%
*%DATE%* - Assigned User: - %WIKINAME%: <BR><BR>
%TMPL:END%

And reference this custom comment topic in another topic with this code

%COMMENT{type="issueassign"  templatetopic="CommentTemplate"}%

The page renders showing the CALC variable and not the evaluated ABS of -12.5... Renders something like this

%CALC{"$ABS(-12.5)"}%

This is obviously a simplified example... My question is how can I use Spreadsheet functions from within comment template topics ????

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: WIN XP SP2
Web Browser: IE7
Categories: Plugins

-- JeffLozier - 03 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.

Not an answer, but I recall that I tried to use a CALC within a comment template and it did not get evaluated. The author of the CommentPlugin probably can give some insights.

-- PeterThoeny - 03 Apr 2008

Closing this question after more than 30 days of inactivity. Please feel free to reopen if needed.

-- PeterThoeny - 11 May 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-05-11 - PeterThoeny
 
  • 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.