Help : Refreshing the Data Window within a Drop Down List Box

Help : Refreshing the Data Window within a Drop Down List Box

Post by Kevin Stussm » Wed, 07 Feb 1996 04:00:00



I have a self-referencing table (i.e. ER fish-hok or this kind of
relationship:

(Field) Department ID : ID Type
(Field) Reports to : ID Type

The "Reports to" field will be either null (reports to no-one) or with
a valid Department ID (within the same table). Recursion 101 :-)

Anyway, when I insert into this table, the row goes in fine but the
Drop Down List Box i'm using for the "Reports To" field doesn't show
the new row. Even when I cause the parent (i.e. the datawindow the
DDLB is in) to retrieve, it still won't put the new entry in the DDLB.
Only when I close the window and open it again will the DDLB have the
new row. This makes some sense if a retrieve of the DataWindow the
DDLB is in does not cause the DataWindow of the DDLB itself to
refresh, but I need to in this case.

How can I tell the Data Window DDLB to re-read it's table?

Puzzled..

Kevin Stussman

 
 
 

Help : Refreshing the Data Window within a Drop Down List Box

Post by Bob Rege » Thu, 08 Feb 1996 04:00:00




Quote:

>I have a self-referencing table (i.e. ER fish-hok or this kind of
>relationship:

>(Field) Department ID : ID Type
>(Field) Reports to : ID Type

>The "Reports to" field will be either null (reports to no-one) or with
>a valid Department ID (within the same table). Recursion 101 :-)

>Anyway, when I insert into this table, the row goes in fine but the
>Drop Down List Box i'm using for the "Reports To" field doesn't show
>the new row. Even when I cause the parent (i.e. the datawindow the
>DDLB is in) to retrieve, it still won't put the new entry in the DDLB.
>Only when I close the window and open it again will the DDLB have the
>new row. This makes some sense if a retrieve of the DataWindow the
>DDLB is in does not cause the DataWindow of the DDLB itself to
>refresh, but I need to in this case.

>How can I tell the Data Window DDLB to re-read it's table?

First off, I believe you are referring to a drop down datawindow (DDDW) and
not a drop down list box.
You must manually force a dddw to re-retrieve. You first obtain its handle,
set the transaction object of the child datawindow, and then retrieve.
Please see the help for Child Datawindows for more complete info.

bob

 
 
 

Help : Refreshing the Data Window within a Drop Down List Box

Post by Your Na » Thu, 08 Feb 1996 04:00:00



Quote:

>I have a self-referencing table (i.e. ER fish-hok or this kind of
>relationship:

>(Field) Department ID : ID Type
>(Field) Reports to : ID Type

>The "Reports to" field will be either null (reports to no-one) or with
>a valid Department ID (within the same table). Recursion 101 :-)

>Anyway, when I insert into this table, the row goes in fine but the
>Drop Down List Box i'm using for the "Reports To" field doesn't show
>the new row. Even when I cause the parent (i.e. the datawindow the
>DDLB is in) to retrieve, it still won't put the new entry in the DDLB.
>Only when I close the window and open it again will the DDLB have the
>new row. This makes some sense if a retrieve of the DataWindow the
>DDLB is in does not cause the DataWindow of the DDLB itself to
>refresh, but I need to in this case.

>How can I tell the Data Window DDLB to re-read it's table?

>Puzzled..

>Kevin Stussman

look into dwgetchild and then do a retrieve on what that function returns

dwgetchild is a function search in help, it has a good example

 
 
 

1. Why do Drop Down List Boxes drop down off screen?

Here's a good one.

We have an application that runs on several PCs.  On some of them
the drop down list box appears half off and half on the screen.  On
other PCs, something detects that the drop down list box would drop
down off screen, so it drops it in another direction.

Why?  How do I get it to redirect on every PC?


Many thanks,
David.

2. AutoCAD PCB Package - where?

3. SEARCHING DATA WITHIN SHEET WHICH IS SELECTED IN DROP DOWN LIST

4. Open Root Server Confederation Root Sync Report Mon Nov 26 10:46:55 EST 2001

5. HELP!!!!!How To Make Drop Down Data Window Selection NULL

6. upgrade from outlook 97 to 98

7. Help - Can't get Drop Down Data Window (DDDW) to work w/Sybase

8. Fraktur (non-bold)

9. Drop Down Data Window Edit Style Help

10. No ICM profile listed in drop down box

11. Drop down list boxes in Excel 97

12. Excel drop-down list box fonts

13. winrunner: web drop down list box selection problem