hello gurus,
another newbie question, trying to learn +QueryChart with an
example of my own, an application for a pizzeria (the reason being if it is
my
own example the concepts stick better than reading the wonderful
documentation
on the website, which by the way I have been doing too :)
As you can see below there are two classes, one for customer basic
info and another to record the order placed.

*| class +Info                                     | class +PizzaOrder
>                    |*

*|----------------------------------------------+---------------------------------------------
> |*

*| (class +Info +Entity)                      | (class +Order +Entity)
>               |*

*| (rel name (+Ref +Need +String))  | (rel ord (+Key +Number))
>  |*

*| (rel number (+Number))                | (rel dat (+Date))
>               |*

*|                                                       | (rel typ
> (+String))                             |*

*|                                                       | (rel sze
> (+String))                            |*

*|                                                       | (rel cus (+Ref
> +Link) name (+Info)) |*

*|                                                       |
>                                        |*



I would like to do a search of the order history for a particular customer,

*(gui 'search '(+DbHint +TextField) '(name +Info) 20)*
*(searchButton '(init> (: home query)))*
*(gui 'query '(+QueryChart) 5*
*   '(goal*
*       (quote*
*          @Nm (val> (: home search))*
*          (select (@search)*
*             ((cus +PizzaOrder) (name +Info))*
*             (tolr @Nm @search cus name) ) ) )*
*   5*
*   (?????????????)*


questions:
1. this 'put' and 'get' is what I find difficult to grasp.

thank you all once again,
regards,
Sundar.

Reply via email to