From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80675 Path: news.gmane.org!not-for-mail From: Ingo Hohmann Newsgroups: gmane.comp.tex.context Subject: Re: deferred variable lookup in environment? Date: Tue, 05 Feb 2013 16:01:24 +0100 Message-ID: <51111EC4.6060107@ingohohmann.de> References: <510C4B3F.5080304@ingohohmann.de> <20130201233159.GF26731@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1360076507 9276 80.91.229.3 (5 Feb 2013 15:01:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 15:01:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 05 16:02:06 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U2k26-0005va-B7 for gctc-ntg-context-518@m.gmane.org; Tue, 05 Feb 2013 16:02:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79BE210247; Tue, 5 Feb 2013 16:01:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O8wPFzISxQ3r; Tue, 5 Feb 2013 16:01:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 88B9B10227; Tue, 5 Feb 2013 16:01:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3305810227 for ; Tue, 5 Feb 2013 16:01:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dLeAgKbKG5hb for ; Tue, 5 Feb 2013 16:01:35 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 5853A101FC for ; Tue, 5 Feb 2013 16:01:35 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r15F1Vj2020157 for ; Tue, 5 Feb 2013 16:01:31 +0100 Original-Received: from [192.168.178.101] (hmbg-5f76702b.pool.mediaWays.net [95.118.112.43]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Leu47-1Uk3PB32WF-00qhBg; Tue, 05 Feb 2013 16:01:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 In-Reply-To: <20130201233159.GF26731@homerow> X-Provags-ID: V02:K0:WjttovOTD+Q10bT+iEaqWrN+HpYiEarAwabxn/0HWYw Dkafsvy5STZcN9KfbAk94Swl1dTTO9f9j7UePnmnW2RuH9bDiS euQ7rlabBqUb2qgCNofHtmca++l1wl87cx23EZ6N8AcvqQoyz9 W/JWkDkoI5J3ClTwp3QH8G67wmCTu/xNn/TJeVoxe8Q44l2PLA 1ambefMx3Mxgp9r/nMVmp0kMgDDwgkvz7ssh0CStQeJq3pAGYJ ab4eXjD6iAOZdB0KSq9bsTatjQ1Q3zo2j/fo2nOx9iO6W8Jr08 MTzRrZnmUly78QD68q+9FX54yKh3nrvLabMSwTV68HKA5xPz9z snR7cHv39KC6T6PfQcpUxZ3L9xy63QnSnVDfPW0tB X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.10; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RIUD1v5q - dc42b65e5e49 - 20130205 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80675 Archived-At: On 02/02/2013 12:31 AM, Marco Patzer wrote: > On 2013=9602=9602 Ingo Hohmann wrote: > >> I'm trying to have the date in a layer in an environment. In the >> text using the environment, I want to be able to set the date. >> If the date is not set, the current date should be used, otherwise >> the set date. >> This is what I've tried, but it is always the currentdate, that is >> displayes. > You are trying to use the date before it is defined. You can use a > two-pass mechanism: > > \define\mydate{\datasetvariable{mydata}{date}{date}} Thank you Marco, this works. Is it possible to update fields in the datasetvariables table, or is it = only possible to replace the whole table? \setdataset[data][info][date=3D\currentdate] \setdataset[data][info][subject=3D{subject}] After the second line, the first value is gone. Thank you, Ingo ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________