r5 - 14 Jul 2007 - 18:31:53 - LorenAlbertYou are here: TWiki >  Main Web > PigsToolDevelopment > ScriptSnippets

ScriptSnippets

Twisty TOC code

%TWISTY{mode="div" showlink="Show the table of contents..." hidelink="Hide" remember="on" showimgleft="%ICONURLPATH{toggleopen-small}%" hideimgleft="%ICONURLPATH{toggleclose-small}%"}%
%TOC%
%ENDTWISTY%

Table Definitions

  • subheading

Edit Table Definitions

  • -

Matching Table and Edit Table Definitions

From ROI Tool

%TABLE{ sort="on" initsort="1" tableborder="0" cellpadding="1" cellspacing="3" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="1" footerrows="0" headeralign="center, center, right, right, right, right, right, right, right, right, center" dataalign="center, center, right, right, right, right, right, right, right, right, center" }%
%EDITTABLE{changerows="on" header="| *Row* | *Date* | *Deposits* | *Cash Value* | *Stock Value* | *Margin* | *Shares* | *Per Share* | *ROI $* | *ROI %* | *Time Stamp* |" format="| row, -1 | date, 25, , %m/%d/%Y [%H:%M] | text, 10, 7572.61 | text, 10 | text, 10 | label, 10, $percntCALC{$quot$dollarFORMAT(NUMBER, 2, $dollarEVAL(($dollarT(R$dollarROW():C$dollarCOLUMN(-2)) - $dollarT(R$dollarROW():C$dollarCOLUMN(-1)))))$quot}$percnt | text, 10, 800 | label, 10, $percntCALC{$quot$dollarFORMAT( NUMBER, 2, $dollarEVAL( $dollarT(R$dollarROW():C$dollarCOLUMN(-3) ) / $dollarT(R$dollarROW():C$dollarCOLUMN(-1)) ))$quot}$percnt | label, 10, $percntCALC{$quot$dollarFORMAT(NUMBER, 2, $dollarEVAL(($dollarT(R$dollarROW():C$dollarCOLUMN(-5)) - $dollarT(R$dollarROW():C$dollarCOLUMN(-6)))))$quot}$percnt | label, 10, $percntCALC{$quot$dollarFORMAT(NUMBER, 2, $dollarEVAL(($dollarT(R$dollarROW():C$dollarCOLUMN(-6)) - $dollarT(R$dollarROW():C$dollarCOLUMN(-7))) / $dollarT(R$dollarROW():C$dollarCOLUMN(-7)) * 100 ))$quot}$percnt | label, 0, %SERVERTIME{"$day $mon $year $hour:$min"}% | "}%

Spreadsheet Formulas in EditTable formatting

Subtract Two Columns Within Same Row - Dollar Formattting

label, 0, $percntCALC{$quot$dollarFORMAT(NUMBER, 2, $dollarEVAL(($dollarT(R$dollarROW():C$dollarCOLUMN(-1)) - $dollarT(R$dollarROW():C$dollarCOLUMN(-2)))))$quot}$percnt

Spreadsheet Formulas within cells

Subtract Two Columns Within Same Row - Dollar Formattting

label, 10, $percntCALC{$quot$dollarFORMAT(NUMBER, 2, $dollarEVAL(($dollarT(R$dollarROW():C$dollarCOLUMN(-2)) - $dollarT(R$dollarROW():C$dollarCOLUMN(-1)))))$quot}$percnt

Table Footers

Column Sums With Dollar Formatting (from credit managment tool)

Total: %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% $0.00 $0.00 $0.00 %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }%  

Sum the 12 column with Dollar Formating

Total: %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% %EDITCELL{ "label, 0" }% $0.00      

Begin Topic


Comments

 
Begin Topic

-- LorenAlbert - 28 Apr 2007

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions

tip TWiki Tip of the Day
Disabling links in large blocks of text
You can disable automatic linking of WikiWords by surrounding the text with noautolink and /noautolink ... Read on Read more

 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback