Hi CK,

I played around with the example for a bit and think maybe with Alex's advice 
have gotten something working as you were expecting: 
https://gist.github.com/gcentauri/cf28da3988ae2d53937ca69c79d3b1de

This moves the call to `pool` into the `main` initialization function, and 
assumes we're just going to use a guestbook by the name "Fancy Guestbook".  
This name is stored in a global *Gbk variable to use within our form, instead 
of storing the DB object itself in a global.  I replaced the references to the 
*Gbk global db object with `(db 'nm '+Gbk "Fancy Guestbook")` to request that 
particular object within the form.

The next step would be to replace the globals for holding the input data ( 
*MsgHdr ) with references to the gui components themselves.  I tried doing that 
but kept getting something wrong when trying to reference the gui values 
themselves.

Hope this helps!  I'm still trying to learn myself, so this was eye opening for 
me as well. I feel like my bias from "traditional" web apps keeps me from fully 
understanding the PicoLisp way, and trying to bend it into a form I understand 
more intuitively.  This guestbook example is very similar to what i've been 
trying to figure out.

Regards,
Grant Shoshin

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, August 30, 2019 11:10 AM, C K Kashyap <ckkash...@gmail.com> wrote:

> Thanks Alex .. yup, I've seen the demo app - I think that's the one you 
> showed in the one and only tutorial youtube video on PicoLisp :)
> I think I'll try to familiarize with the Pilog queries a bit and then jump on 
> to my todo app. I did have a look at the wiki too - as a matter of fact, I 
> found someone who built his homepage using the wiki.
> Regards,
> Kashyap
>
> On Fri, Aug 30, 2019 at 7:47 AM Alexander Burger <a...@software-lab.de> wrote:
>
>> On Fri, Aug 30, 2019 at 07:30:33AM -0700, C K Kashyap wrote:
>>> Oh okay ... that makes sense .... I was planning to look at guest.l as a
>>> sample to get started with app but I guess I will stick to the sample here
>>> - https://picolisp.com/wiki/?mindbgui
>>
>> Yes, this is pretty minimalistic. If you dare to look at something bigger and
>> more complex, you probably saw
>>  the "app" demo in the distribution, and the
>> source of the picolisp wiki at https://software-lab.de/wiki.tgz
>>
>>> I'll have to lear Pilog also before that I think :)
>>
>> One step after the other :)
>>
>> ☺/ A!ex
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to