emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Issue with #+TBLFM in dynamic block
@ 2012-09-27 12:29 flav
  2012-09-27 12:44 ` Michael Brand
  0 siblings, 1 reply; 3+ messages in thread
From: flav @ 2012-09-27 12:29 UTC (permalink / raw)
  To: emacs-orgmode

Slt,

I try to add formulas to a table in a dynamic block (obtained by columns capture), but when I update the dynamic block, the #+TBLFM line disappears and the added columns also disappear.


The file :
#+COLUMNS: %ITEM %Note
Soutenance finale promo 2013

* Note
  #+BEGIN: columnview :hlines 1 :id global :maxlevel 2 :skip-empty-rows t
  | ITEM     | Note | A | B | C | D | F |
  |----------+------+---+---+---+---+---|
  | ** scube | C    | 0 | 0 | 1 | 0 | 0 |
  | ** ids   | D    | 0 | 0 | 0 | 1 | 0 |
  #+TBLFM: $3='(if (equal "A" $2) 1 0)::$4='(if (equal "B" $2) 1 0)::$5='(if (equal "C" $2) 1 0)::$6='(if (equal "D" $2\
) 1 0)::$7='(if (equal "F" $2) 1 0)
  #+END:

** scube
   :PROPERTIES:
   :Note:     C
   :END:
[...]
** ids
   :PROPERTIES:
   :Note:     D
   :END:
[...]

After the C-c C-c

  #+BEGIN: columnview :hlines 1 :id global :maxlevel 2 :skip-empty-rows t
  | ITEM     | Note |
  |----------+------|
  | ** scube | C    |
  | ** ids   | D    |
  #+END:


M-x org-version
Org-mode version 7.9.1 (7.9.1-dist @ /usr/share/emacs/site-lisp/org/)

Do you have an idea ?
Thanks

-- 
flav

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Issue with #+TBLFM in dynamic block
  2012-09-27 12:29 Issue with #+TBLFM in dynamic block flav
@ 2012-09-27 12:44 ` Michael Brand
  2012-09-27 12:52   ` flav
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Brand @ 2012-09-27 12:44 UTC (permalink / raw)
  To: flav; +Cc: emacs-orgmode

Hi flav

It seems to me that you have run into the same issue I tried to
resolve some time ago without success and described here:
http://thread.gmane.org/gmane.emacs.orgmode/48764

On Thu, Sep 27, 2012 at 2:29 PM, flav <flav.justflav@gmail.com> wrote:
> * Note
>   #+BEGIN: columnview :hlines 1 :id global :maxlevel 2 :skip-empty-rows t
>   | ITEM     | Note | A | B | C | D | F |
>   [...]

You can try if no indentation is a workaround:

* Note
#+BEGIN: columnview :hlines 1 :id global :maxlevel 2 :skip-empty-rows t
| ITEM     | Note | A | B | C | D | F |
[...]

Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Issue with #+TBLFM in dynamic block
  2012-09-27 12:44 ` Michael Brand
@ 2012-09-27 12:52   ` flav
  0 siblings, 0 replies; 3+ messages in thread
From: flav @ 2012-09-27 12:52 UTC (permalink / raw)
  To: Michael Brand; +Cc: flav, emacs-orgmode

Thanks !
A lot !


On Thu, Sep 27, 2012 at 02:44:52PM +0200, Michael Brand wrote:
> Hi flav
> 
> It seems to me that you have run into the same issue I tried to
> resolve some time ago without success and described here:
> http://thread.gmane.org/gmane.emacs.orgmode/48764
> 
> On Thu, Sep 27, 2012 at 2:29 PM, flav <flav.justflav@gmail.com> wrote:
> > * Note
> >   #+BEGIN: columnview :hlines 1 :id global :maxlevel 2 :skip-empty-rows t
> >   | ITEM     | Note | A | B | C | D | F |
> >   [...]
> 
> You can try if no indentation is a workaround:
> 
> * Note
> #+BEGIN: columnview :hlines 1 :id global :maxlevel 2 :skip-empty-rows t
> | ITEM     | Note | A | B | C | D | F |
> [...]
> 
> Michael

-- 
flav

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-27 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-27 12:29 Issue with #+TBLFM in dynamic block flav
2012-09-27 12:44 ` Michael Brand
2012-09-27 12:52   ` flav

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).