The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

DetailsView with multiple related Data Sources

Last post 07-31-2008, 9:26 PM by FatSalmon. 0 replies.
Sort Posts: Previous Next
  •  07-31-2008, 9:26 PM 10474

    DetailsView with multiple related Data Sources

    I've been stuck on this for days, and there are no examples of a working solution anywhere that uses DetailsView with an esDataSource. I've seen the FormView example which is frequently linked to here, but nothing that uses DetailsView. Is there such an example anywhere?

    I have a page which supports full CRUD of a detail object, lets call it OrderDetail. It has a DetailsView control on it bound to an esDataSource. One of the fields in the DetailsView is the Ship To name/address, which is a foreign key to the NameAddress table. So the NameAddressId is in the OrderDetail, and it links to a related NameAddress record. All of this is bound using the #Bind syntax. It all works fine, as long as I am editing data values in the main OrderDetail record.

    I have another panel on the page which I am showing as a pop-up to allow the user to select a different Ship To name/address. They select one from the list and it returns the ID. I'm having trouble getting the order detail page to update with the new ID. I have tried every possible combination I can think of, but nothing works.

    How can I update the related NameAddress record in the OrderDetail while preserving whatever other values the user may have changed? Is there any way to do it other than screen scraping? 


    TIA
View as RSS news feed in XML