I am trying to do a copy from or just do a new and programically fill in the data. Here is my code. However, it does not seem like my form go filled in with the new data?
detailForm.editNewRecord();
detailForm.setValue("status", "A");
detailForm.setValue("type", oldRecord.getAttribute("type"));
detailForm.setValue("name", "NEW NAME");
What am I missing?
Thanks,
detailForm.editNewRecord();
detailForm.setValue("status", "A");
detailForm.setValue("type", oldRecord.getAttribute("type"));
detailForm.setValue("name", "NEW NAME");
What am I missing?
Thanks,
Comment