In the fetch-method in the report you remove the QueryRun.prompt method:
 
    queryRun                        qr;
    ;
    qr = new QueryRun(this.query());
//    if (qr.prompt())  ignore this line, because this is what displays the prompt.
    {
        while (qr.next())
        {
              this.send......
              bla bla bla
        }
    }
 
Tonny Jensen
MIKIA It-Solutions


-----Oprindelig meddelelse----- 
Fra: Joannick Bacon [mailto:[EMAIL PROTECTED] 
Sendt: ti 07-10-2003 15:23 
Til: [EMAIL PROTECTED] 
Cc: 
Emne: RE : RE : [development-axapta] (unknown)



I would, but the problem is that I don't use any class, I use a menuItemButton and the 
showQueryValues method doesn't seems to exist elsewhere in the report

 

Thanks anyway :) 

 

---------------------------------------------------- 
Bacon Joannick 
Stagiaire Informatique / IT trainee  
B O A - F R A N C   |   M I R A G E 
T  418.227.1181 #2313
F  418.227.1188 
---------------------------------------------------- 
www.boa-franc.com 
---------------------------------------------------- 

-----Message d'origine-----
De : Cenk Ince [mailto:[EMAIL PROTECTED] 
Envoy� : 7 octobre, 2003 09:20
� : [EMAIL PROTECTED]
Objet : RE: RE : [development-axapta] (unknown)

 

Hi 

Try to override showQueryValues on class from which you call report.

I hope it helps.

 

 

-----Original Message-----
From: Joannick Bacon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 07, 2003 3:58 PM
To: [EMAIL PROTECTED]
Subject: RE : [development-axapta] (unknown)

 

Thanks, it seems to works like I want

The only problem left is that when executing the report(with the clicked button) 
there's one prompt opening and I don't want that.

 

I try to overload the fetch method to remove the element.prompt() and 
element.query.prompt() but it doesn't seem to work, any clue?

 

Thanks

 

---------------------------------------------------- 
Bacon Joannick 
 

-----Message d'origine-----
De : Thomas Vogt Poulsen [mailto:[EMAIL PROTECTED] 
Envoy� : 7 octobre, 2003 02:29
� : [EMAIL PROTECTED]
Objet : [development-axapta] (unknown)

 

Hey Joannick

When working with datasources on a form you can set the grid-
proportie "MultiSelect" to YES. This makes it possible to mark one or 
more lines.

I think the following eks. should do something like you wanted. In 
the example the dataSource is CustTable.

The example is from 2.5 and there mayby a smarter way in 3.0.

Public void generateReport()
{
    Args            args = new Args();
    MenuFunction    menuFunction = new MenuFunction({REPORT MenuItem})
    CustTable       selectedCustomers;

    selectedCustomers = CustTable_DS.getFirst();
    if (selectedCustomers)
    {
        while (selectedCustomers) // MORE THAN ONE SELECTED
        {
            args.record(selectedCustomers);
            menuFunction.run(_args);

            selectedBunch = CustTable_ds.getNext();
        }
    }
    else                     // JUST THE ACTIVE RECORD
    {
        args.record(selectedCustomers);
        menuFunction.run(_args);
    }
}

Best of luck
Thomas Poulsen
AXDATA A/S

--- In [EMAIL PROTECTED], "Joannick Bacon" 
<[EMAIL PROTECTED]> wrote:
>  
> 
> Hi all, I have a grid with the data I want, now I want to send a 
report
> related to one(or many) line in the grid, how can I do that?
> 
>  
> 
> ---------------------------------------------------- 
> Bacon Joannick 
> Stagiaire Informatique / IT trainee  
> B O A - F R A N C   |   M I R A G E 
> T  418.227.1181 #2313
> F  418.227.1188 
> ---------------------------------------------------- 
> www.boa-franc.com 
> ----------------------------------------------------



Your use of Yahoo! Groups is subject to the Yahoo! Terms of  
<http://docs.yahoo.com/info/terms/> Service. 

 


Your use of Yahoo! Groups is subject to the Yahoo! Terms of  
<http://docs.yahoo.com/info/terms/> Service. 






Your use of Yahoo! Groups is subject to the Yahoo! Terms of  
<http://docs.yahoo.com/info/terms/> Service. 





Yahoo! Groups Sponsor   
 
<http://rd.yahoo.com/M=259395.3614674.4902533.1261774/D=egroupweb/S=1705006764:HM/A=1524963/R=0/SIG=12o885gmo/*http://hits.411web.com/cgi-bin/autoredir?camp=556&lineid=3614674&prop=egroupweb&pos=HM>
         
  
<http://us.adserver.yahoo.com/l?M=259395.3614674.4902533.1261774/D=egroupmail/S=:HM/A=1524963/rand=166353095>
         

Your use of Yahoo! Groups is subject to the Yahoo! Terms of  
<http://docs.yahoo.com/info/terms/> Service. 


Reply via email to