On Tuesday 07 August 2007 07:09, Ed Leafe wrote:
> On Aug 7, 2007, at 9:47 AM, johnf wrote:
> > I could of course post my forms but they are getting bigger and
> > require
> > connections to postgres.
>
>       Create a form that reproduces the problem, and post that. If all the
> forms that you create work as expected, then it probably isn't
> anything in the control; it's probably something that you're doing to
> the control. Try to locate all the code that manipulates the control;
> either that will reveal the problem, or you can post those parts of
> the code and perhaps one of us can figure it out.

Thanks Ed, 
All my simple test work but my real code does not.  Below is what I'm doing in 
code. I don't see any code (my code) that directly effects the dDateTextBox 
controls I am creating.  I'm not using the RegID yet (just added the code).  
There is no data in the fields (backend) yet so the control displays "<None>" 
at first.  The only thing I can think of is this is some sort of refresh 
(like in VFP) issue not directly associated with the dDateTextBox control.  

Each of the dDateTextBox controls is associated with a grid record.  So as I 
select the grid row the controls are being updated.  However, I'm not 
calling "update()" anywhere on my form.  There are several refresh() calls on 
controls (like the grid, and two other controls) but these calls are not 
directed at the dDateTextBox.  If provides no clues I will take the time to 
remove all the data associated on my forms and post.

The only other thing I can think of is - all my controls are placed on a 
dPanel and then the dPanels are added to dPages, which are in turn added to 
the form.

hs=dabo.ui.dSizer('h')
hs.appendSpacer(3)
hs.append(dabo.ui.dLabel(self,Caption='Optimum Planting Period - >'),0)
hs.appendSpacer(6)
hs.append(dabo.ui.dLabel(self,Caption='Starting'),0)
hs.appendSpacer(3)
                
hs.append(dabo.ui.dDateTextBox(self,RegID='VarStartID',DataSource='public.agvarieties',DataField="starting"))
hs.appendSpacer(5)
hs.append(dabo.ui.dLabel(self,Caption='Ending'),0)
hs.appendSpacer(3)
                
hs.append(dabo.ui.dDateTextBox(self,RegID='VarEndID',DataSource='public.agvarieties',DataField="ending"))
vs.append1x(hs)
-- 
John Fabiani


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to