I have a custom form I am working on and for some reason when I change a date in that form that is part of the underlying table, then press the save button which executes the copy to table then the save table commands the date change does not appear to be saved. I debugged it and looked at the table buffer, where I saw the change I made populate the buffer.
Why would it not save from the buffer to the table with the save table command.
Here's my code:
{Copy the record to the table buffer, then save it.}
copy to table RMCCS_CustomerProfiles;
// Fields not in the window or in multiple spots need seperate copy
RMC_PriceListName of table RMCCS_CustomerProfiles = '(L) PriceListNameLOV' of window rmccsCustomerProfile;
clear table RMCCS_Lookups;
range table RMCCS_Lookups where physicalname(RMC_LookupDescription of table RMCCS_Lookups) + " = '" + RMC_BillingFreq_Hold + "' and " +
physicalname (RMC_LookupType of table RMCCS_Lookups) + " = 'BillFrequency'";
get first table RMCCS_Lookups;
RMC_BillFrequencyTypeID of table RMCCS_CustomerProfiles = RMC_LookupID of table RMCCS_Lookups;
clear table RMCCS_Lookups;
range table RMCCS_Lookups where physicalname(RMC_LookupDescription of table RMCCS_Lookups) + " = '" + '(L) BillingMethodDesc' + "' and " +
physicalname (RMC_LookupType of table RMCCS_Lookups) + " = 'BillingMethod'";
get first table RMCCS_Lookups;
clear table RMCCS_Lookups;
RMC_BillingMethod of table RMCCS_CustomerProfiles = RMC_LookupCode of table RMCCS_Lookups;
RMC_TaxCode of table RMCCS_CustomerProfiles = RMC_CS_TaxCode_Hold ;
RMC_PriceListName of table RMCCS_CustomerProfiles = '(L) PriceListNameLOV' of window rmccsCustomerProfile of form RMCCS_CustomerProfilePT2 ;
RMC_ProfileType of table RMCCS_CustomerProfiles = 2;
save table RMCCS_CustomerProfiles;
release table RMCCS_CustomerProfiles;
warning ("Changes Saved.");
*This post is locked for comments