Skip to Content
0
Former Member
Nov 01, 2005 at 12:13 AM

Text Box not retaining value

40 Views

Hi,

I have a custom form that has some combo boxes and a text box. When I open the form and input new data, the combo boxes correctly send their selected values to the user table I have set up. The text box, however, will not retain the value typed into it. Here's a snippet of the code where I create the text box:

Dim oTxtJoin As SAPbouiCOM.EditText
oItem = oForm.Items.Add("txtJoin", SAPbouiCOM.BoFormItemTypes.it_EXTEDIT)
oItem.Left = 80
oItem.Width = 80
oItem.Height = 14
oItem.Top = 107

oTxtJoin = oItem.Specific
oTxtJoin.DataBind.SetBound(True, "@NBS_ATTR_STYLE", "U_JOIN")

Now here's where I reference the text box upon hitting "Save" and entering a value into the Join field:

oTxtJoin = StyleForm.Items.Item("txtJoin").Specific
SBO_Application.MessageBox("Join: " & oTxtJoin.Value)

The oTxtJoin.Value is always blank even immediately after inputting the value. I assume this may have something to do with databinding, but I've tried with and without binding and get the same result.

Any ideas?

Thanks!