emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: ayvango <ayvango@zoho.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: column view extension
Date: Tue, 17 Jan 2012 20:33:56 +0100	[thread overview]
Message-ID: <CALn3zogZYpzb6xaRvgYJE+wCxHaWhnNebsr73zSpqotLVC8GNQ@mail.gmail.com> (raw)
In-Reply-To: <134e8528ba1.-5851758924314670245.5302843484598427533@zoho.com>

Hi ayvango

On Mon, Jan 16, 2012 at 22:00, ayvango <ayvango@zoho.com> wrote:
> I hope someone become interested in creating spreadtree application
> based on existing properties code.

This would be very useful for me too. There are several resources that
go towards this direction:

*formulas in colum spec #+COLUMNS*

First of course average/sum/min/max/... in the manual and talks, see
the links in
http://thread.gmane.org/gmane.emacs.orgmode/42071/focus=42088
but then there is also this very interesting whole thread about
org-columns-compute and org-columns-compile-map
http://thread.gmane.org/gmane.emacs.orgmode/12067

*org-collector*

See e. g.
http://thread.gmane.org/gmane.emacs.orgmode/42071/focus=42091

*dynamic block columnview with #+TBLFM:*

For an example see indent2_tbl4.org.txt attached here
http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00072.html
and for some issues see the whole thread here
http://thread.gmane.org/gmane.emacs.orgmode/48764

*remote() in #+TBLFM:*

A simple example that might be interesting for some special cases but
commonly quite inconvenient to change:
#+BEGIN_SRC org
  , #+STARTUP: odd
  , - hours are edited, the rest is calculated with
  ,   M-x org-table-iterate-buffer-tables
  , * parent
  ,   #+TBLNAME: parent
  ,   | days |
  ,   |    3 |
  ,   #+TBLFM: @>$1 = remote(child1, @>$1) + remote(child2, @>$1)
  , *** child1
  ,     #+TBLNAME: child1
  ,     | days | hours |   relative |
  ,     |    1 |     8 | 0.33333333 |
  ,     #+TBLFM: @>$1 = $2 / 8 :: @>$3 = $1 / remote(parent, @>$1)
  , *** child2
  ,     #+TBLNAME: child2
  ,     | days | hours |   relative |
  ,     |    2 |    16 | 0.66666667 |
  ,     #+TBLFM: @>$1 = $2 / 8 :: @>$3 = $1 / remote(parent, @>$1)
#+END_SRC

Michael

      parent reply	other threads:[~2012-01-17 19:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-16 21:00 column view extension ayvango
2012-01-17  8:50 ` Eric S Fraga
2012-01-17 19:33 ` Michael Brand [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=CALn3zogZYpzb6xaRvgYJE+wCxHaWhnNebsr73zSpqotLVC8GNQ@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=ayvango@zoho.com \
    --cc=emacs-orgmode@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).