Hi,

Because page locking in datanav edit pages on empty data source doesn't work
on Windows platform correctly (because of GetSelection() method),
I replaced this feature with Enable/Disable mechanism.
If somebody was interested in, I "committed" small method fired
in edit page OnPageEnter event:
<code>
     def checkChildrenOnEOF(self):
         enable = (self.Form.PrimaryBizobj.RowCount > 0)
         if self._controlsEnabled != enable:
             for child in self.Children:
                 if enable and not getattr(child, "_originalEnabled", True):
                     continue
                 elif not enable and not child.Enabled:
                     child._originalEnabled = False
                     continue
                 child.Enabled = enable
</code>

-- 
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