Create a Date picker on my Form
badoqu
Hi,
I can't find a code sample to show me how to create a Date picker.
Anyone can explain me with a bit of code?
Thank you.
badoqu
I heard i had to bind a TextField to a datasources. How can i do that? I already created a form with Textfields and now i just want to force the user to enter a correct date.
I'm new to coresuite and to sap b1 sdk...
Nobody ca help me? :(
badoqu
Problem solved
Here is my solution:
txtDateCreation = TextEdit.CreateNew("Txt2");
UserDatasource dateDSC = UserDatasource.CreateNew("DATEDSC");
dateDSC.DataSourceType = UserDatasource.DataType.Data;
commandForm.AddUserDatasource(dateDSC);
SwissAddonFramework.UI.Components.DataBind dateDB = SwissAddonFramework.UI.Components.DataBind.CreateNew(dateDSC.UniqueID);
dateDB.DataBound = true;
txtDateCreation.DataBind = dateDB;
txtDateCreation.Left =10;
txtDateCreation.Top = 10;
txtDateCreation.Width = 80;
txtDateCreation.Enabled = false;
commandForm.AddItem(txtDateCreation);
0
Please sign in to leave a comment.
Comments
0 comments