Anitha, Thank you for your reply, On my form I have a grid with the PurchID as one value. On this form I added a MenuAction to point my my class. In my class I have the query "while select PurchTable where PurchTable.PurchId == 'PurchIDValueFromForm'" this create my text file as I expect. but I need to change the "PurchIDValueFromForm" for each selected record that I create file from.
What is the way to accomplish this I have tried your suggestion however it is not pulling the right data related to the selected record. Regards G --- In Axapta-Knowledge-Village@yahoogroups.com, Anitha S <mail2eani...@...> wrote: > > I could not get the clear picture of ur query. I understood the first part > of it. > Try this. > From your question , i understud PURCHID is in the datasource. > So you can directly use it as *datasourcename.PurchID or > FormControName.text()* and pass it as parameter to the class method. > Else you can pass the Table as parameter. > > Hope it helps!!! > > Regards, > Anitha > > On Thu, Sep 10, 2009 at 6:34 AM, girac127 <girac...@...> wrote: > > > > > > > Hello all, > > > > I have created a job to query and create file. I will drag that into a > > class. > > Now I need to to pass a parameter from my form (the PurchTable.PurchID > > field of the record that is selected) to the class and use that as my > > parameter in my query. > > How can I accomplish this? > > > > Best regards > > G > > > > > > >