Custom GRN Serial Item PopUp Form  Topic is solved

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

Custom GRN Serial Item PopUp Form

Postby 2can2 » Thu Jan 21, 2016 9:33 pm

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
2can2
Frequent Contributor
Frequent Contributor
 
Posts: 171
Joined: Tue Feb 26, 2008 10:24 am
Topics Solved: 25

Re: Custom GRN Serial Item PopUp Form  Topic is solved

Postby Mike.Sheen » Fri Jan 22, 2016 11:53 am

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 10322 times
Attachments
Plugin Add field to GRN Serial Selection Dialog.xml
Sample plugin
(52.16 KiB) Downloaded 929 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: Custom GRN Serial Item PopUp Form

Postby 2can2 » Wed Jan 27, 2016 12:26 pm

Magic thanks Mike. I will give this a go.
2can2
Frequent Contributor
Frequent Contributor
 
Posts: 171
Joined: Tue Feb 26, 2008 10:24 am
Topics Solved: 25

Re: Custom GRN Serial Item PopUp Form

Postby 2can2 » Wed Feb 03, 2016 9:06 am

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
2can2
Frequent Contributor
Frequent Contributor
 
Posts: 171
Joined: Tue Feb 26, 2008 10:24 am
Topics Solved: 25

Re: Custom GRN Serial Item PopUp Form

Postby Mike.Sheen » Sun Feb 07, 2016 1:12 pm

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?
Attachments
Plugin Add field to GRN Serial Selection Dialog.xml
Updated plugin
(52.47 KiB) Downloaded 620 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: Custom GRN Serial Item PopUp Form

Postby 2can2 » Fri Feb 12, 2016 12:20 pm

Thanks Mike. I will specify VB in future.
2can2
Frequent Contributor
Frequent Contributor
 
Posts: 171
Joined: Tue Feb 26, 2008 10:24 am
Topics Solved: 25


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 6 guests