Thanks Alex, 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
(<table> NIL NIL '((NIL "Updates")) (do 8 (<row> NIL #(gui 1 '(+Obj +TextField) '(dsc +Update) 30) )) (gui 1 '(+View +TextField) 30) )) ) ) 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? Regards, Kashyap On Mon, Oct 28, 2019 at 11:39 PM Alexander Burger <a...@software-lab.de> wrote: > Hi Kashyap, > > > tsk.l is where I have a problem. Updating the existing updates works fine > > but if I add a new update, I get "Data not found" as in the screenshot > > This "Data not found" message is from '+Obj'. > > > (gui 1 '(+Obj +TextField) '(dsc +Update) 30) > > > An '+Obj' field holds an object, displays the relation (here 'dsc'), and > sets > the field to an object with the proper data in this relation according to > the > entered value. > > To find the object from the entered data ("123" in your screenshot), it > searches > the index. > > However, > > > (class +Update +Entity) > > (rel tsk (+Joint) upds (+Task) ) > > (rel dsc (+String)) > > 'dsc' in '+Update' has no index, thus it finds no data. > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >