Sales order User Defined float fields, editing  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Sales order User Defined float fields, editing

Postby DannyC » Tue Aug 26, 2014 12:24 pm

Hi,

When I set the UserDefinedFloat fields to visible in sales orders, they are not editable.
How can we make them editable?

Thanks

Danny
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Sales order User Defined float fields, editing  Topic is solved

Postby Mike.Sheen » Wed Aug 27, 2014 1:21 pm

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
Attachments
Unlock sales order user defined fields.xml
(32.91 KiB) Downloaded 1061 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Sales order User Defined float fields, editing

Postby Ernst » Wed Mar 09, 2016 7:57 am

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
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13

Re: Sales order User Defined float fields, editing

Postby Mike.Sheen » Sat Mar 12, 2016 1:23 pm

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).
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 0 guests