Dabo Folk:
We have a form with two grids. The left grid displays test batches, and the
right grid displays the tubes in the test batches. We'd like to have a
button change the values of a field on the tubes table (the child of the batch
table) for just the rows that belong to the currently highlighted row in
the batch table.
Here's the code we came up with:
dlg = dabo.ui.createForm("Invalidate.cdxml", show=True, parent=self)
if dlg.Accepted:
bizRuns = self.Form.getBizobj("runs")
ThisRun = bizRuns.getFieldVal('run_no')
bizTubes = self.Form.getBizobj("tubes")
begOK = bizTubes.beginTransaction()
bizTubes.replace('result',"Invalid",scope="tubes.run_no=ThisRun")
cmtOK = bizTubes.commitTransaction()
...
...
The problem we're having is with the scope. The traceback says: "invalid
syntax" pointing to the tubes.run_no=Thisrun line.
What's proper syntax for the scope argument?
Thanks,
Jonathan Poor
Rubin & Poor, Inc.
--- 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]