Subject | Re: [IBO] TIB_Ledger data dissapear |
---|---|
Author | Adrián Deccico |
Post date | 2004-09-15T13:18:06Z |
This is the complete code
To Show the dinamic form
TForm* frm;
frm = new TfrmABMUsers(static_cast<void *>(NULL));
frm->Show();
In the OnShow of the form
dmUsers->queUsers->Open();
In the OnClose
dmUsers->queUsers->Close();
I have a TIB_Ledger, a IBUpdateBar and a IBNavigationBar that point to
the data source of the IB_Query .
The first time it works OK, but the second the IB_Ledger didn´t show
the data, although I can click in the different rows and the
NavigationBar let me navigate across the rows.
I think that something fail when the component must draw the data.
Everything works ok if I use a static form.
best regards
Adrián Deccico
Adrián Deccico
Software Developer
http://adrian.org.ar
To Show the dinamic form
TForm* frm;
frm = new TfrmABMUsers(static_cast<void *>(NULL));
frm->Show();
In the OnShow of the form
dmUsers->queUsers->Open();
In the OnClose
dmUsers->queUsers->Close();
I have a TIB_Ledger, a IBUpdateBar and a IBNavigationBar that point to
the data source of the IB_Query .
The first time it works OK, but the second the IB_Ledger didn´t show
the data, although I can click in the different rows and the
NavigationBar let me navigate across the rows.
I think that something fail when the component must draw the data.
Everything works ok if I use a static form.
best regards
Adrián Deccico
>--
>
> On Thu, 9 Sep 2004 12:11:12 -0700, Jason Wharton <jwharton@...> wrote:
> > This sounds more like a problem in your application.
> > Are you doing anything to confuse the dataset referencing?
> >
> > Jason
> >
> >
> >
> > -----Original Message-----
> > From: Adrián Deccico [mailto:deccico@...]
> > Sent: Wednesday, September 08, 2004 7:47 AM
> > To: IBObjects@yahoogroups.com
> > Subject: [IBO] TIB_Ledger data dissapear
> >
> > Hi,
> >
> > I have a form with a ledger linked to a IB_Quey.
> >
> > In the FormShow I call
> >
> > dmUsers->queUsers->Open();
> >
> > and in FormClose I call
> > dmUsers->queUsers->Close();
> >
> > The form is dinamic and in the first call everything goes ok, but in
> > the second call the data disappeared of the control although I can
> > point the two records and the TIB_NavigationBar detects it ok.
> >
> > If I put the form static I have not this problem but if the form is
> > dinamic I have the above problem.
> >
> > best regards
> >
> > --
> > Adrián Deccico
> >
> > Software Developer
> > http://adrian.org.ar
> >
Adrián Deccico
Software Developer
http://adrian.org.ar