all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Referencing a cell from a clockview table looks impossible
Date: Tue, 20 Mar 2012 14:18:11 +0100	[thread overview]
Message-ID: <80ty1jif70.fsf@somewhere.org> (raw)
In-Reply-To: 80zkbb1pfg.fsf@somewhere.org

Hello,

I just found the reason: it's because *the "Total time" is in bold*, with `*'
before and after the total (for example: *3:33*).

* Design

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:

* Develop

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

* Report

** Dynamic block

The dynamic block captures the fact that I've worked 3:33 hours yesterday, on
2 different tasks.

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

| Headline     | Time |      |
|--------------+------+------|
| *Total time*   | *3:33* |      |
|--------------+------+------|
| Design       | 1:11 |      |
| TODO Do this |      | 1:11 |
| Develop      | 2:22 |      |
| TODO Do that |      | 2:22 |
#+END:

** Table with remote reference

As said above, referencing an "regular" (not bold) total does work, as in:

| Tasks     | HH:MM | Float | USD     |
|-----------+-------+-------+---------|
| Yesterday | 1:11  |  1.18 | 30:11   |
|-----------+-------+-------+---------|
|           | Time  |  1.18 | 30 Time |
#+TBLFM: $3='(/ (float (org-hh:mm-string-to-minutes $2)) 60.);%.2f::$4=$2*30::@2$2=remote(hours-yesterday,@3$2)::@3$3=vsum(@-I..@-II)

But the real grand total is not referencable:

| 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(@-I..@-II)

Any idea how to work around this?

Best regards,
  Seb

-- 
Sebastien Vauban

  reply	other threads:[~2012-03-20 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 11:29 Referencing a cell from a clockview table looks impossible Sebastien Vauban
2012-03-20 13:18 ` Sebastien Vauban [this message]
2012-03-27 22:50   ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80ty1jif70.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.