iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
hi,
I have a grid containing three-hierarchical tables, they are Ship(table1) => ShipDailyWorkDetail(table2) => PZ(table3). when i try to add a new row into table3, it throws exception. Table3 containing a WebCombo and two input area.
The scenario is :
when table1 and table2 have existed, i try to add a new row in table3
1) click on "+" sign to expend the table (according to img1)
2) click "please click here to add a new record" of table3, there isn't anything but a block of blank
(according to img2). At this time i get a javascript error (according to img3)
'RelNames' is null or not an object uri: WebGrid_Edit.js
3) click the "blank area" again, it seems get right (according to img4)
4) fill the row and enter "shift + enter" to save then
it throws exception (according to img5)
error msg is : System.NullReferenceException:object reference not set to an instance of an object
Could you tell me why? And how to resolve it?
Thank you very much.
btw. when i add a new row in table1 ,then table2, finally i add a new row in table3,it works fine.
All pictures and code are in the attachment. I keep down almost all the code, so it maybe looks a little complex. I'm sorry for it if that incommode you.
WebGrid version:3.0.5000.751
Browser: IE8
Thank you for the sent screenshots and code. It really does help to figure out what the problem is.
I was unable yet to run your sent sample to run on my end. I think I will need to re-configure some lines in the code to make it work on my end. however, I suspect that the issue is happen because you are attempting to add a new record on a PZ table (table3) where the relation of this new row is not available yet (there is no parent record in the ShipDailyWorkDetail (table2) table).
This hypothesis comes from your statement that says
...btw. when i add a new row in table1 ,then table2, finally i add a new row in table3,it works fine...
Hope this helps.
Thank you for your hard work! I will try to write a demo that could run on your end then attach it as soon as possible.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname