Hello Devs!
One the most common condition that we being a developer faces is to update existing records set that is mostly done on report level when we need to add new fields in the Temporary table and we don't wants to make extensions on class level.
Here is a small piece of code that will assist you in updating existing record sets.
update_recordset custAgingReportTmp
setting
CMTCustInternalCollector = hcmWorker.PersonnelNumber,
PaymDayId = custTable.PaymDayId,
PaymTermId = custTable.PaymTermId,
CashDisc = custTable.CashDisc,
CompanyChainId = custTable.CompanyChainId
join custTable
where custTable.AccountNum == custAgingReportTmp.AccountNum
join hcmWorker
where custTable.InternalCollector == hcmWorker.RecId;
Note: Here "InternalCollector" has the join with HCMworker that is due to our client's customization
Hopefully this will helps you out in driving the solution.
One the most common condition that we being a developer faces is to update existing records set that is mostly done on report level when we need to add new fields in the Temporary table and we don't wants to make extensions on class level.
Here is a small piece of code that will assist you in updating existing record sets.
update_recordset custAgingReportTmp
setting
CMTCustInternalCollector = hcmWorker.PersonnelNumber,
PaymDayId = custTable.PaymDayId,
PaymTermId = custTable.PaymTermId,
CashDisc = custTable.CashDisc,
CompanyChainId = custTable.CompanyChainId
join custTable
where custTable.AccountNum == custAgingReportTmp.AccountNum
join hcmWorker
where custTable.InternalCollector == hcmWorker.RecId;
Note: Here "InternalCollector" has the join with HCMworker that is due to our client's customization
Hopefully this will helps you out in driving the solution.
Great sir
ReplyDelete