On May 11, 2009, at 9:48 AM, Sibylle Koczian wrote: > It's clear I made quite wrong assumptions about dDropdownList (and > about > the other list controls?). I thought moving through the choices list > would move through the records of the dataset and show the content of > the current DataField, but instead it seems to put the current value > _into_ the DataField of the current record, which doesn't move. Right?
That's exactly correct. You are binding to a column in the dataset, and changing the value in the control changes the value in the current record of the dataset. It would probably make more sense to use a grid, in which navigating to different records moves through the data set. Alternatively, if you want a list control, you can certainly do this, but data binding is not what you want. Instead, populate the list as explained on the wiki, and then in the ValueChanged event of that list control, call the requery of the 'dinge' bizobj, setting the parameter to the selected value of rub_id. You'll need to add a 'where' clause to the BizDinge class: self.addWhere(" rub_id = %s ") To set the parameter, you'd add code like this: val = myDropdownList.KeyValue biz = self.Form.getBizobj("dinge") biz.setParams((val, )) self.Form.requery("dinge") -- Ed Leafe _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/75d3c653-8b24-4a09-b6f3-238745b11...@leafe.com