Użytkownik tdtran tran napisał:
> class SecurityConfigBiz( ConfigBiz):
>
>      def initProperties(self):
>          self.super()
>          self.DataSource = "configs.security" #<---- Can't do this!


Currently, must be source table name. Let to inherit it from parent.


>          self.addWhere( "configurations.configgroup= 'Security'" )
>
> On my form I want to add the bizobj for multiple configuration groups, so I 
> can connect the bizobj to
> different panels displaying the configuration groups.
>
> The DataSource is the unique reference for the bizobj for the form. I have 
> named them differently for the bizobj for each group so they can be added to 
> the
> main form. The trouble is the DataSource field MUST match the table name, 
> otherwise the field will be set as a non update field. So if I have
> SecurityConfigBiz as above, 'configvalue' will not be updated when save is 
> called.
>
> So basically, is there a way of adding bizobjs for the same table to a form? 
> What is the correct way of doing this?
>
> cheers.

Hi.

One of the limitations of Dabo form data manager is inability to manage multiple
bizobjs of the same data source.
It's because the target resolution is based on DataSource property, which could
be the same for multiple data objects.
However you still can add your biz objects to the form assigning them to the 
attributes, e.g.
        form.bizSecurityConfig = app.biz.SecurityConfigBiz(...)
Now to play with form data methods, you must pass bizobj explicitly:
        form.save(form.bizSecurityConfig)
        form.cancel(form.bizSecurityConfig)
and so on for other methods.
-- 
Regards
Jacek Kałucki
_______________________________________________
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