I thought I had this figured out . I had an earlier post on December 3, which was answered. However obviously I am losing it because I can't get this to work.
I am trying to save data to two tables - the Joomla user table and another table which is related.
I have a list which successfully displays data from both tables and I am able to call up a form, edit information in both tables and successfully save to both tables.
However I am not able to add records to both tables. The tables are related as follows:
First model is Info with table newuserinfo . The second model is Users (Joomla users table) and is related to Info where Relation is "One matching record, foreign key at the related table." The foreign key is userfile_id in the Info table.
I call up a form which has the text boxes for the pertinent information for both tables.
The save event is
{fn:save_core_user_info}
{fn:check_added_user_save_result}
{fn:save_info}
{fn:check_added_contact_save_result}.
The save_core_user_info uses the Save User action and is successful.
But the save_info action is not successful in that it saves to the table but the userfile_id is zero and there is no other data.
My save_info action parameters look like this:
Database table: newuserinfo
Write action: Insert
Data provider: {var:save_core_user_info.Users.id}
Model: Info
For overrides I have:

Where am I going wrong?
I am trying to save data to two tables - the Joomla user table and another table which is related.
I have a list which successfully displays data from both tables and I am able to call up a form, edit information in both tables and successfully save to both tables.
However I am not able to add records to both tables. The tables are related as follows:
First model is Info with table newuserinfo . The second model is Users (Joomla users table) and is related to Info where Relation is "One matching record, foreign key at the related table." The foreign key is userfile_id in the Info table.
I call up a form which has the text boxes for the pertinent information for both tables.
The save event is
{fn:save_core_user_info}
{fn:check_added_user_save_result}
{fn:save_info}
{fn:check_added_contact_save_result}.
The save_core_user_info uses the Save User action and is successful.
But the save_info action is not successful in that it saves to the table but the userfile_id is zero and there is no other data.
My save_info action parameters look like this:
Database table: newuserinfo
Write action: Insert
Data provider: {var:save_core_user_info.Users.id}
Model: Info
For overrides I have:
Where am I going wrong?