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 Service.





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Yahoo! Groups Sponsor


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to