Using: SmartClient_v110p_2017-05-15_PowerEdition
Feels like I'm missing something simple (again).
I have a situation where I want the user to add an entry to a MySQL table using a form, and then I want to offer them the ability to add/edit records to related tables based on the primary key value that gets created automatically by MySQL during the add. So far I can't figure out how to retrieve the new key value after the save though.
I populate the form programatically,
Then check for validation error:
newPersonValidateForm.checkForValidationErrors(...)
Then save in response to the user clicking a button:
newPersonValidateForm.saveData(...)
Then I'm stumped as to how to get the value of the newly created primary key. Is it an argument to the callback? Or returned some other way?
Querying the data directly using SQL shows that the save is working and creating the new key value as expected. The developer.getClue() function is failing though.
Thanks
Russ Poyner.
Feels like I'm missing something simple (again).
I have a situation where I want the user to add an entry to a MySQL table using a form, and then I want to offer them the ability to add/edit records to related tables based on the primary key value that gets created automatically by MySQL during the add. So far I can't figure out how to retrieve the new key value after the save though.
I populate the form programatically,
Then check for validation error:
newPersonValidateForm.checkForValidationErrors(...)
Then save in response to the user clicking a button:
newPersonValidateForm.saveData(...)
Then I'm stumped as to how to get the value of the newly created primary key. Is it an argument to the callback? Or returned some other way?
Querying the data directly using SQL shows that the save is working and creating the new key value as expected. The developer.getClue() function is failing though.
Thanks
Russ Poyner.
Comment