cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while adding text box to Delivery form

Former Member
0 Kudos

Hi All,

I am trying to add textbox to logistics folder under Shipping Type in Delivery Form. I have done coding using "from pane =2" and "to pane=2" properties and executed . But not getting any where. I have done the same program just changing "from pane" and "to pane" to 1 and executed. . The text box is appeared in Contents folder. But when I changed "from pane" and "to pane" to 2, I am not getting any result. kindly let me know the code to get the result properly.

Regards,

Sravan Kumar Pothu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First u have to find the FromPane or ToPane property of item under the Logistics Folder (ex.Shipping Type) by

oItem=oForm.Items.Item("121");

int pane=oItem.FormPane;

Assign this pane to ur control's FromPane and ToPane property.

Hope u will get help...

Regards,

Lalit Narayan

Former Member
0 Kudos

Hi Lalith,

Thanks. my problem got solved after assigning reference control "FromPane" and "ToPane" properties to my control's.

Regards,

Sravan Kumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Sravan,

U try this code but tell the top,left position correctly.

'PO Type

oItem = PO_Frm.Items.Add("potype", SAPbouiCOM.BoFormItemTypes.it_STATIC)

oItem.Left = PO_Frm.Items.Item("86").Left

oItem.Width = PO_Frm.Items.Item("86").Width

oItem.Height = PO_Frm.Items.Item("86").Height

oItem.Top = 250 '135

oItem.FromPane = 114

oItem.ToPane = 114

oLbl = oItem.Specific

oLbl.Caption = "PO Type"

'PO_Frm.DataSources.UserDataSources.Add("potype", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)

oItem = PO_Frm.Items.Add("c_potype", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)

oItem.Left = PO_Frm.Items.Item("46").Left

oItem.Width = PO_Frm.Items.Item("46").Width

oItem.Height = PO_Frm.Items.Item("46").Height

oItem.Top = 250 '135 '103

oItem.FromPane = 114

oItem.ToPane = 114

oItem.DisplayDesc = True

oCmb = oItem.Specific

oCmb.TabOrder = 436

oCmb.DataBind.SetBound(True, "OPOR", "U_potype")

PO_Frm.Items.Item("potype").LinkTo = "c_potype"

If it is helpful give me points,

Regards,

Anitha

Eneveux
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sravan,

If you use the "Search" feature of this forum, and search on "folder", you should find many helpful posts such as this one that should help you ...

Eddy

Former Member
0 Kudos

Hi Eddy,

Thanks for your response. I have tried all the ways which were presented in this forum. I am trying to add textbox to existing folder(Delivery - logicstics) in Business One . Please provide the code for the same.

Regards,

Sravan Kumar Pothu