Master Detail CRUD using blazor
-
Hello All, I want to develop Master Details CRUD option. I have seen lots of examples in which developed using GRID but my requirement is different than this. Let me explain with an example -------Master Part------- Order No__________ Order Date___________ Customer_______________ ----------Details Part------------ ProductName _____{Selection}______ Rate______ Qty____ [Add] -----------{GRID}-------------- Product1 20.00 1 [EDIT] [DELETE] Product2 50.00 1 [EDIT] [DELETE] [SAVE][CANCEL] Please check this -> Example screen
-
Hello All, I want to develop Master Details CRUD option. I have seen lots of examples in which developed using GRID but my requirement is different than this. Let me explain with an example -------Master Part------- Order No__________ Order Date___________ Customer_______________ ----------Details Part------------ ProductName _____{Selection}______ Rate______ Qty____ [Add] -----------{GRID}-------------- Product1 20.00 1 [EDIT] [DELETE] Product2 50.00 1 [EDIT] [DELETE] [SAVE][CANCEL] Please check this -> Example screen
Hi, Have you looked at this set of articles? Building a Database Application in Blazor - Part 1 - Project Structure and Framework[^]
-
Hi, Have you looked at this set of articles? Building a Database Application in Blazor - Part 1 - Project Structure and Framework[^]
-
Hello All, I want to develop Master Details CRUD option. I have seen lots of examples in which developed using GRID but my requirement is different than this. Let me explain with an example -------Master Part------- Order No__________ Order Date___________ Customer_______________ ----------Details Part------------ ProductName _____{Selection}______ Rate______ Qty____ [Add] -----------{GRID}-------------- Product1 20.00 1 [EDIT] [DELETE] Product2 50.00 1 [EDIT] [DELETE] [SAVE][CANCEL] Please check this -> Example screen
You product selection line is not part of the detail and can be placed in the master area or as a separate area altogether, it does not participate in the master detail structure but adds to the detail.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
-
You product selection line is not part of the detail and can be placed in the master area or as a separate area altogether, it does not participate in the master detail structure but adds to the detail.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
-
My Table Stucture look like
OrderId int
OrderNo string
CustomerName string
AddDate DateTimeOrderDtlId int
OrderId int(FK from OrderMaster)
ProductId int(FK from ProductMaster)
Qty decimal
Rate decimalYour table structure is correct. You need to add a detail item when the user clicks add taking the ProductId from the user selection. This needs to be done in code, not in the UI control.
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP