SaveRecord command¶
Include: Use Db\DBCommands.pkg
Purpose¶
Saves the current DD local buffer using command syntax.
Syntax¶
SaveRecord oDataDictionary
SaveRecord oFirstDD oSecondDD
How it works¶
SaveRecord oDDsendsSaveRecordtooDD.- Multiple DD arguments recurse left to right.
SaveRecordcreates a record whenHasRecord(oDD)is false and updates the current record whenHasRecord(oDD)is true.SaveRecordis lower-level thanRequest_Save; when code needs the full DD save entry point that updates foreign keys from active parents first, callSend Request_Save of oDDinstead of the command.
Example¶
Clear oCustomerDD
Move "Data Access" to oCustomerDD.Name
Move "Miami" to oCustomerDD.City
SaveRecord oCustomerDD