Print Page | Close Window

Updating nullEntity with 2 level nested binding

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=107
Printed Date: 12-Mar-2025 at 6:47pm


Topic: Updating nullEntity with 2 level nested binding
Posted By: Dominique
Subject: Updating nullEntity with 2 level nested binding
Date Posted: 05-Jul-2007 at 7:09am
Hi,
I have the following entities:
a Person lives in a City
a City is in a Country
the UI is set up with databinding and nested properties

On the UI the user can choose a country and a city from 2 combos. Choosing a country will fill the list of cities with the right elements.
The normal way of choosing a city will be to choose first the country and then the city

A Person might have no city associeted with him and then it will be a problem if the user choose a country from the combo. I get a "updating nullEntity exception" (or alike).
Do you have a solution to work around that while still using databinding? (beside putting the "nothing" elements in the DB)


Dominique




Print Page | Close Window