This question is locked. New answers and comments are not allowed.
hi all, need help on javascript or jQuery
i have this master/detail like in attachment
when i create new one, it need the value for "ParentID" in this case "A/P Return"..how to get it then i can pass it to my Controller
here is myController action, it's populate correctly just missing the ObjectType value
any insight?
thx,
erick
i have this master/detail like in attachment
when i create new one, it need the value for "ParentID" in this case "A/P Return"..how to get it then i can pass it to my Controller
here is myController action, it's populate correctly just missing the ObjectType value
[GridAction] public ActionResult _insertDetail(string objectType) { myOBJ detail = new myOBJ(); if (TryUpdateModel(detail)) { using (dbEntities db = new dbEntities()) { int lastNo = db.myOBJ.Count() < 1 ? 0 : db.myOBJ.Where(d => d.ObjectType == detail.ObjectType).Max(d => d.Line); detail.Line = lastNo + 1; db.AddTomyOBJ(detail); db.SaveChanges(); } } return View(new GridModel(getNumberingDetails(detail.ObjectType))); }any insight?
thx,
erick