I don't know how your fetch() is built but you can check that sample and let us know if you need more details.

public boolean fetch(){
    QueryRun  LocalQuery = new QueryRun(this);

    if (element.prompt() && LocalQuery.prompt()){
      // clicked OK
        return true; //message appear
    }

    // Clicked cancel

    return false; //no message
}

regards,

Steeve...


-----Message d'origine-----
De�: k_otickashka [mailto:[EMAIL PROTECTED]
Envoy�: 5 juillet 2004 11:22
��: [EMAIL PROTECTED]
Objet�: [development-axapta] How to cancel a report

I am trying to build a report based on two ranges. If the range does
not entered, I would like the an infolog to appear and the report
aborted. I got that part to work by modifying the fetch method and
checking the value of the range but if the user selects "Cancel", the
infolog still appears. How can I tell the report not to display that
message if the user clicks cancel?



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to