Re: autogenerated keys for pilog

2011-03-31 Thread Jakob Eriksson
On Thu, Mar 31, 2011 at 09:57:06AM +0800, Edwin Eyan Moragas wrote: Hi List, what's the best way to go about autogenerated keys for Pilog? i've been digging around a bit and can't find anything related. hints and pointers would be most appreciated. thank you. Hi! I have copied your

Re: autogenerated keys for pilog

2011-03-31 Thread Henrik Sarvell
You get the same behavior as auto increment in for instance MySQL with this one: http://software-lab.de/doc/refG.html#genKey I use it a lot in the VizReader code. I'm not so sure I would've used it much though if I had know about the (id) function from the start:

Re: autogenerated keys for pilog

2011-03-31 Thread Edwin Eyan Moragas
H Alex, On Thu, Mar 31, 2011 at 2:42 PM, Alexander Burger a...@software-lab.de wrote: Hi Edwin, what's the best way to go about autogenerated keys for Pilog? i've been digging around a bit and can't find anything related. Hmm, I am not sure what that is. You mean something along

understanding (id) (was Re: autogenerated keys for pilog)

2011-03-31 Thread Edwin Eyan Moragas
Hi Henrik, On Thu, Mar 31, 2011 at 2:48 PM, Henrik Sarvell hsarv...@gmail.com wrote: You get the same behavior as auto increment in for instance MySQL with this one: http://software-lab.de/doc/refG.html#genKey I use it a lot in the VizReader code. great. thank you. I'm not so sure I

Re: autogenerated keys for pilog

2011-03-31 Thread Alexander Burger
Hi Edwin, In fact, there is a function 'genKey' which generates keys, but this is different from how I understand the above autogenerated keys. 'genKey' simply returns a new number not yet existent in an index. i think this hits the nail squarely. OK, good! I just misunderstood the

Re: autogenerated keys for pilog

2011-03-31 Thread Ana Zgombic
On Thu, Mar 31, 2011 at 3:34 PM, Alexander Burger a...@software-lab.de wrote: Hi Edwin, In fact, there is a function 'genKey' which generates keys, but this is different from how I understand the above autogenerated keys. 'genKey' simply returns a new number not yet existent in an index.

Re: understanding (id) (was Re: autogenerated keys for pilog)

2011-03-31 Thread Alexander Burger
Hi Edwin, I'm not so sure I would've used it much though if I had know about the (id) function from the start: http://software-lab.de/doc/refI.html#id i'd like to understand this more. can you please give an illustration on how to do this? Sorry, this is my fault. The reference gives no

Re: understanding (id) (was Re: autogenerated keys for pilog)

2011-03-31 Thread Henrik Sarvell
I use a lot of asynchronous information going back and forth and to avoid problems with escaping wavy brackets in JSON and/or other problems that might arise from using non alpha numericals as a part of an id it's more convenient to use a number than the actual location of the object. This can be