hi, i think this is not possible, but someone of you maybe found a workaround...
basically, i have to run something similar to a drilldown from a report of mine: i know how to run hyperlinks from a report, and i'm abusing it since i started to design reports for the 3 tier...the problem is that now, for the first time, i should run a page (the sales lines page), filtered for some fields.
as i said, i know to use recref with getposition in order to get the bookmark of the interested record, but here i have to show 3-4 records based on some filters...have you got an idea?
P.S.: i can use a singleinstance codeunit as a last resource: you know, set some parameters in the codeunit during the onprereport, check those parameters when running the page and filter the page consequently.
but here the problem is: when clear the parameters in order to make the user able to run the page normally?i guess i have to create a new page just for it...which is bad...
I hope i explained clearly, thanks in advance
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog0
Comments
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
anyway, yesterday night i've got an idea...i'll post it here as soon as it works
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
the workaround is easy and not so ugly: just create a report for the only purpose of running a page in the onpredataitem trigger. the report must be processingonly and the "usereqform" property must be false: here's a sample.
from your RTC, you can then run this link, and append your favourite filters, for example (in my procedure i'll always add the %22 escape, just to be sure... the good thing is that you can use the same report to manage multiple page launching...just add your favourite dataitems and manage their execution with getfilters, for example...take a look to the sample for more info
Cool huh? 8)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Ideally, i call this function like this
but now i have to find a way to transform the filterstring from (for example) to i know how to manipulate strings, but while i'm thinking about the routine, i'll post it here, in case someone wants to take the challenge
here's the function...
FNTAppendFilter(pTXTTableName : Text[50];pTXTFilterValue : Text[1024])
ATTENTION!!THIS CODE WORKS ONLY IF THE CAPTION OF THE FIELD IS THE SAME AS THE NAME OF THE FIELD. TO PARTIALLY SOLVE THE ISSUE, GO TO
http://www.mibuso.com/forum/viewtopic.php?f=23&t=44707
(sorry for the cross posting)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog