Hmm, actually I was trying to prefill with the last defined in database 
and then adding 1 to the id...


Uwe Grauer schreef:
> Paul McNett wrote:
>   
>> freek verstringe wrote:
>>     
>>> It is attached to a datasource, but how else can I prefill my new Form?
>>> Any suggestion?
>>>       
>> Don't prefill your new form (ui layer), but prefill your new record in the 
>> bizobj 
>> (biz rule layer).
>>     
>
> To do that you would use a default value for your bizobj:
> class MyBizobj(dabo.biz.dBizobj):
>     def initProperties(self):
>         self.DefaultValues['regprod'] = "ddd"
>
> You could also overwrite you bizobjs new() method.
>
> Uwe
>
>
>
[excessive quoting removed by server]

_______________________________________________
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/blu143-w6d3bc9f88ab5a65ec11bdfe...@phx.gbl

Reply via email to