Basically I am trying to print a receipt based on an account number
and receipt number. The user must enter the account number (how do I
make mandatory on a query form? ) If the user enters the account
number then a check is done to see if a receipt exists for that
customer. If it does and the user hasnt specified a receipt number in
the query form then an warning is issued and the report is cancelled.
How do I accomplish this?

--- In [EMAIL PROTECTED], "Steeve Gilbert"
<[EMAIL PROTECTED]> wrote:
> 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