Skip to Content
author's profile photo Former Member
Former Member

Linked Button - Loading from XML

Hi everybody,

I have a problem with the linked button when loading it from XML,

I have three folders in my form, All the folders have the linked button and choose button .

The controls in the second and third folder disappear when it is loaded from XML but for the first folder everything displays fine.

When i directly create the form everything works fine only when I load it from XML is not displaying the controls in folder2 & 3 . below is my code

oItem = oForm.Items.Add("lblInAPGL", SAPbouiCOM.BoFormItemTypes.it_STATIC)

oItem.Height = 14

oItem.Left = 10

oItem.Top = 125

oItem.Width = 154

oItem.Specific.Caption = "Indirect Accrued Payroll G/L"

oItem.LinkTo = "TxtInAPGL"

oItem.FromPane = 1

oItem.ToPane = 1

oItem = oForm.Items.Add("LnkInAPGL", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)

oItem.Height = 14

oItem.Left = 149

oItem.Top = 125

oItem.FromPane = 1

oItem.ToPane = 1

oItem.Width = 15

oLink = oItem.Specific

oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts

oItem = oForm.Items.Add("TxtInAPGL", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oItem.Height = 14

oItem.Left = 165

oItem.Top = 125

oItem.FromPane = 1

oItem.ToPane = 1

oItem.Width = 355

oEditText = oItem.Specific

oEditText.DataBind.SetBound(True, "@" & sOPCDTable, "U_AccPR_GL")

oItem.Specific.String = " "

oForm.Items.Item("LnkInAPGL").LinkTo = "TxtInAPGL"

oForm.Items.Item("TxtInAPGL").Enabled = False

oItem = oForm.Items.Add("ChooInAPGL", SAPbouiCOM.BoFormItemTypes.it_BUTTON)

oItem.Height = 14

oItem.Left = 520

oItem.Top = 125

oItem.Width = 15

oButton = oItem.Specific

oButton.Type = SAPbouiCOM.BoButtonTypes.bt_Image

oButton.Image = "CHOOSE_ICON"

oItem.FromPane = 1

oItem.ToPane = 1

oItem = oForm.Items.Add("lblCrsGL", SAPbouiCOM.BoFormItemTypes.it_STATIC)

oItem.Height = 14

oItem.Left = 10

oItem.Top = 140

oItem.Width = 154

oItem.Specific.Caption = "COGS G/L Account"

oItem.LinkTo = "TxtCrsGL"

oItem.FromPane = 2

oItem.ToPane = 2

oItem = oForm.Items.Add("LnkCrsGL", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)

oItem.Height = 14

oItem.Left = 149

oItem.Top = 140

oItem.FromPane = 2

oItem.ToPane = 2

oItem.Width = 15

oLink = oItem.Specific

oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts

oItem = oForm.Items.Add("TxtCrsGL", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oItem.Left = 165

oItem.Width = 355

oItem.Top = 140

oItem.Height = 14

oItem.FromPane = 2

oItem.ToPane = 2

oEditText = oItem.Specific

oEditText.DataBind.SetBound(True, "@" & sOPCDTable, "U_COGS_EGL")

oItem.Specific.String = " "

oForm.Items.Item("LnkCrsGL").LinkTo = "TxtCrsGL"

oForm.Items.Item("TxtCrsGL").Enabled = False

oItem = oForm.Items.Add("ChooCrsGL", SAPbouiCOM.BoFormItemTypes.it_BUTTON)

oItem.Height = 14

oItem.Left = 520

oItem.Top = 140

oItem.Width = 15

oButton = oItem.Specific

oButton.Type = SAPbouiCOM.BoButtonTypes.bt_Image

oButton.Image = "CHOOSE_ICON"

oItem.FromPane = 2

oItem.ToPane = 2

oItem = oForm.Items.Add("lblLbr", SAPbouiCOM.BoFormItemTypes.it_STATIC)

oItem.Height = 14

oItem.Left = 10

oItem.Top = 125

oItem.Width = 154

oItem.Specific.Caption = "Labor"

oItem.LinkTo = "TxtLbr"

oItem.FromPane = 3

oItem.ToPane = 3

oItem = oForm.Items.Add("LnkLbr", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)

oItem.Height = 14

oItem.Left = 149

oItem.Top = 125

oItem.FromPane = 3

oItem.ToPane = 3

oItem.Width = 15

oLink = oItem.Specific

oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts

oItem = oForm.Items.Add("TxtLbr", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oItem.Height = 14

oItem.Left = 165

oItem.Top = 125

oItem.FromPane = 3

oItem.ToPane = 3

oItem.Width = 355

oEditText = oItem.Specific

oEditText.DataBind.SetBound(True, "@" & sOPCDTable, "U_RewLbEGL")

oItem.Specific.String = ""

oForm.Items.Item("LnkLbr").LinkTo = "TxtLbr"

oForm.Items.Item("TxtLbr").Enabled = False

oItem = oForm.Items.Add("ChooLbr", SAPbouiCOM.BoFormItemTypes.it_BUTTON)

oItem.Height = 14

oItem.Left = 520

oItem.Top = 125

oItem.Width = 15

oButton = oItem.Specific

oButton.Type = SAPbouiCOM.BoButtonTypes.bt_Image

oButton.Image = "CHOOSE_ICON"

oItem.FromPane = 3

oItem.ToPane = 3

Is it a know bug with folders?, can anyone please help me out.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2004 at 08:33 AM

    Mina,

    this sounds to me like a pane problem. When the user clicks on a folder item, make sure to switch to the right pane. Then your controls will show.

    When loading a form via xml, all you get is the visuals. Any behaviour has to be implemented afterwards. This includes switching the panes.

    Have a look at the PaneComboBox object, if you are not already using it.

    HTH Lutz Morrien

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks morrien ,

      But it is switching to the right pane and even the labels, lines are shown, only the textboxes, choose buttons and linked button are not displaying, when I comment the linked button everything is displaying perfectly or else when I comment the linkto property of linked button everything is displaying perfectly.

      This problems occurs only while loading through XML.

      If you have any other thought please reply.

      thanks

      Mina

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.