Interested in creating and selling training? You pick the price, 50/50 revenue share, and you own the content. Find out more at
this Question is continuation of this thread How to disable print button when report already printed.
As image shows above.
What i want to happen is upon clicking the "OK" button in the 3rd image to print the reports, then it will tells report is printed and automatic close the 1st and 2nd image/window. Please view the link above to understand.
hoping your quick response..
Ok martin i get your point.
this thread is the continuation of my concern in the link above.
My main concern is how to put my code in OK Button image 3 above..
see below image.
Unfortunately you didn't answer my question. Why would you print something to screen and then immediately closing it? Isn't it completely useless? If you don't want to show it, don't print it to screen.
To learn how to refresh forms, I recommend this tutorial.
It's not clear to me how the code above is related to your questions.
you didn't get me either.. I'am not telling you that i want to close right print screen, no is not. what i want is after they print, the reason is restrict reprint process ..
About my code, there is code that tells that is print already. this happen when i print something on the screen. -existing.
what i want to happen right after they print the print on screen if will update the field is_print to 1 that tells print already.
then close the print on screen window and refresh the journal form to disable the button DR Print
-Double Printing of Delivery Receipt.
-To disable the Button DR Print in Journal Form.
-After Print Disable Button DR Print in Journal Form.
in developer side.
I already done this, please see this Thread to understand.
But after taking several test, i saw a logical problem.
you get it?
(e.g. trying to prevent people from reprinting the report if sent to a wrong printer, printed incorrectly because of running out ink etc.) - it's not your problem now.
For the mean time, our work around is they send email request reprint and we update through backend, until iam not done making the module to Uncheck the printed status..
honestly, i don't know how to use the close() method..
A trickier part may be getting a reference to the form. I wonder if you have already tried it and got into a problem, or you don't even know how to get a caller form in general. - can you please help me on this?
i need to learn a lot things in ax.. please understand..
There is not much to say about it; simply call the method. Like this: formRun.close();
When I said "I wonder if you have already tried it and got into a problem, or you don't even know how to get a caller form in general", you merely replied "can you please help me on this?", but you didn't even told of those two options are you dealing with. If you need out help, please realize that you must do your part as well and explain what you need from us.
Also note that merely shouting without providing any information won't help anybody to understand your problem; that's why I deleted your replies that contained only "anyone?".