In puchase line, I want Editable function on Quantity field if Type = Resource.
If Type = Item the quantity fiels is not Editable.
What’s the best way to do this?
Thanks
In puchase line, I want Editable function on Quantity field if Type = Resource.
If Type = Item the quantity fiels is not Editable.
What’s the best way to do this?
Thanks
I Try this on SubFor Purchase Line but there is one erro on this instruction,
Form - OnOpenForm()
CurrForm.Quantity.EDITABLE =(Type <> Type::Item);
Hi, you have to place that code in the OnAfterGetRecord trigger.
Daniele
Hello
But there is one error on this, I don’t know what is it?
CurrForm.Quantity.EDITABLE =(Type <> Type::Item);
Hi, you are missing a two-point. The correct code is :
CurrForm.Quantity.EDITABLE := (Type <> Type::Item);
Yes, you are right
Thanks a lot