Page 1 of 1

Inventory Export Add Supplier

PostPosted: Tue Apr 13, 2021 9:44 pm
by Ernst
Customer would like to add Supplier Select to Inventory Export, With Supplier and Cost coming out on download.

Have got the Supplier in the Search box, But it has no value in, and the procedure wont pick any supplier.

Think I'm just missing a small link to the CR_Main table. Although my search link looks good. Can anybody see what ive missed?

Plugin and Procedure attached.

Re: Inventory Export Add Supplier  Topic is solved

PostPosted: Tue Apr 20, 2021 1:18 pm
by Mike.Sheen
Check your casing in the rangesJiwaGrid_ButtonClicked method - your "Supplierlookup" case in the switch won't ever get reached because we're comparing with column.Tag.ToString().ToLower() - you need to have "supplierlookup", not "Supplierlookup".

Code: Select all
 switch (column.Tag.ToString().ToLower())
{
    case "partnolookup":
...
case "Supplierlookup":
   if (e.Row == 0)
...


You've modified our standard plugin - that's going to cause problems for you and/or your customer(s) down the track - you should always copy our standard plugins and adapt that!

Re: Inventory Export Add Supplier

PostPosted: Tue Apr 27, 2021 10:10 pm
by Ernst
Thanks for that Mike. Have tried the lower case. But still no luck. Updated plugin attached.

Its giving a method or operation is not implemented, when trying the search button on supplier.

And does not start with from to values.

Must be missing something else.

Re: Inventory Export Add Supplier

PostPosted: Wed Apr 28, 2021 11:31 am
by Mike.Sheen
Ernst wrote:Thanks for that Mike. Have tried the lower case. But still no luck. Updated plugin attached.

Its giving a method or operation is not implemented, when trying the search button on supplier.

And does not start with from to values.

Must be missing something else.


Well, you are getting a different error now that you've fixed the first problem, so I wouldn't call it no luck - it's progress!

The not implemented exception is because you're calling a Search method of the Supplier entity, and our base Supplier entity class has not implemented that.

You'll have to create your own class inheriting from the Supplier entity and override the Search method and implement a search in there, and change your code to use your new inherited class.

I expect all this is beyond your abilities - so perhaps you can engage us to do it for you via the helpdesk as a quote request.

Re: Inventory Export Add Supplier

PostPosted: Wed Apr 28, 2021 3:27 pm
by SBarnes
If you want an example of what Mike is referring to have a go at it take a look at JiwaFinancials.Jiwa.JiwaApplication.Entities.Inventory.Inventory with a tool like JustDecompile it implements the search functionality for inventory otherwise as Mike suggested ask Jiwa to quote on doing it.

Re: Inventory Export Add Supplier

PostPosted: Wed Apr 28, 2021 5:35 pm
by Ernst
OK thanks for the help. When I have some time in the holidays, I'll try those things.

Re: Inventory Export Add Supplier

PostPosted: Tue May 04, 2021 3:28 pm
by pricerc
Ernst wrote:OK thanks for the help. When I have some time in the holidays, I'll try those things.


you get holidays?

Re: Inventory Export Add Supplier

PostPosted: Thu May 06, 2021 10:41 am
by Ernst
I was being sarcastic. That means, it will never get done.. :D