Forums: [SOLVED] how to fresh details grid after having added record - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

[SOLVED] how to fresh details grid after having added record Rate Topic: -----

#1 User is offline   heilman 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 28-February 15

Posted 25 October 2016 - 10:23 PM

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.

http://screencast.com/t/TBz2K1fhp

screen shot is available at http://screencast.com/t/TBz2K1fhp
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 15435
  • Joined: 03-February 03

Posted 03 November 2016 - 04:21 PM

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 )
	});
} );

Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked