I have had a wonderful afternoon working on my project. I have solved a lot of problems on my own but I need to learn to debug in the NodeRun IDE. I have looked at documentation and youTube for some HOWTO information that would explain this cryptic message on how to set up for debug.
If you can point me at something I bet I can figure it out… (Then again, maybe not. But I want to try before really bug you about it. )
Another question is about “key_someColumnName”, this is used in WHERE clauses of many of your CRUD examples. I just know you did not create some naming convention rule for prefixing with “key_” and yet I cannot find any reference to in either code of displays that would put some value for comparison. In the example below key_productLine is never declared or initializes??
// Prompt to delete and then delete the record
function deleteRecord(key_productLine) {
display.delete.execute();
if (btnYes) {
try {
pjs.query("DELETE FROM productlines WHERE productLine = ? ", key_productLine);
}
catch (err) {
displayMessage(“Product line " + key_productLine + " can not be deleted because it has products assigned.”);
}
}
}