Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

How can I modify the copied records in details table.

$
0
0
Somebody know how can I edit all records in a details table after the master and details are being copied with the copy button? also how to make stop adding a new blank record to the top of the details table after being copied ?

Can you help me please, i'm stuck.
I have a master and detail page, when I click on the copy button and show me the master and details copied records, I would like that the details records can be editable.
I don't know if is normal or not but when I click the copy button the page show me the copied records but when I click on the save button only save the master record with a new Id but no details records are saved.
The only way that I found to be editable the details copied records is adding the next line in javascriptonload list page
if ( pageObj.baseParams.masterpagetype === "add" ) {
for (i = 0; i < totalNumberOfRecordFromDetails; i++) {
pageObj.inlineAdd.getControls(pageObj, pageObj.inlineAdd.getControls(pageObj, pageObj.inlineAdd.rows[i], false, true, false ); //This line make the row editable.
pageObj.inlineAdd.rows[i].submitted = false;
pageObj.inlineAdd.rows[i].isAdd = true;
}
}
The issue with the above code is that shows the html record and the edited record in the same row.

Somebody know how to fix it or have a clue what can I do please?

Thank you so much

Viewing all articles
Browse latest Browse all 2586

Trending Articles