Keep up to date with the latest information about Microsfot Dynamics GP through articles from the Perfect Image and azurecurve blog.
GP Transaction Search: Customising the Returned Data
June 22nd, 2018 by Ian Grieve
A couple of posts ago, I covered installing the stored procedure (which I erroneously referred to as a view when I first posted). The stored proc controls the returned data which in turns controls what is displayed in the search results window.
Customising the returned data is as simple as amending the stored procedure. If, for example, I wanted to add the suppliers country, I can add the following (highlighted) line and save the altered stored proc:
SELECT TOP 200 P.Origin, V.COUNTRY AS 'Country', RTRIM(P.DOCNUMBR) DocNum,
Any change does need some familiarity with SQL and stored procedures, but is pretty straightforward.
Before the change is committed, this is the returned data:
After the change is made, this is the returned data:
The new column is displayed in the column order from the stored procedure.
The stored proc can be customised almost as much as you want; the only limitation is to not change the parameters at the top as these are passed in from the window. Of course, with the window being open source you could customise the window as well.
|GP Transaction Search|
|Installation of v18.104.22.168|
|Installing the SQL Stored Proc for v22.214.171.124|
|Configuration of v126.96.36.199|
|Using PM Transaction Search v188.8.131.52|
|Customising the Returned Data|