Date input
SeKo
Hi All,How can I add the datechooser functionality to a TextEdit? On a custom form I would like the user to enter a date.
tnx!
Sebastiaan
Sebastian Schweer
Hi Sebastiaan,you can choose the date option, if you link your field to an UDF and the UDF itself has to be declared as a date field.
If you do that, SAP will automatically change the field to a date field.
Best regards,
Sebastian
SeKo
and if it's not a UDF? Can I do it on a normal textedit field?Sebastian Schweer
Hi Seko,as far as i know, there is no way for it. But what did you want with a field, you can not save?
Best Regards,
Sebastian
SeKo
It's a form we show the customer where he can enter certain parameters and based on those parameters we want to shown some reports (or mail them directly). So the parameter is only used in a query we run in the background to show a grid. In that grid the user can select the cardcodes he wants to mail their report...stekkedecat
Just in case anyone stumbles upon this while having the same problem, here's the solution.
TextEdit dateField = TextEdit.CreateNew("DATEFLD");
UserDatasource dateDS = UserDatasource.CreateNew("DATEDS");
dateDS.DataSourceType = UserDatasource.DataType.Data;
frm.AddUserDatasource(dateDS);
DataBind dateDB = DataBind.CreateNew(dateDS.UniqueID);
dateDB.DataBound = true;
dateField.DataBind = dateDB;
dateField.Top=10;
dateField.Left = 10;
dateField.Height = 18;
dateField.Width = 100;
frm.AddItem(dateField);
Fritz Schwendemann
Hi Stekkedecat
This was a great help for me! Thank you! Saved a lot of time.
Fritz
0
Please sign in to leave a comment.
Comments
0 comments