add value to read-only element in standard BO

 

Hi experts ,
i try to create new item of AccountingEntry in my custom BO but it couldn’t be added because the ID of AccountingEntry is Read-only

is it possible to give ID new value or not .

var header :elementsof AccountingEntry;
header.ID.content = “4”;     // the problem is here
header.CompanyID = “AREEGY” ;
header.AccountingDocumentTypeCode = “00047” ;
header.BusinessTransactionTypeCode = “601” ;
header.TransactionCurrencyCode = “EGP” ;
header.AccountingClosingStepCode = “010” ;
var newJV = AccountingEntry.Create(header);

 

 

thanks

Default Asked on December 14, 2017 in Custom Development.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.