Hi Steeve.. usually i do like this for record
 
1) i create a button in the form so that i can call the report..
2) in clicked() method
 
void clicked()
{
    Args                parameters = new Args();
    MenuFunction        _reportMenuItem;
    ;
    _reportMenuItem = new 
MenuFunction(menuItemOutputStr(NameofReportMenuItem),MenuItemType::Output);
    parameters.record(formDatasource);
    _reportMenuItem.run(parameters);
    super();
}
 
3) In report --> init()
 
Table table;
 
table = element.args.record();
 
if 2 parameter not in the same record, maybe u can use container like what 
steeve has explained.
 
or maybe u can use class.
 
void clicked()
{
    RptClass _rptclass = new rptclass();
    rptclass.getInfo("ABC");
    rptclass.getInfo2("DEF");
    rptclass.initParmDefault();
    rptclass.initQuery();
    rptclass.run();
    super();
}
 
 
 
 

Steeve Gilbert <[EMAIL PROTECTED]> wrote:

Put your 2 parameters in a container and pass it with 
args.parmObject(yourContainer).  I think you'll have to manually call your 
report if it was called with a MenuItemButton.

Steeve... 


-----Message d'origine-----
De : chievaz_regalz [mailto:[EMAIL PROTECTED] 
Envoy� : 13 janvier 2005 01:10
� : [email protected]
Objet : [development-axapta] Passing two parameters from form to report



Hai All,

please help,

i try passing two parameters from form to report, but i dont have any 
idea to do that. if i passing one parameter from form to report it 
succesfully.

thank for your help

regards

Chievaz






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. 



SMILE 



                
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

[Non-text portions of this message have been removed]






 
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:
    http://docs.yahoo.com/info/terms/
 




Reply via email to