Re: [O] org-collector - propview display problems

2016-03-15 Thread dche
Many thanks, I am going to use org-collector again.

It would be great if org-collector could implement kind of regular 
expression in the research of string.
For example with the example provides for org-collector something like 
:conds ((string= SPENDTYPE "health|food")) 
to look for health or food
I don't even know if it possible and I don't have the skill in programming 
to implement such function. Just an expression of a wish. 

Thank you again.





Re: [O] org-collector - propview display problems

2016-03-14 Thread dche
Thank you.

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. 
Thank you again. I will use org-collector again.

Regards




Re: [O] org-collector - propview display problems

2016-03-03 Thread dche
Thank you.

In the first post I used the example proposed in the description of
org-collector that is accessible at this link. 


http://orgmode.org/worg/sources/org-contrib/org-collector-example.org


With this example org-collector is able to gather in a table with the use 
of propview in a #+BEGIN #+END block. To display the table, you have to use
C-c C-c in front of the #+BEGIN: instruction.

With the example proposed in the link  the following results are displayed  :

#+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:




With my actual configuration Org-mode 8.3.4 and GNU Emacs 24.3.1
(i386-mingw-nt6.1.7601), I get the following output :


#+BEGIN: propview :id "december" :conds ((string= spendtype "food")) :cols 

#+END:

#+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match "example"
| ITEM   | (+ 400 amount) |
|+|
| "** December Spending" |  0 |
| "*** Week One" |  0 |
| " Grocery Store [2008-12-01 lun.]" |  0 |
| " Athletic club [2008-12-02 mar.]" |  0 |
| "*** Week Two" |  0 |
| " Restaurant [2008-12-08 lun.]"|  0 |
|+|
|||
#+END:

The org-collector function is previously loaded with (require 'org-collector)

Regards




Re: [O] org-collector - propview display problems

2016-03-02 Thread dche
This function interested me in order to produce subset of data in tabular 
with search criteria included in properties field. I hoped to
use this kind of approach as a kind of database and possibly use one of 
property field to include an information about a link to a file or the use 
of attachment (if possible this way).

This function is in contrib folder. Is this status that makes it not 
supported ?

Regards






[O] org-collector - propview display problems

2016-03-01 Thread dche
Hello 

I tried to use org-collector with the example propose
at this link http://orgmode.org/worg/org-contrib/org-collector.html

I would like to use propview as cited in example but whatever I do,
I get the outputs below.



* Example

#+BEGIN: propview :cols (ITEM amount)
| ITEM   | amount |
|+|
| "* Example"|  0 |
| "** December Spending" |  0 |
| "*** Week One" |  0 |
| " Grocery Store [2008-12-01 lun.]" |  0 |
| " Athletic club [2008-12-02 mar.]" |  0 |
| "*** Week Two" |  0 |
| " Restaurant [2008-12-08 lun.]"|  0 |
|+|
|||
#+END:

#+BEGIN: propview :id "december" :conds ((string= spendtype "food")) :cols 
(ITEM amount)
| ITEM | amount |
|--+|
|--+|
|  ||
#+END:

#+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match "example"
| ITEM   | (+ 400 amount) |
|+|
| "** December Spending" |  0 |
| "*** Week One" |  0 |
| " Grocery Store [2008-12-01 lun.]" |  0 |
| " Athletic club [2008-12-02 mar.]" |  0 |
| "*** Week Two" |  0 |
| " Restaurant [2008-12-08 lun.]"|  0 |
|+|
|||
#+END:

** December Spending
   :example:
   :PROPERTIES:
   :ID: december
   :END:

*** Week One
 Grocery Store [2008-12-01 Mon]
 :PROPERTIES:
 :amount: 56.77
 :spendtype: food
 :END:
 Athletic club [2008-12-02 Tue]
 :PROPERTIES:
 :amount: 75.00
 :spendtype: health
 :END:
*** Week Two 
 Restaurant [2008-12-08 Mon]
 :PROPERTIES:
 :amount: 30.67
 :spendtype: food
 :END:

The item is not extracted as expected (there are "*" that are also 
displayed corresponding of the level of entries) and the extracted
field is zero whatever of the effective value of this field (here 
amount).

This is test with 8.3.4 and GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601).



Regards