-------------- Original message ----------------------
From: johnf <[EMAIL PROTECTED]>
> On Monday 14 January 2008 11:05:55 am Ed Leafe wrote:
> > On Jan 14, 2008, at 12:48 PM, johnf wrote:
> > > Open a form with a bizobj that contains the field 'mytest' as in
> > > above;
> > > open dShell
> > > self.new()
> > > mybiz=self.getBizobj()
> > > mybiz.getFieldVal('mytest')
> > > u''
> > >
> > > I get a blank field. In fact I have not been able to reproduce
> > > anything like
> > > what you are getting.
> >
> > Calling new() does no interaction with the database. There is no way
> > to get the values from the database without writing your own code to
> > do so.
> >
> > -- Ed Leafe
> > -- http://leafe.com
> > -- http://dabodev.com
>
> That's what I said the first time. However, Adrian states the following:
> >Dabo is aware of the default values. When I call self.new() the Dropdown
> Lists
> >are populated with the correct default values from Postgres. Those are the
> >self.'RegID'.Value items above.
>
> I can't figure out where the values are coming from if they are not in Dabo
> somewhere?
>
These are Dropdown Lists so the values are in the Choices property of the
control.
The thing is that the values that show up as the Value of each control when I
call
new() is the correct default value. To get that Value into the control the
correct value
is selected from the Choices list. The default value is not the first item in
the list either
by position or alphabetically, so it is not a case of displaying the first
value. I will have
to more digging to figure this out. I have to run right now so it will have to
wait until
tonight.
--
Adrian Klaver
[EMAIL PROTECTED]
_______________________________________________
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]