Hi Kashyap,

> I added index to +Update and the UI started giving me a drop down with the
> existing updates. That made me realize that what I really want is for the
> updates to show up uneditable
> ...
>                #(gui 1 '(+Obj +TextField) '(dsc +Update) 30) ))
>                (gui 1 '(+View +TextField)  30) ))

Good.


> And I'd like an additional text field for the new update. The idea being
> that whenever I update a task I can provide comments in the update. I don't
> suppose I even need a chart in that case. How would I create a textfield
> and bind it to updates such that it works for adding a new update?

The most general solution is perhaps a +TextField and a +Button for the update.
The button can do with the text whatever is needed.

For example, creating a new object:

   (gui '(+TextField) 30)
   (gui '(+Button) "Update"
      '(new! '(+Update) 'dsc (val> (field -1))) )

or add something to the object in the current form:

   (gui '(+TextField) 30)
   (gui '(+Button) "Update"
      '(put!> (: home obj) 'someProperty (val> (field -1))) )

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to