The statement that got me back on track was :
//args.record(SalesTable);
/b
Sonny Wibawa Adi wrote:
>Hi, byteway_so,
>
>
> Is what you mean the datasource that is in the form? If so, then just send the DataSourceName using record accessor method. So, if you want to get the FormObjectSet object, then use element.args().record().dataSource() function.
>
> Ex.:
>
> Args args;
> ;
> args = new Args();
> args.record(SalesTable);
>
> //when receiving the argument:
> SalesTable salesTableLocal = element.args().record();
> FormObjectSet salesTableLocal.dataSource();
>
>byteway_so <[EMAIL PROTECTED]> wrote: Hi,
>
> How can I pass a datasource (with selected records) in an args object?
> Tried the dataset method without luck, also parm("datasourceName")
> didn't work.
>
> Args arg;
> ;
> args = new Args();
> //args.parm("datasourceName");
> //args.dataset()= datasourceName;
>
> Any hints?
>
>
>
>
>
>
>
>
>
>
> SPONSORED LINKS
> Computer part Programming languages Microsoft axapta &nb sp; Support exchange
>
>---------------------------------
> YAHOO! GROUPS LINKS
>
>
> Visit your group "development-axapta" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>---------------------------------
>
>
>
>
>
>
>Best regards,
>
>
>Sonny Wibawa Adi
>MBS Certified Professional - Axapta 3.0 Technical
>MCSD.NET
>MCAD.NET
>
>---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
>[Non-text portions of this message have been removed]
>
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
SPONSORED LINKS
Computer part | Programming languages | Microsoft axapta |
Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.