Page 1 of 1

Child table config function (child_records_config)

Posted: 2025-04-27 10:38
by jmcgov
Hi All

I have been using the child_records_config hooks functionality, but with mixed success

The first two statements work, but the last one does not, ie
- I get 2 records in the child
- I get the new column headers, in the new order (and extra ones from default is removed)
- I get NO CHANGE on the columns of data (some have no headings, as the default number of columns is greater than 2)

Code: Select all

	function child_records_config($childTable, $childLookupField, &$config) {
		$config['_session']['student']['records-per-page'] = 2;	
		$config['_session']['student']['display-fields'] = array('Student', 'Date Time');
		$config['_session']['student']['display-field-names'] = array('student', 'date_time');
	}
Any ideas? :)

Apologies for creating a new post, but my previous response to an existing post did not seem to get any visibility - linked below :)
https://forums.appgini.com/phpbb/viewto ... 381#p23381

Re: Child table config function (child_records_config)

Posted: 2025-05-01 20:52
by jmcgov
Anybody? :D