Thread View: borland.public.delphi.aspdotnet.components.using
3 messages
3 total messages
Started by Vagelis
Mon, 14 Nov 2005 13:28
dbWebGrid master detail app
Author: Vagelis
Date: Mon, 14 Nov 2005 13:28
Date: Mon, 14 Nov 2005 13:28
17 lines
1932 bytes
1932 bytes
I use the OnClick event of the master dbWebNavigator to add rows to both my master and detail tables.I also update my dataset making sure that the rows I added have the proper key and foreign key values respectively. It seems to work fine because after I have clicked the "+" button of the master dbWebNavigator , the page is loaded and I can see the master row with the proper key value and the detail table contains only 1 row (the one I added) with the proper key and foreign key values rendered. Since my dbwebdatasource has been set to "autorefresh := true" I assume that the update has been made correctly. But after I click any button of the master dbWebNavigator again, a "Foreign key values cannot be null" error occurs. After I close the application and reopen it, I can see the new rows added and everything works fine (Navigation Updating etc).What am I doing wrong? Since the database is actually updated with the proper values why do I get an error? Thanks in advance.
Re: dbWebGrid master detail app
Author: Orion
Date: Tue, 15 Nov 2005 20:51
Date: Tue, 15 Nov 2005 20:51
35 lines
2472 bytes
2472 bytes
Hello I also have exactly same error I have found the error in the other web controls as Dbwebtextbox I delete it and used Dbwebmemo and problem were fixed that it made me lost three weeks. I assume that check all other web controls even rearrange them. All this time I have thought that fault should lie in the xsd schema files what organizes the master / detail relotion ship Good luck "Vagelis" <vagelis@4m.gr> wrote in message news:43788d3a@newsgroups.borland.com... > I use the OnClick event of the master dbWebNavigator to add rows to both my > master and detail tables.I also update my dataset making sure that the rows > I added have the proper key and foreign key values respectively. It seems to > work fine because after I have clicked the "+" button of the master > dbWebNavigator , the page is loaded and I can see the master row with the > proper key value and the detail table contains only 1 row (the one I added) > with the proper key and foreign key values rendered. Since my > dbwebdatasource has been set to "autorefresh := true" I assume that the > update has been made correctly. > > But after I click any button of the master dbWebNavigator again, a "Foreign > key values cannot be null" error occurs. After I close the application and > reopen it, I can see the new rows added and everything works fine > (Navigation Updating etc).What am I doing wrong? Since the database is > actually updated with the proper values why do I get an error? > > Thanks in advance. > >
Re: dbWebGrid master detail app
Author: Vagelis
Date: Thu, 17 Nov 2005 12:13
Date: Thu, 17 Nov 2005 12:13
45 lines
2774 bytes
2774 bytes
Thanks a lot.If I find out anything I'll let the group know. "Orion" <info@eyhost.net> wrote in message news:437a4a1b$1@newsgroups.borland.com... > Hello > I also have exactly same error I have found the error in the other web > controls as Dbwebtextbox I delete it and used Dbwebmemo and problem were > fixed that it made me lost three weeks. > I assume that check all other web controls even rearrange them. All this > time I have thought that fault should lie in the xsd schema files what > organizes the master / detail relotion ship > Good luck > > "Vagelis" <vagelis@4m.gr> wrote in message > news:43788d3a@newsgroups.borland.com... > > I use the OnClick event of the master dbWebNavigator to add rows to both > my > > master and detail tables.I also update my dataset making sure that the > rows > > I added have the proper key and foreign key values respectively. It seems > to > > work fine because after I have clicked the "+" button of the master > > dbWebNavigator , the page is loaded and I can see the master row with the > > proper key value and the detail table contains only 1 row (the one I > added) > > with the proper key and foreign key values rendered. Since my > > dbwebdatasource has been set to "autorefresh := true" I assume that the > > update has been made correctly. > > > > But after I click any button of the master dbWebNavigator again, a > "Foreign > > key values cannot be null" error occurs. After I close the application and > > reopen it, I can see the new rows added and everything works fine > > (Navigation Updating etc).What am I doing wrong? Since the database is > > actually updated with the proper values why do I get an error? > > > > Thanks in advance. > > > > > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads