emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Referencing a cell from a clockview table looks impossible


From: Sebastien Vauban
Subject: [O] Referencing a cell from a clockview table looks impossible
Date: Tue, 20 Mar 2012 12:29:07 +0100
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (windows-nt)

Hello,

I need to access to the "Total time" cell of a clocktable view. I've named it
properly, but references to a given cell all return "#ERROR".

* Work

Some tasks with CLOCK lines, for showing the problem.

** TODO Do this
   :LOGBOOK:
   CLOCK: [2012-03-19 Mon 09:00]--[2012-03-19 Mon 10:11] =>  1:11
   :END:

** TODO Do that
   :LOGBOOK:
   CLOCK: [2012-03-20 Tue 10:00]--[2012-03-20 Tue 12:22] =>  2:22
   :END:

* Report

** Dynamic block

The dynamic block captures the fact that I've worked 1:11 hours yesterday, on
some task of this file.

#+TBLNAME: hours-yesterday
#+BEGIN: clocktable :maxlevel 4 :scope file :block yesterday
Clock summary at [2012-03-20 Tue 11:59], for Monday, March 19, 2012.

| Headline     | Time |      |
|--------------+------+------|
| *Total time*   | *1:11* |      |
|--------------+------+------|
| Work         | 1:11 |      |
| TODO Do this |      | 1:11 |
#+END:

** Table with remote reference

As I need the above time to be converted first to a float, then to money, I'm
using a remote reference to the above "Total Time", and a table which shows
the intermediate results:

| Tasks     | HH:MM  | Float | USD    |
|-----------+--------+-------+--------|
| Yesterday | #ERROR |  0.00 | #ERROR |
|-----------+--------+-------+--------|
|           |        |    0. | 0      |
#+TBLFM: $3='(/ (float (org-hh:mm-string-to-minutes $2)) 
60.);%.2f::$4=$2*30::@2$2=remote(hours-yesterday,@2$2)::@3$3=vsum(@address@hidden)

But the remote reference fails with whichever referenced cell.

Any idea?

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]