I created a Master/Detail page based on DEPT/EMP to come up with these steps.
- Give the child region a static id (I used
js-ig-emps
).
- In the Page Designer, right-click the parent region and select Create Dynamic Action.
- For the Dynamic Action, set Event to "Component Events > Selection Change [Interactive Grid]".
- For the Action, set Action to "Execute JavaScript".
- In Code, enter some JavaScript that updates the header of the child region using data from the parent.
Here's the code I used:
var selectedRecord = this.data.selectedRecords[0];
var selectedDept = this.data.model.getValue(selectedRecord, 'DNAME');
var newText = 'Employees in ' + selectedDept;
$('#js-ig-emps .t-Region-title').text(newText);
That assumes you're using Universal Theme. You'll need to make adjustments according to your requirements and the columns you have access to from the parent region.