Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
Our client has requirement to auto fill specific ledger account in SalesLine form as given below when SalesQty <0.
How can I do please help me.
So it's a customization you need to do, you can add code to modifiedfield() method and check if it is >0 then populate ledger account.
How to populate Ledger account ?
case fieldNum(SalesLine, QtyOrdered):
this.LedgerDimension = 4210225; //(Ledger account)
No, LedgerDimension is int64 and '4210225' probably is your main account. So you can do something like:
this.LedgerDimension = AxdDimensionUtil::getLedgerAccountId(['4210225', '4210225', 0]);
Thanks ievgen Miroshnikov for helping me to get it done.
I tried it but it's not working. It is same as before as given in below first screen shot.
While I am trying to get like below screen shot which I entered manually.
Please help me.
In the modified field method of the Quantity field write this piece of code,
Hi ievgen Miroshnikov,
I cannot help you further, now you need to debug and confirm that your code is in a right place and it gets executed then you need to confirm that Ax* class returns a value that is not 0.
Business Applications communities