if the class extend from runbasereport class then go for the following :

Next steps

1- in your class you should overrdie lastValueElementName as the following

public identifiername lastValueElementName()
{
    return reportStr(CustAccountStatementExt);  // CustAccountStatementExt is report name.
}

2- in main() method of the class you will write the following

public static void main(Args args)
{
// CustReport_AccountStatementExt :::::::------------------- the class which you have created

CustReport_AccountStatementExt custReport_AccountStatementExt = new CustReport_AccountStatementExt();
    ;
    if (custReport_AccountStatementExt.prompt())
    {
        custReport_AccountStatementExt.run();
    }
}

3- create Action menuitem refered to your class.

4- in the init() method of the report you will add the following code:

    custReport_AccountStatementExt  = element.args().caller();

since
   custReport_AccountStatementExt is the class and you have to define a variable from that class in report classdeclaration

then you can you use custReport_AccountStatementExt in the report and calling function to return with the values which the user entered.

try to look at custReport_AccountStatementExt class to get more knowledge

Ahmed

anton_tjiptadi <[EMAIL PROTECTED]> wrote:


Hi, I want to run a report from Form, which I made it earlier, The
Form supposed to cater user criteria first and then they click OK
button, then the report runs.

ps : I just created a Class to run the form and it can display the
form, but I have no idea to do next ?

btw, What is the prupose of funtion Pack and Unpack, since I'm a
newbie here :)

thanks in advance,
Anton











Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
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.


           
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

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





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to