emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: columnview, match and status include all open status
Date: Fri, 08 Jan 2021 09:12:11 +0100	[thread overview]
Message-ID: <87lfd3luec.fsf@mat.ucm.es> (raw)


Hi 

I have the following problem:

#+begin_src 
,* Sheet1                                                                 
  :PROPERTIES:
  :COLUMNS:  %10Sheet(Sheet Nr) %10Ej(Exercise Nr)  %17Date(Date) %7STATUS(Status){X/}
  :END:

,** Group1                                                             :in:G1:
   :PROPERTIES:
   :ID:       G1
   :Grp1:     1
   :Gr:       Group-1
   :STATUS:   [X]
   :Sheet:    H1
   :Ej:       E1
   :END:

,** Group1                                                             :in:G1:
   :PROPERTIES:
   :ID:       G1
   :Grp1:     1
   :Gr:       Group-1
   :STATUS:   [X]
   :Sheet:    H1
   :Ej:       E4
   :END:


,** Group2                                                               :out:
   :PROPERTIES:
   :ID:       G2
   :Grp1:     2
   :Gr:       Group-2
   :STATUS:   [X]
   :Sheet:     H1
   :Ej:       E2
   :END:

,** Group3                                                               :out:
   :PROPERTIES:
   :ID:       G3
   :Grp1:     3
   :Gr:       Group-3
   :STATUS:   [X]
   :Sheet:     H1
   :Ej:       E3
   :END:


,** List of all group members


,#+TBLNAME: Sheet1
,#+BEGIN: columnview   :hlines 2 :skip-empty-rows t :indent nil  :format "%5Sheet(Sheet) %5Grp1(Group)  %5Ej(Exercise) %7STATUS(Status){X/}"
| Sheet | Group | Exercise | Status |
|-------+-------+----------+--------|
|       |       |          | [4/4]  |
|-------+-------+----------+--------|
| H1    |     1 | E1       | [X]    |
|-------+-------+----------+--------|
| H1    |     1 | E4       | [X]    |
|-------+-------+----------+--------|
| H1    |     2 | E2       | [X]    |
|-------+-------+----------+--------|
| H1    |     3 | E3       | [X]    |
,#+END

Now I only want a table with the tag G1

,#+TBLNAME: Group1
,#+BEGIN: columnview   :hlines 2 :skip-empty-rows t :indent nil  :match "G1" :format "%5Sheet(Sheet) %5Grp1(Group)  %5Ej(Exercise) %7STATUS(Status){X/}"
| Sheet | Group | Exercise | Status |
|-------+-------+----------+--------|
| H1    |     1 | E1       | [X]    |
|-------+-------+----------+--------|
| H1    |     1 | E4       | [X]    |
,#+END


But I would like to have 

,#+TBLNAME: Sheet1
,#+BEGIN: columnview   :hlines 2 :skip-empty-rows t :indent nil  :format "%5Sheet(Sheet) %5Grp1(Group)  %5Ej(Exercise) %7STATUS(Status){X/}"
| Sheet | Group | Exercise | Status |
|-------+-------+----------+--------|
|       |       |          | [2/2]  |
|-------+-------+----------+--------|
| H1    |     1 | E1       | [X]    |
|-------+-------+----------+--------|
| H1    |     1 | E4       | [X]    |
,#+END


That seems impossible?

regards

Uwe Brauer 
#+end_src



                 reply	other threads:[~2021-01-08  8:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87lfd3luec.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).