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:
report
Hi all, I have a grid with the data I want, now I want to send a
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 ----------------------------------------------------
Yahoo! Groups Sponsor
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

