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

Click user pane activates UPDATE button


I have added an additional pane to the Item Master form with this code in the LOAD_event:

Set oItem = oTmpForm.Items.Add("XX_FOLDER", it_FOLDER)

Set oFolder = oItem.Specific

oFolder.Caption = "Adittional"

oFolder.GroupWith ("9")

The folder is right added at first position. I have also added controls to this pane:

Set oItemRef = oTmpForm.Items.item("16")

Set oItem = oTmpForm.Items.Add("U_XX_USTK", it_COMBO_BOX)

oItem.Top = oItemRef.Top

oItem.Left = oItemRef.Left

oItem.Width = oItemRef.Width

oItem.Height = oItemRef.Height

oItem.FromPane = 7

oItem.ToPane = 7

oComboBox.DataBind.SetBound True, "OITM", "U_XX_USTK"

For activate this pane I trapp click event:

Case et_CLICK

Set oTmpForm =app.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

If pVal.ItemUID = "XX_FOLDER" Then

oTmpForm.PaneLevel = 7

End If



All works fine, but when I'm browsing the items with navigation button if I only do click on this panel, the "OK" button automatic changes to "UPDATE", without changes in any field.

I try to put the bubbleevent to false, then the pane contents is paint but the folder's tap is not activate...and the button also change to "update".

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2004 at 07:23 AM

    SAP Business One 2004A (6.7): Set the AffectsFormMode property of the tab to false.

    SAP Business One 6.5: There's a thread about that:

    AffectsFormMode and Folder Button not working

    A workarround is to react on et_CLICK (before), change the pane level and set Bubblevent to false. Doesn't look nice but works.

    Florian Zeller


    Instead of:

     Set oTmpForm =app.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount) 

    , following code is doing the same job without calling GetFormByt...:

    Set oTmpForm = app.forms(pVal.FormUID)

    Message was edited by: Florian Zeller

    Add a comment
    10|10000 characters needed characters exceeded

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.