ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
clacke[m] has joined #picolisp
karswell has quit [Read error: No route to host]
karswell_ has joined #picolisp
abel-normand has joined #picolisp
abel-normand has quit [Ping timeout: 255 seconds]
<m_mans> Hi all!
<Regenaxer> Hi m_mans!
<m_mans> Regenaxer: good morning! Small question again
<Regenaxer> ok
<m_mans> if I need to do something (some side-effects) when value of gui-object has changed (e.g. by user), should I use +Upd, or +Set ?
<Regenaxer> You can use any of them, but +Upd is what I use
<m_mans> I don't clearly understand signature of +Upd handler. What it should return if I don't want touch normal gui workflow?
<Regenaxer> The exe should evaluate to the desired value of that field
<Regenaxer> upd> is called on all fields after all processing is done
<m_mans> so I should take that value somewhere, e.g. with 'val> ? I mean inside '+Upd handler
<Regenaxer> I think you must always take the value from somewhere (?)
<Regenaxer> Can you give an example?
<m_mans> as I see (dm upd> () ... - there is no input argument, comparing to +Set's (dm set> (Val Dn)...
<m_mans> moment
<Regenaxer> upd> always sets a value, no matter what is in the field
<m_mans> I have (gui '(+E/R +Map +TextField) '(cond : home obj) *ReqPosTypes (cons NIL (mapcar car *ReqPosTypes)))
<Regenaxer> set> can modify the normal value
<Regenaxer> ok
<m_mans> then I want to do some action with other field when the user have changed that field value
<Regenaxer> ah
<m_mans> yeah
<Regenaxer> then (set>
<Regenaxer> oops
<m_mans> sorry for my explanation
abel-normand has joined #picolisp
<Regenaxer> (set> otherField) is better
<Regenaxer> or, put +Upd into that other field
<Regenaxer> or even +View to make it read-only
<m_mans> ah, no. The question is how to know 'when' to change, not 'how' to change
<Regenaxer> "when" is hard-coded
abel-normand has left #picolisp [#picolisp]
<Regenaxer> always in POST after button press
<m_mans> ah, so you mean there is no need to add handler to 'source' field
abel-normand has joined #picolisp
<Regenaxer> Say the fields are next to eacx other
<Regenaxer> then either (set> (field 1)) in the first field
<Regenaxer> or (val> (field -1)) in +Upd or +View in the second field
<m_mans> what if I need to make side-effects only when first field's value is really changed (from it's previous value)
<m_mans> I suppose '+Set' in first field is the only place to detect that
<Regenaxer> then +Chg
<m_mans> ah
<Regenaxer> moment, cat maintenance
<m_mans> sorry, I've simply forgotten about +Chg :(
<Regenaxer> ret
<Regenaxer> np :)
<Regenaxer> +Chg usually does two things:
<Regenaxer> 1 modify the value
<m_mans> reading src
<Regenaxer> 2 update another field
<m_mans> I see that in (dm set> (Val Dn) the 'Dn' parameter is never used
<m_mans> what is the purpose?
<Regenaxer> This is a little strange, yes
<Regenaxer> if the +Chg field is in a chart, you must pass 'T' here
<Regenaxer> it is to avoid infinit update recursion
<Regenaxer> chart updates field, field updates chart
<m_mans> :)
<m_mans> ok, thanks!
<Regenaxer> :)
<m_mans> found it in +field: (and (not Dn) (: chart) (set> (car @) (val> (car @))))
<m_mans> clear
<Regenaxer> :)
orivej_ has joined #picolisp
karswell_ has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 264 seconds]
alexshendi has quit [Read error: Connection reset by peer]
orivej_ is now known as orivej
miskatonic has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
abel-normand has quit [Ping timeout: 240 seconds]
abel-normand has joined #picolisp
orivej has joined #picolisp
beneroth has quit [Ping timeout: 248 seconds]
beneroth has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
jibanes has quit [Ping timeout: 268 seconds]
<m_mans> to the point of +Chg: is it possibe to trigger page reload in such handler?
jibanes has joined #picolisp
<Regenaxer> Not easily, you need to call JavaScript
<Regenaxer> or do you mean *another* page?
<m_mans> the same page
rgrau has joined #picolisp
<Regenaxer> not sure, 'url' might work
<Regenaxer> Why is this necessary
<Regenaxer> ?
<m_mans> e.g. I need to show some hidden gui elements
<Regenaxer> makes sense
<m_mans> they are shown depending on state of the object
<Regenaxer> I think 'url' should do, no need for JS
<Regenaxer> yes, understand
<m_mans> but I suppose +Chg triggers jsForm part, not full POST
<m_mans> I mean changing dropdown box value causes only ajax action
<Regenaxer> yes, but 'url' causes a redirect
<m_mans> can redirect in AJAX-request help to reload whole page?
<Regenaxer> eg. (apply url (url> (: home obj) 9)
<Regenaxer> calls current page on tab 9
<Regenaxer> It causes a GET iirc
<m_mans> hm, ok, I need to delve into it more :)
<m_mans> thanks!
<Regenaxer> I'm not sure if it works at the moment because usually I call 'url' only directly in 'act>' of a +Button
<m_mans> no urgent thing though
<Regenaxer> Just try :)
<m_mans> yeah, but simple button doesn't use JS as I know
<Regenaxer> The problem might be that 'url' interrupts the normal processing of the other fields
<Regenaxer> because it calls 'throw'
<m_mans> also T
mtsd has joined #picolisp
abel-normand has quit [Ping timeout: 268 seconds]
abel-normand has joined #picolisp
mtsd has quit [Quit: Leaving]
mtsd has joined #picolisp
abel-normand has quit [Ping timeout: 248 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
rob_w has joined #picolisp
rob_w has quit [Changing host]
rob_w has joined #picolisp
abel-normand has joined #picolisp
orivej has joined #picolisp
mtsd has quit [Ping timeout: 268 seconds]
mtsd has joined #picolisp
alexshendi has joined #picolisp
mtsd has quit [Quit: Leaving]
rob_w has quit [Quit: Leaving]
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
_whitelogger_ has joined #picolisp
beneroth has quit [*.net *.split]
cess11_ has quit [*.net *.split]
yumaikas has quit [*.net *.split]
C-Keen has quit [*.net *.split]
clacke[m] has quit [*.net *.split]
inara has quit [*.net *.split]
rick42 has quit [*.net *.split]
f8l has quit [*.net *.split]
beneroth has joined #picolisp
cess11_ has joined #picolisp
yumaikas has joined #picolisp
_whitelogger has joined #picolisp
ChanServ has joined #picolisp
gtuser has joined #picolisp
clacke[m] has joined #picolisp
orivej has joined #picolisp
miskatonic has joined #picolisp
clacke[m] has quit [Ping timeout: 246 seconds]
<rick42> hi all
<Regenaxer> Hi rick42!
<rick42> Hi Regenaxer! :)
<rick42> beneroth: i used quicklisp when i was CL programming. it is very nice. however afaict there was only one guy (zache bean) admining it. hope he keeps up the interest. :)
orivej has quit [Ping timeout: 240 seconds]
<rick42> oops s/zache bean/zach beane/ that was a very intrepid, travelling 'e' :)
orivej has joined #picolisp
circ-user-81lkm has joined #picolisp
alexshendi has quit [Ping timeout: 248 seconds]
clacke[m] has joined #picolisp
alexshendi has joined #picolisp
clacke[m] has quit [Remote host closed the connection]
rgrau has quit [Ping timeout: 252 seconds]
<miskatonic> quicklisp only works well with sbcl and some other pieces of bloat
orivej has quit [Ping timeout: 255 seconds]
clacke[m] has joined #picolisp
circ-user-81lkm has quit [Remote host closed the connection]
alexshendi has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
alexshendi has joined #picolisp
nonlinear has quit [Ping timeout: 255 seconds]
clacke[m] has quit [Ping timeout: 255 seconds]
gtuser has left #picolisp [#picolisp]
karswell_ has joined #picolisp
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
abel-normand has quit [Ping timeout: 248 seconds]
a0503d44f has joined #picolisp
karswell_ is now known as karswell
C-Keen has quit [Ping timeout: 240 seconds]
C-Keen has joined #picolisp
C-Keen is now known as Guest69563
Guest69563 has quit [Changing host]
Guest69563 has joined #picolisp
Guest69563 is now known as C-Keen
a0503d44f has quit [Remote host closed the connection]
orivej has joined #picolisp
miskatonic has joined #picolisp
miskaton` has joined #picolisp
alexshendi has quit [Ping timeout: 248 seconds]
beneroth has quit [Excess Flood]
beneroth has joined #picolisp
miskatonic has quit [Ping timeout: 264 seconds]
miskaton` is now known as miskatonic
miskatonic has quit [Remote host closed the connection]