Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Printing new filter range added to dynamic parameters to RDP

$
0
0

Hello..

how i can print the new filter rang that added to dynamic parameters  after dialog open 

http://dev.goshoom.net/en/2014/09/showing-dynamic-parameters/

the previous article print the default parameters with out the new filter range that added to dialog

i found a comment in this article talking  about it but i didn't understand it

the comment

Everything works fine with query and it’s predifiend ranges. But it does not catch new range fields and values added in prompt dialog.
static void Job155(Args _args)
{
Query q = new Query();
QueryBuildDataSource qbds;
TmpSysQuery tmpsysquery;
QueryRun qr;
;

qbds = q.addDataSource(tableNum(CustTable));
qbds.addRange(fieldNum(CustTable, AccountNum)).value(“d*”);
qbds.addRange(fieldNum(CustTable, custgroup)).value(“c*”);

qr = new QueryRun( q);

if( !qr.prompt()) // apply new range fields and values
return;

tmpsysquery = MyQueryUtils::rangesToTable( qr.query()); // previously provided method

while select tmpsysquery
{
info( strFmt(“%1.%2 == %3”, tmpsysquery.Tablelabel, tmpsysquery.FieldLabel, tmpsysquery.RangeValue));
}
// prints the following
/*
Customers.customer == d*
customers.customer group == c*
*/

}


thank you

  


Viewing all articles
Browse latest Browse all 143529


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>