DataBinding and new Order Form
DREAN Sébastien
Hi,I have to create a light order form, with only a few fields. I would like to perform Databinding with the ORDR table, so that it would directly create/update an order.
Does anyone have ideas about how to do this ?
Maybe a lead could be DTOs ?
Thanks for your Help.
Best regards.
Sébastien.
Sebastian Schweer
Hallo Sebastien,Here a little Example of Databinding Code Structure:
// Textfeld define
TextEdit TextEditDescription = TextEdit.CreateNew("TextEditXY"); //
Textfield Description // String Name <= 10 Chars
// Binding Textfeldes Description
TextEditDescription.DataBind = DataBind.CreateNew("TextEditD1");
TextEditDescription.DataBind.TableName = "OITM";
TextEditDescription.DataBind.Alias = "U_Zeichnungsnummer";
TextEditDescription.DataBind.DataBound = true;
// Adjust Textbox Description // Values to Controll Visability // should be != 0
TextEditDescription.Top =0;
TextEditDescription.TabOrder = 0;
TextEditDescription.Left = 0;
TextEditDescription.Width = 0;
TextEditDescription.Height = 0;
TextEditDescription.FromPane = 0;
TextEditDescription.ToPane = 0;
TextEditDescription.Visible = false;
pVal.Form.AddItem(TextEditDescription);
pVal.Form.Update();
Best Regards,
Sebastian
DREAN Sébastien
Thank you Sebastian, but it's not exactly what I need.I would like to create a new form, with custom fields and buttons, and therefore the databinding should be "executed" when I click on my new "add" (or update) button.
what would be the command which would allow the add/update to be performed?
Best regards,
Sebastien.
Sebastian Schweer
If you create a Button, you can store any Code to that Button you want.If you Creating a new form, for example to enter something into the Item Master Data, you have to define yourself a Item object.
This one, you can update then via oItem.update( ); or oItem.add( ); command.
Or do you wish to create your own objects?
best regards,
Sebastian
DREAN Sébastien
Thank youI will try to do it that way.
Have a nice day
Best regards
Sébastien
0
Please sign in to leave a comment.
Comments
0 comments