Now I have the same problem, so here's the cdxml:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<dForm CxnFile="path://..\..\..\..\D:\dabo-0.8.2\ide\sample.cnxml"
Width="618" Top="66" Height="437" Caption="Dabo Class Designer"
designerClass="DesForm" CxnName="sample" UseSizers="True" Left="171">
<code>
<createBizobjs><![CDATA[
def createBizobjs(self):
class CustomerBizobj(dabo.biz.dBizobj):
def afterInit(self):
self.DataSource = "customer"
self.KeyField = "pkid"
self.addFrom("customer")
self.addField("city")
self.addField("company")
self.addField("contact")
self.addField("maxordamt")
self.addField("country")
self.addField("pkid")
def validateRecord(self):
"""Returning anything other than an empty string from
this method will prevent the data from being saved.
"""
ret = ""
# Add your business rules here.
return ret
customerBizobj = CustomerBizobj(self.Connection)
self.addBizobj(customerBizobj)
]]>
</createBizobjs>
</code>
<dSizer SlotCount="1" designerClass="LayoutSizer"
Orientation="Vertical">
<dGridSizer HGap="5" sizerInfo="{'Proportion': 1, 'Border': 10,
'Expand': True}" Rows="5" designerClass="LayoutGridSizer" VGap="5"
MaxDimension="r" Columns="2">
<dLabel Caption="city" sizerInfo="{'Proportion': 0,
'ColExpand':
False, 'VAlign': 'Middle', 'Expand': False, 'RowExpand': False}"
designerClass="controlMix" rowColPos="(0, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0, 'ColExpand':
True, 'VAlign':
'Middle', 'Expand': True, 'RowExpand': False}" rowColPos="(0, 0)"
designerClass="controlMix" DataField="city"
DataSource="customer"></dTextBox>
<dLabel Caption="company" sizerInfo="{'Proportion': 0,
'ColExpand':
False, 'VAlign': 'Middle', 'Expand': False, 'RowExpand': False}"
designerClass="controlMix" Name="dLabel1" rowColPos="(0, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0, 'ColExpand':
True, 'VAlign':
'Middle', 'Expand': True, 'RowExpand': False}" Name="dTextBox1"
rowColPos="(0, 0)" designerClass="controlMix" DataSource="customer"
DataField="company"></dTextBox>
<dLabel Caption="contact" sizerInfo="{'Proportion': 0,
'ColExpand':
False, 'VAlign': 'Middle', 'Expand': False, 'RowExpand': False}"
designerClass="controlMix" Name="dLabel2" rowColPos="(0, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0, 'ColExpand':
True, 'VAlign':
'Middle', 'Expand': True, 'RowExpand': False}" Name="dTextBox2"
rowColPos="(0, 0)" designerClass="controlMix" DataSource="customer"
DataField="contact"></dTextBox>
<dLabel Caption="country" sizerInfo="{'Proportion': 0,
'ColExpand':
False, 'VAlign': 'Middle', 'Expand': False, 'RowExpand': False}"
designerClass="controlMix" Name="dLabel3" rowColPos="(0, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0, 'ColExpand':
True, 'VAlign':
'Middle', 'Expand': True, 'RowExpand': False}" Name="dTextBox3"
rowColPos="(0, 0)" designerClass="controlMix" DataSource="customer"
DataField="country"></dTextBox>
<dLabel Caption="maxordamt" sizerInfo="{'Proportion': 0,
'ColExpand': False, 'VAlign': 'Middle', 'Expand': False, 'RowExpand':
False}" designerClass="controlMix" Name="dLabel4" rowColPos="(0,
0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0, 'ColExpand':
True, 'VAlign':
'Middle', 'Expand': True, 'RowExpand': False}" Name="dTextBox4"
rowColPos="(0, 0)" designerClass="controlMix" DataSource="customer"
DataField="maxordamt"></dTextBox>
</dGridSizer>
</dSizer>
</dForm>
_______________________________________________
Post Messages to: [email protected]
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/dabo-users/[EMAIL PROTECTED]