I want to prompt the user to enter a date so I can use that date later on when pressing a button. Can I use a a dialog box using input? If so, does anybody know of a better way in accomplishing this?
Usually when input is required, you request the info at the beginning of the process.
You probably need a processing report and add the input on the request dialog.
Also asking users for input during transaction is bad idea because it locks everybody else out.
Ahmed Rashed Amini
Independent Consultant/Developer
Usually when input is required, you request the info at the beginning of the process.
You probably need a processing report and add the input on the request dialog.
Also asking users for input during transaction is bad idea because it locks everybody else out.
Don't think a process report is the best approach. Also, it's not during transaction. It's before the transaction that I'm prompting the user to enter a date. I want to pass that date to a codeunit, and use that date during posting a recurring journal.
Presonally, I do not like the Input dialogs. I never used it. You can add textbox to the form from where the function is started, or you can add new report/form which could be used as input dialog dynamically instead input dialog. Yes, it is one additional object, but it will solve more than it will cost you...
Comments
Usually when input is required, you request the info at the beginning of the process.
You probably need a processing report and add the input on the request dialog.
Also asking users for input during transaction is bad idea because it locks everybody else out.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Don't think a process report is the best approach. Also, it's not during transaction. It's before the transaction that I'm prompting the user to enter a date. I want to pass that date to a codeunit, and use that date during posting a recurring journal.
Why do you think it's not the best approach?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Because it requires an object (in this case a report) to be created. It's a waste of resource as compared to using a dialog.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
A form is very cheap, only 14 euro's.