*** dimas has quit IRC *** derek has joined #gnuenterprise *** btami has joined #gnuenterprise *** ayers has joined #gnuenterprise *** reinhard has joined #gnuenterprise good morning good morning! *** kilo has joined #gnuenterprise off to customer wish you the best.... *** kilo has quit IRC back Cool ... I've got a question. I've created my custom forms (yeah!) I've also got my input trigger (PRE-FOCUSOUT) working (yeah! yeah!) but now I would like the form to "remember" the input values for some fields and preset them when a new object is created. This seems "trivial" for plaing values. But I actually want to set "objects" from the datasources s/plaing/plain/ So I starting with a block PRE-COMMIT trigger I'm assuming self is the current block objects live in server land there are no objects on the client (form) side OK.. so I guess I need to cache the foreign keys then... yes there is some magic setting in forms that tells the form to initialize a new record with the values of the last saved record IIRC is that what you want? Yes! But only for some fields! * ayers searches the forms documentation again.... Sounds perfect! Let me try... Yes! Cool! Thanks... Now I need to look up on positioning the cursor when a new record is created.... that's something like setFocus or set_focus from the technotes: - setFocus(object) move the focus/cursor to object I suppose the object is the field it can be the field or the entry OK... I'm doing something wrong,,, maybe ON-NEWRECORD is called a bit too early... or I'm trying to call the method on the wrong object. I've got: self.setFocus(blkMaster.fldAdmScanentry) Ant that raises an Exception: File "<.ON-NEWRECORD>", line 9, in ON_NEWRECORD TypeError: 'NoneType' object is not callable If I drop self then I get: File "<.ON-NEWRECORD>", line 9, in ON_NEWRECORD File "/usr/local/src/svn/gnue/gnue/.svndevelbase/gnue/forms/GFForm.py", line 1969, in __trigger_set_focus self.__find_and_change_focus([object._object], False) ... ... File "/usr/local/src/svn/gnue/gnue/.svndevelbase/gnue/common/datasources/drivers/Base/ResultSet.py", line 177, in __getitem__ raise IndexError IndexError BTW: http://blog.wired.com/27bstroke6/hans_reiser_trial/#49144716 setFocus is a function of the form so the "self" is not correct can you try to set the focus to the entry rather than the field? I currently have the trigger in the block... should I try to retrieve the form from the block first? I see that there is an _form ivar but I'm not finding a real accessor method... I guess I could do the same a GFObj does... i.e.: self.findParentOfType('