Master/Detail DVWP: New Master search still shows old Detail

Master/Detail DVWP: New Master search still shows old Detail

Post by David - Ay » Sun, 13 Aug 2006 07:18:03

Hello -

I created a pretty simple master/detail setup with two data views going
against a SQL database. Master DVWP uses a search box to filter the
results, and then clicking each item in the Master filtered list shows
the Detail below.

However, here's my problem:

1) Load up web page, empty search (no Master list since there is no
filter, no Detail shown).
2) Enter search string and do postpack, Master lists A and B. Detail
shows A, as it defaults to show the first row.
3) Click "B". Master shows B as selected, Detail shows B.
4) Enter new Master search, do postback, Master lists C and D. Detail
still shows B.

#4 should have Detail shows C, being the first row in the list. But
somehow that doesn't get passed to the Detail after changing the Master

If I skip step #3, and never choose an item to display in the detail
and always just have it default to the first row, then #4 works as
expected. It's only when I manually trigger the web part connection.

So my question is how to clear that parameter so that when I re-filter
the Master it goes back to passing the first row value to the Detail?
Is there another parameter or call that needs to happen during the
Master filtering?

Thanks for any help. This one has me stumped.


1. Master Detail entering new Master + new Detail(s)???

2. Master Detail commits the master on detail exception

Hi, I'm Using D5.1, IB6, IBX5.04.
I've a lot of NestedDataSets master detail relationships in my applications
but now I've noticed a strange behavior:
When there is an exception on the detail dataset the master is always
I'm Using the ApplyUpdates(0); param, also have tried all kinds os possible
values to the Action in the ReconcileError's event.
This behavior doesn't occours when the exception is a Primary Key ou Foreign
Key exception.
This is a IBX Bug or Am I doing something wrong?

Note: The exceptions are raised by Interbase triggers;

3. Master Detail Report With Master Chart and Detail Table

4. CachedUpdate in a master/detail query from another master/detail query

5. Master-detail: why doesn't detail DS automatically track row of master (i.e. :param not updated)?

6. Master-detail: I see all the detail records if I append a detail record

7. Master/Detail - after insert new detail record

8. VB Master-Details Edit (Separate Pages), Response Redirect to Master Page Databinding Issue...

9. Master-Detail DataGrid with conditional (detail) formatting

10. Master Detail Error: "The master that you picked is in an incorre

11. Dbx + ClientDataSet master-detail - deleted record reappear on detail dataset

12. Concatenation of detail-records in a Master-Detail relationship

13. How to: Display Details in Master-Detail DataGrid/DataList without Postback

14. Master-> Detail-> Detail with datagrids

15. Master-Detail (2 details)