emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: property with multiple values, or suggestions for a course planning system
Date: Mon, 22 Jul 2013 09:57:39 +0200	[thread overview]
Message-ID: <87bo5vyqks.fsf@gmail.com> (raw)
In-Reply-To: 2070547464.7395115.1374473025988.JavaMail.root@jaguar7.sfu.ca

Kel Chan <ktc7@sfu.ca> writes:

Hi,

> disclaimer: new to org and emacs.
>
> question: How can I associate more than one value to a property?
>
> I'm implementing a course planning tool b/c the one provided by my
> university sucks.
>
> Ideally, each course offered is a second level heading with a property
> "offering" with multiple possible values: fall, spring, odd spring,
> even summer, etc. And similar to "offering", each heading also have
> "prereq" and "designation" property.
>
> I would like to create a sparse-tree by searching for some property to
> view a tree of courses and plan accordingly. The problem is that each
> property can only have one value.
>
> Is property the best way to implement this system? If not, can you
> suggest something else?

There are multi-value properties in Org-mode and an API exists with
related functions get, put, add, remove and member-in. 

,------------------------------------------------------
| http://orgmode.org/manual/Using-the-property-API.html
`------------------------------------------------------

So you should be able to have a property "offering" with more than one
season, and build a sparse tree by checking if the season at hand is
member in that property. 

-- 
cheers,
Thorsten

  reply	other threads:[~2013-07-22  7:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2033281615.7374702.1374471018405.JavaMail.root@jaguar7.sfu.ca>
2013-07-22  6:03 ` property with multiple values, or suggestions for a course planning system Kel Chan
2013-07-22  7:57   ` Thorsten Jolitz [this message]
2013-07-22 13:13   ` John Hendy

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=87bo5vyqks.fsf@gmail.com \
    --to=tjolitz@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).