Child table config function (child_records_config)

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
jmcgov
Veteran Member
Posts: 99
Joined: 2018-12-19 01:31
Location: Northern Ireland

Child table config function (child_records_config)

Post by jmcgov » 2025-04-27 10:38

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
Attachments
Capture.PNG
Capture.PNG (14.61 KiB) Viewed 5520 times

User avatar
jmcgov
Veteran Member
Posts: 99
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: Child table config function (child_records_config)

Post by jmcgov » 2025-05-01 20:52

Anybody? :D

Post Reply