block__ methods not called for child tables?
Posted: Tue Mar 02, 2010 1:31 pm
Going from a previous example, I have two tables in my application. The project_mstr table is a parent table, and project_agreements is a child table that has a foreign key column "pa_project_id" that links back to the project_mstr table.
I set up the relationships.ini for project_mstr as follows:
What is curious is, when I implement certain block__ methods within the delegate class for the child table (in this case, project_agreements) - they don't seem to be invoked. However when I implement them for the parent table (in this case, project_mstr), it works as designed.
Specifically, I'm trying to set up the block__custom_javascripts() block. Some sample code:
For the parent table, the browser shows "STOPPING THE RESPONSE NOW" but for the child table the browser paints the page as if the method was not implemented at all.
Is there another way I should be including my child-table specific javascripts?
I set up the relationships.ini for project_mstr as follows:
- Code: Select all
[Agreements]
project_agreements.pa_project_id = "$pm_project_id"
What is curious is, when I implement certain block__ methods within the delegate class for the child table (in this case, project_agreements) - they don't seem to be invoked. However when I implement them for the parent table (in this case, project_mstr), it works as designed.
Specifically, I'm trying to set up the block__custom_javascripts() block. Some sample code:
- Code: Select all
function block__custom_javascripts()
{
echo '<script src="js/myjavascript.js" type="text/javascript" language="javascript"></script>';
echo 'STOPPING THE RESPONSE NOW';
exit;
}
For the parent table, the browser shows "STOPPING THE RESPONSE NOW" but for the child table the browser paints the page as if the method was not implemented at all.
Is there another way I should be including my child-table specific javascripts?