Thanks Steeve, it works very well!!!
--- In [email protected], "Steeve Gilbert"
<[EMAIL PROTECTED]> wrote:
>
> Wow... I'm so not wake up this morning. Sorry. Here's the
corrected code. Basically you just fake that the form is opened
from CustTable.
>
> Args _args = new Args();
> MenuFunction menuFunction = new MenuFunction("SalesTable",
MenuItemType::Display);
> CustTable custTab = CustTable::find(custIdFromYourView);
>
> _args.record(custTab);
> menuFunction.run(_args);
>
> //super();
>
> Steeve...
>
>
> -----Message d'origine-----
> De�: vlemeunier2 [mailto:[EMAIL PROTECTED]
> Envoy�: 25 avril 2005 10:17
> ��: [email protected]
> Objet�: Re: RE : [development-axapta] Help!
>
>
>
>
> The problem is that a client can have several sales... so it
doesn't
> work in this case.
>
> Vince
>
>
>
>
> --- In [email protected], "Steeve Gilbert"
> <[EMAIL PROTECTED]> wrote:
> >
> > You could try this in the clicked() method of your button :
> >
> >
> > Args _args = new Args();
> > MenuFunction menuFunction = new MenuFunction
("SalesTable",
> MenuItemType::Display);
> > SalesTable salesTab = SalesTable::find
> (yourView.fieldIdentifyingCustAccount);
> >
> > _args.record(salesTab);
> > menuFunction.run(_args);
> >
> > //super();
> >
> >
> > Steeve...
> >
> >
> > -----Message d'origine-----
> > De�: vlemeunier [mailto:[EMAIL PROTECTED]
> > Envoy�: 25 avril 2005 06:33
> > ��: [email protected]
> > Objet�: [development-axapta] Help!
> >
> >
> >
> >
> > Hi,
> >
> >
> > My problem is:
> >
> > I have created a view.
> >
> > I have a form (Form A) with a grid that displays data comming
from
> > this view. In the grid there are the accountNum and the name of
> each
> > client.
> >
> > In this same form there is a menuItemButton that calls the
> > SalesTable Form.
> >
> > I would like that the SalesTable Form displays only the sales of
> the
> > selected client of the grid (of the Form A).
> >
> > It works when I use a table (for the datasource) but when I use
a
> > view....
> >
> > Thanks,
> >
> > Vince
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

