Sales order User Defined float fields, editing

Posted:
Tue Aug 26, 2014 12:24 pm
by DannyC
Hi,
When I set the UserDefinedFloat fields to visible in sales orders, they are not editable.
How can we make them editable?
Thanks
Danny
Re: Sales order User Defined float fields, editing 

Posted:
Wed Aug 27, 2014 1:21 pm
by Mike.Sheen
DannyC wrote:Hi,
When I set the UserDefinedFloat fields to visible in sales orders, they are not editable.
How can we make them editable?
Thanks
Danny
Hi Danny,
Attached is a plugin which does this. Essentially I just added a handler for the Read End and Create End events and then unlock the column (checking in Read End if the sales order isn't closed or processed first).
Mike
Re: Sales order User Defined float fields, editing

Posted:
Wed Mar 09, 2016 7:57 am
by Ernst
Hi Mike,
Used the attached sample to unlock float1-3, but found it kept on locking when changing on the line, e.g. modify float1, then float2-3 lock up again.
Had to put the unlock code into the changed line breakout.
Is that the most efficient way?
Thanks
Re: Sales order User Defined float fields, editing

Posted:
Sat Mar 12, 2016 1:23 pm
by Mike.Sheen
Ernst wrote:Hi Mike,
Used the attached sample to unlock float1-3, but found it kept on locking when changing on the line, e.g. modify float1, then float2-3 lock up again.
Had to put the unlock code into the changed line breakout.
Is that the most efficient way?
Thanks
Hi Ernst,
Well spotted - and yes - unlocking on line changed is what I would have done - either that or the LineDisplayed event from the form (which is invoked after a change event anyway - so not any more efficient).