Hi,
I wrote a code that delete’s the entries in the table.
Now, I need a dialog box that asks the user to enter the date, based on this date, that code will execute.
Any body help me on how to get a dialog box to let the user put the date ?
This is not working.
Dialogbox.OPEN(‘1#############’,“date”);
Regards,
Teeyech.
Why cant you use a report where you can add text box in requestform?
Hi Mohana,
As I learned little about codding, I preferred to create code unit for this requirement.
If I gone for the report, I may have to learn and takes time that.
Now my status is I know to prepare report normal, not combined or grouping.
Teeyech.
As your requirement is to delete entries in table, you dont need grouping kind of thing I guess…
But if you want to do it via codeunit dialog box then try
Dialogbox.OPEN(‘1#############’,“inputdate”);
Dialogbox.INPUT(1,inputdate);
Dialogbox.CLOSE;
Done, but it shows the error when I run it as:
The ID of a(n) TextBox must be non-zero…
try
Dialogbox.OPEN(’###########1##’,inputdate);
It’s done Mohana. Thank you.
And, now I thing it was my good choice to go for code unit than report coz some validation also I am trying in this.
I guess those are not possible if we gone for report.
Thank you for ur support.
Teeyech