On Feb 28, 2007, at 7:09 AM, Dave Nation wrote:
> * Is it possible to use ClassDesigner and FieldSpecEditor on the
> code generated by the AppWizard, as the xml files are missing.
FieldSpecEditor is deprecated, and will most likely be disappearing
with the next release. It, as well as the .fsxml file, were a good
first attempt to make customizable wizard apps, but the limitations
were too severe. The current system of outputting code that needs to
be manually edited like any other .py code will most likely remain
for some time. Eventually, when the Class Designer "settles down" so
that the .cdxml format is unlikely to change, AppWizard will be
modified to give you the option of creating the current .py files, or
files that can be edited using the visual tools.
> * I'm trying to replace Foreign Key references with dDropdownLists.
>
> I have followed the wiki 'How to Populate and Use List Controls', and
> have created a method in the biz object for the form to get the names
> and keys lists.
>
> My problem is that I'm unclear how to reference this method in the ui
> code, to pass these lists to set Choices and Keys properties of the
> control.
Let's assume that your bizobj's DataSource is 'people'; you would
get a reference to it using 'self.Form.getBizobj("people")', or, if
this is code for the form, just 'self.getBizobj("people")'. You can
then call the method from that reference, and use the results to set
the control's Choices and Keys properties.
If that's not clear enough, show me the code that creates the dd
list, and I can show you what mods need to be made.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users