emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Millar <millarc@verizon.net>
To: dche <dchechin92@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: org-collector - propview display problems
Date: Mon, 14 Mar 2016 13:57:20 -0400	[thread overview]
Message-ID: <56E6FB80.4010101@verizon.net> (raw)
In-Reply-To: <8760wpkzi1.fsf@nicolasgoaziou.fr>

Nicolas,

On 03/14/2016 08:36 AM, Nicolas Goaziou wrote:
> Hello,
>
> dche <dchechin92@gmail.com> writes:
>
>> I have just done the test and I have the following ouptut
>>
>> #+BEGIN: propview :id "december" :conds ((string= SPENDTYPE "food")) :cols
>> (ITEM AMOUNT)
>> | ITEM                                   | AMOUNT |
>> |----------------------------------------+--------|
>> | "**** Grocery Store [2008-12-01 lun.]" |  56.77 |
>> | "**** Restaurant [2008-12-08 lun.]"    |  30.67 |
>> |----------------------------------------+--------|
>> |                                        |        |
>> #+END:
>>
>> Which is nearly the same as the example provides :
>>
>> #+BEGIN: propview :id "december" :conds ((string= spendtype "food")) :cols
>> (ITEM amount)
>> | "ITEM"                           | "amount" |
>> |----------------------------------+----------|
>> | "Grocery Store [2008-12-01 Mon]" |    56.77 |
>> | "Restaurant [2008-12-08 Mon]"    |    30.67 |
>> |----------------------------------+----------|
>> |                                  |          |
>> #+END:
>>
>>
>> I don't know if it is possible to get rid of the stars for the ITEM
>> entries.
> This is already the case in the development version.
>
> Regards,
>
Please let me know what I am missing or if I am just plain nuts.

I copied the org-collector example into my scratchorg file. Before 
executing he first propview block, I killed the following entry

**** Grocery Store [2008-12-01 Mon]
      :PROPERTIES:
      :amount: 56.77
      :spendtype: food
      :END:

I made sure that spendtype and amount in all other entries and in the 
propview blocks were upper cased.
I made sure that the first propview block had no results so it was just

#+BEGIN: propview :id "december" :conds ((string= SPENDTYPE "food")) 
:cols (ITEM AMOUNT)
#+END:

When executed (C-c C-c) the result still was

#+BEGIN: propview :id "december" :conds ((string= spendtype "food")) :cols (ITEM amount)
| "ITEM"                           | "amount" |
|----------------------------------+----------|
| "Grocery Store [2008-12-01 Mon]" |    56.77 | - how possible if there is no entry??????
| "Restaurant [2008-12-08 Mon]"    |    30.67 |
|----------------------------------+----------|
|                                  |          |
#+END:

In the example is :id somehow "hardwired" into the expected results. 
Please note that I also entered, not copied,  the first propview block 
(without the results) character by character into the buffer, executed 
and the Grocery Store still showed up!

If I upper case ID, I get the expected results

#+BEGIN: propview :id "december" :conds ((string= spendtype "food")) :cols (ITEM amount)
| "ITEM"                           | "amount" |
|----------------------------------+----------|
| "Restaurant [2008-12-08 Mon]"    |    30.67 |
|----------------------------------+----------|
|                                  |          |
#+END:

Should all options be upper cased as well? Or what should I read as to 
:id properties?

Charlie Millar

  parent reply	other threads:[~2016-03-14 17:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-29 18:04 org-collector - propview display problems dche
2016-03-02  1:30 ` Charles Millar
2016-03-02 14:11   ` dche
2016-03-03 11:06     ` Nicolas Goaziou
2016-03-03 13:15       ` dche
2016-03-13 19:41         ` Nicolas Goaziou
2016-03-14  9:26           ` dche
2016-03-14 12:36             ` Nicolas Goaziou
2016-03-14 15:08               ` Charles Millar
2016-03-14 17:57               ` Charles Millar [this message]
2016-03-15  9:09               ` dche

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=56E6FB80.4010101@verizon.net \
    --to=millarc@verizon.net \
    --cc=dchechin92@gmail.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).