This topic is locked
[SOLVED]

 how to fresh details grid after having added record

10/25/2016 6:23:01 PM
ASPRunnerPro General questions
H
heilmanmd author

Have a master / detail record relationship and able to drill down to the detail records click add, add the record ( in line ) while on the same pace, and the newly created record appears in the grid, however it's details link does not appear. Am only able to get it's detailed link to appear if double click on the head master records details link two tiers up.
[media]http://screencast.com/t/TBz2K1fhp[/media'>http://screencast.com/t/TBz2K1fhp[/media]
screen shot is available at http://screencast.com/t/TBz2K1fhp

admin 11/3/2016

This is what finally worked. Here is the code you need to add to first level details table List page.

pageObj.on('afterInlineAdd', function( fieldsData ) {

var url = Runner.getPageUrl(pageObj.shortTName, "list");

pageObj.preparePageForReloading( pageObj.detCont[0] );

Runner.runnerAJAX( url, pageObj.baseParams, function( respObj ) {

pageObj.pageReloadHn( respObj )

});

} );