On 08/10/2012 12:27 PM, John Fabiani wrote:
> I have a table ( a child table) that I wanted to use cloneRecord() to
> create a new record.
>
> But it appears not to work.
>
> Error (don't have the traceback at the moment)
> Field 'dabo-fieldTypesCorrected' does not exist in the data set.
>
> The field name 'dabo-fieldTypesCorrected' is a constant in dConstants.py
> CURSOR_FIELD_TYPES_CORRECTED = "dabo-fieldTypesCorrected"
>
> Dabo is adding the field to my dataset (also missing is the PK field
> which should be empty).
>
> Anybody know what would cause Dabo to add a field.
>
> Johnf
> _______________________________________________
> 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/[email protected]
>
Here is the traceback

dabo.dException.FieldNotFoundException: Field 'dabo-fieldTypesCorrected' 
does not exist in the data set.

File "C:\Users\Doug\Documents\Projects\deans\pwdomestic.py", line 723, 
in <module>

   app.start()

File "C:\Users\Doug\Documents\Projects\dabo\dabo\dApp.py", line 401, in 
start

   self.uiApp.start()

File "C:\Users\Doug\Documents\Projects\dabo\dabo\ui\uiwx\uiApp.py", line 
459, in start

   self.MainLoop()

File "C:\Python27\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", 
line 8010, in MainLoop

   wx.PyApp.MainLoop(self)

File "C:\Python27\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", 
line 7306, in MainLoop

   return _core_.PyApp_MainLoop(*args, **kwargs)

File 
"C:\Users\Doug\Documents\Projects\dabo\dabo\ui\uiwx\dControlMixin.py", 
line 27, in _onWxHit

   self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)

File "C:\Users\Doug\Documents\Projects\dabo\dabo\ui\uiwx\dPemMixin.py", 
line 1074, in raiseEvent

   super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, 
**kwargs)

File "C:\Users\Doug\Documents\Projects\dabo\dabo\lib\eventMixin.py", 
line 81, in raiseEvent

   bindingFunction(event)

File "C:\Users\Doug\Documents\Projects\deans\pwdomestic.py", line 549, 
in copyProduct

   self.Form.pwproduct.cloneRecord()

File "C:\Users\Doug\Documents\Projects\dabo\dabo\biz\dBizobj.py", line 
2086, in cloneRecord

   cc.cloneRecord()

File "C:\Users\Doug\Documents\Projects\dabo\dabo\db\dCursorMixin.py", 
line 1454, in cloneRecord

   self.appendDataSet((rec,))

File "C:\Users\Doug\Documents\Projects\dabo\dabo\db\dCursorMixin.py", 
line 1434, in appendDataSet

   self.setFieldVal(col, val)

File "C:\Users\Doug\Documents\Projects\dabo\dabo\db\dCursorMixin.py", 
line 1008, in setFieldVal

   _("Field '%s' does not exist in the data set.") % (fld,))

Johnf


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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/[email protected]

Reply via email to