On 07/14/2010 10:48 AM, Paul McNett wrote: > On 7/14/10 10:02 AM, Jeff Johnson wrote: > >> I am trying to use RegID's and it doesn't seem to work for me. >> >> Here is the code on PageEditMytable which is generated by the app wizard: >> >> objectRef = self.addObject(dabo.ui.dTextBox, >> NameBase="pol_commpct", >> DataSource="Policies", DataField="pol_commpct", >> RegID="txtcommpct") >> >> print self.Form.txtcommpct.DataSource >> >> doesn't print anything >> >> I want to add RegID's so I can do calculations after the field is populated. >> > Are you sure the print code is executing at all? Change to: > > print "!!!", self.Form.txtCommpct.DataSource > > to be sure. > > Also, there's no reason to addObject(), although it probably doesn't hurt. > Change to: > > objectRef = dabo.ui.dTextBox(self, ...) > > Try removing the NameBase assignment, in case there's something that > conflicts with > RegID (I don't think so, though). > > Paul > >
Thank you John and Paul. I am modifying an appwizard application. The appwizard added the addobject. Thanks, -- Jeff --------------- Jeff Johnson [email protected] (623) 582-0323 www.san-dc.com _______________________________________________ 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]
