chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
msavoritias has joined #picolisp
pablo_escoberg has joined #picolisp
msavoritias has quit [Remote host closed the connection]
seninha has joined #picolisp
seninha has quit [Remote host closed the connection]
inara has quit [Quit: Leaving]
inara has joined #picolisp
seninha has joined #picolisp
seninha has quit [Remote host closed the connection]
seninha has joined #picolisp
pablo_escoberg has quit [Quit: Client closed]
pablo_escoberg has joined #picolisp
<pablo_escoberg>
Hey all. I can't find anything in the docs, but I know there's some undocumented functionality, so I figured I'd ask before implementing myself: Is there a way to make a numeric relation autoincrement? E.g. when a new record is added, search for the highest value, and assign one higher?
seninha has quit [Quit: Leaving]
<beneroth>
pablo_escoberg, check out genKey
<beneroth>
its documented
<beneroth>
standard way would be to add the following T message to your +Entity (replace 'rel with your relation)
<beneroth>
also replace +Entity with your entity name
<beneroth>
(dm T @ (put> This 'rel (genKey 'rel '+Entity)) (pass super))
<beneroth>
(pass super) is there to keep the default behavior of the +Entity T message, which is used in (new) and (request)
<beneroth>
so after your custom T message did its stuff its calling the T message of +Entity
seninha has joined #picolisp
seninha has quit [Remote host closed the connection]