Custom grid column  Topic is solved

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

Custom grid column

Postby neil.interactit » Tue Feb 09, 2016 9:38 am

Hi guys,

I need to add a custom column to the grid on the creditor purchase page. On other pages I have been able to make use of the UserString1 type fields, but this page doesn't have those available.

I have been working through Mike's "Custom Fields on Lines" post (viewtopic.php?f=27&t=226) ... but cannot get this working. I may be missing something obvious, but it seems that either some of the approach has been superseded by recent Jiwa updates, or that you inject into points that I can't seem to access via a plugin.

Would it be possible for you to produce a working plugin sample that demonstrates the correct approach?

Also (this is really a separate question) - once I have the extra column, I'm implementing some drag/drop functionality on it. By way of testing, I have drag/drop working successfully on one of the form fields (_creditorPurchases.txtDescription.DragEnter/DragDrop). Could you also advise how I can attach a handler and handle specific column (and row)?

Cheers,
Neil.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Custom grid column

Postby neil.interactit » Fri Feb 12, 2016 8:07 am

Hi again,

I have played further, still with no success. As a separate step for this requirement, I have created a new form (inheriting MainForm) to popup ... on this I can create grid columns/rows ... however these techniques are not working on the creditor purchase page - I assume because the grid here is databound, so I need to tweak at the binding rather than at the grid directly?

Cheers,
Neil.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Custom grid column

Postby neil.interactit » Thu Feb 25, 2016 11:50 am

Hi guys,

Just wondering on a response for this?

Cheers,
Neil.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Custom grid column

Postby neil.interactit » Wed Mar 02, 2016 9:47 am

Can I bump this again?
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Custom grid column

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

This looks like it would be a bit of effort - there is complexity in that area in that the grid represents both transactions and dispersals - so it's not something I can do via plugin quickly. It's probably possible, but it'll take a few hours of work.

I'd rather spend the time to add custom line fields to the creditor transactions forms (purchases, payments, adjustments) as a standard feature - bug 12586 has been logged to do this.

If you can't wait for this to become a standard feature and must have it as a plugin, then we're going to want money for our time spent doing it - so you should lodge a case with [email protected] to start the process of producing this customisation.

My post on custom line fields you mentioned in your post was guidance on how to add custom line fields if you were creating your own form and/or business logic, so not really relevant to your requirements. If we had dependency injection support, you could use that to inherit from our form and add your own custom line fields - and instruct the factories to use your form/business logic instead of ours - but we don't have that support yet.

If I have some spare time I'll have a crack at the plugin gratis, but I can't promise anything.
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 grid column  Topic is solved

Postby neil.interactit » Tue Mar 15, 2016 8:50 am

Hi Mike,

I have been chipping away at this myself ... and had most of the functionality sorted except for the SetPermissions issue mentioned here viewtopic.php?f=26&t=561. With your solution for that, I am now able to complete this.

The plugin approach very much works around the limitations you mention, so a baked in approach would probably be better in the fullness of time, but for now I'm all cool. Many thanks.

Cheers,
Neil.
neil.interactit
Kohai
Kohai
 
Posts: 232
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 6 guests