Thanks Alex, Here's what my tsk.l looks like now. I am not sure what the search function needs to be because I'd like to handle the incoming Object - The following code does seem to render the form with the right object. However, when I click on "edit" I get a 303. Also, clicking on the scroll button causes a seg fault :(
(html 0 Ttl "@lib.css" NIL (action (idForm "AAAAA" '(choTmp) 'nr '+Update T '(may Delete) '((: nr)) (gui '(+Set +E/R +Chart) '((L) (filter bool L)) '(upds . *ID) 3 '( (U I) (with U (list (: dsc) (: dt) (: tm) ) )) '( (A B) (out "+/tmp/debug.txt" (prinl A B))) ) (<table> 'chart NIL '(("em7" "Updates") ("em7" "Date") ("em7" "Time") ) (do 4 (<row> (alternating) (gui 1 '(+TextField) 100) (gui 2 '(+DateField) 100) (gui 3 '(+TimeField) 100) ) ) ) (scroll 4) ) ) ) (de choTmp (X) (out "+/tmp/dummy.txt" (prinl X))) Regards, Kashyap On Sun, Nov 10, 2019 at 1:45 AM Alexander Burger <a...@software-lab.de> wrote: > Hi Kashyap, > > > After getting my todo app to work by editing the sample app I wanted to > try > > out a standalone version just to see if I understood all the moving > parts. > > I have two files > > <https://gist.github.com/ckkashyap/b14b51510be9a1bd41bb70cf4478f390> - > > todo.l (the main file) and tsk.l > > Good > > > > (html 0 Ttl "@lib.css" NIL > > (form NIL > > (gui '(+Set +E/R +Chart) '((L) (filter bool L)) '(upds . *ID) 3 > > Using the global '*ID' in this way is not a good idea, as it is valid only > directly in the GET transaction of the page, but not during further events > (button press updates (POSTs)). > > The form has to keep the object locally. Normally this is in the 'obj' > property > of the form object (and then accessed with (: home obj) in GUI > components). The > most convenient way is to use 'idForm' instead of plain 'form'; it takes > care to > maintain the object properly. > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >