Dear All,
How could I get the filter of the form and send it to the codeunit. THe navision surely does it but I have been lookin for it for hours and still couldn't find out how to solve it. I am not speakiong of the usual ones like batch name but for example if the user decides to filter by amount 500; I want to pass that over to the codeunit in question.
0
Comments
From within the function you can use GETFILTER etc on your parameter to retrieve the filters that were set on the form.
Here's a simple code snippet (assumes inputrec is byref):
Then you can call this function in the codeunit with the record from the form your using. This process will copy any number of filters to the CodeUnitRec variable. I've used this pattern quite successfully in the past.
Epimatic Corp.
http://www.epimatic.com