Page 1 of 1

Custom GRN Serial Item PopUp Form

PostPosted: Thu Jan 21, 2016 9:33 pm
by 2can2
Hi Mike, Is it possible to add an additional field to this Serial Number PopUp form. What I am trying to achieve is to populate by default the SerialNo fields with a mask of sorts followed by the the CR_Main.Name. The user would then amend the mask but leave the Name at the end!
Is this possible in a plugin?

Cheers

Re: Custom GRN Serial Item PopUp Form  Topic is solved

PostPosted: Fri Jan 22, 2016 11:53 am
by Mike.Sheen
2can2 wrote:Is it possible to add an additional field to this Serial Number PopUp form.
...
Is this possible in a plugin?

Cheers


Yes - the attached should provide a good starting point.
screenshot.PNG
Column added to serial selection grid
screenshot.PNG (15.44 KiB) Viewed 10325 times

Re: Custom GRN Serial Item PopUp Form

PostPosted: Wed Jan 27, 2016 12:26 pm
by 2can2
Magic thanks Mike. I will give this a go.

Re: Custom GRN Serial Item PopUp Form

PostPosted: Wed Feb 03, 2016 9:06 am
by 2can2
Hi Mike, I can't seem to make sense of this new code as it is now using C# syntax and is so different to samples I have. Is this the new standard?
I would like to set the new field = the creditor name when the serial number pop up form displays but not having any joy. Pointers as to what 'Public void' I would need to setup please. Thanks

Re: Custom GRN Serial Item PopUp Form

PostPosted: Sun Feb 07, 2016 1:12 pm
by Mike.Sheen
2can2 wrote:Hi Mike, I can't seem to make sense of this new code as it is now using C# syntax and is so different to samples I have. Is this the new standard?


I talked a little about this here. As developers we chop and change from VB.NET and C# so we're kind of used to it - in future just mention in your posts your preferred language for any answers and we'll use that. You can always convert the C# code to VB.NET using such tools as the free Telerik on-line converter.

2can2 wrote:I would like to set the new field = the creditor name when the serial number pop up form displays but not having any joy. Pointers as to what 'Public void' I would need to setup please. Thanks


I've updated the plugin to set the contents of the new column to be the supplier name (attached to this post). As it's going to be the same for each serial number, wouldn't it be better to add a field to the header showing this instead?

Re: Custom GRN Serial Item PopUp Form

PostPosted: Fri Feb 12, 2016 12:20 pm
by 2can2
Thanks Mike. I will specify VB in future.