Generating 2 folder in System Form.

Hi Friends,
       I have created 2 folder in GRN.1st folder works completly fine but when I clicked on 2nd folder its open Content Folder of GRN, means in Panelevel 1 not in Panelevel which I have declared for 2nd Folder.
      I have written Item Press event also in which I have given Panelevel to Form.i.e.
      oForm = SBOApplication.Forms.Item(FormUID)
      oForm.PaneLevel = 11
but still its open in Content Folder of GRN.Is there any problem while creating 2 folder in System form??
  Please help me to solved this problem.
Thanks & Regards,
    Swati

Hi Swati,
Try this,
on Click Event and BeforeAction= true i.e. ClickBeforeAction
set the pane level of the form as the pane level that u assigned to your panes,
like,
if (pVal.ItemUID == "oFldrCost1")
                 oForm.PaneLevel = 222 ;       //pane level of your first pane
if (pVal.ItemUID == "oFldrCost2")
                 oForm.PaneLevel = 223;    //panelevel of your 2nd pane.
Edited by: anuj singh on Feb 12, 2009 11:22 AM

Similar Messages

  • Create Folder in System Form

    Hi,
        Anybody know how can i create a folder in a system form that not contain any folder???
    For example: Good Receipt, Good Issue, Inventory Transfer from the Inventory Module
    Thanks!!

    Try this:
    oForm = SBO_Application.Forms.GetFormByTypeAndCount("134", intFormCount) '134 is for Business Partner.
                oForm.DataSources.UserDataSources.Add("FolderDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
                objRefItem = oForm.Items.Item("9") 'Refer to the position or the last Folder
                objItem = oForm.Items.Add("Folder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
                objItem.Left = objRefItem.Left + objRefItem.Width
                objItem.Width = 200
                objItem.Top = objRefItem.Top
                objItem.Height = objRefItem.Height
                objItem.AffectsFormMode = False
                oFolder = objItem.Specific
                '// set the caption
                oFolder.Caption = sFolderCap
                oFolder.DataBind.SetBound(True, "", "FolderDS")
                oFolder.GroupWith("9")
    Kevin.

  • Problem with AddRow() in custom matrix on System Form

    Hello all,
    I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
    However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
    My code is simple:
            [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // Add matrix line
                Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
                pMatrix.AddRow();
                // Set matrix line data
    The matrix shows ok in the system form, inside a new folder.
    What is the problem with my code?
    Is there any way to add rows to a custom matrix in a system form?
    This code runs ok if executed in a custom form...
    Thanks!
    Manuel Dias

    hi.
    R u facing any problem ...
    actually add row and del row both are same.
    in normal customization form and system form matrx...
    Any problem are u facing...

  • How to create add-on of a system form in sap b1 9.0?

    Hi all,
    I have a problem related to the creation of a system form add-on of sap b1 9.0.
    I can develop some projects in visual basic, but about sap b1 add-on, I know how to package files of to install (.ard and .exe files) and I also know how to register .ard file in sap b1 9.0, So I tried to register all projects found in SDK sample folder that was correct.
    I tried to do an example of project found in SDK Help Center.
    But the problem I have to day related to the creation of system form add-on.
    The steps I tried to do are:
    1. I opened SAP B1 Studio for Microsoft Visual Studio
    2. Right click my project and add the system form (Employee Master Data)
    3 Connection string I used in Command line arguments   0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    4. I added one field (CFL of BPCode) to Employee Master Data.  I did n't add any reference because when I add UI API Vission 9.0 to system form or user form of sap b1 it gives errors in Menu.vb. I do know why.
    5. I converted in 32 bit and build my project
    6. I re_opened new visual studio 2010 for creating new project with SAP B1 AddOnInstaller.NET Wizard
    7. From here I did every thing according to the video of Bryan Gomez
    Creating and Registering SAP Add-on - YouTube
    8. I registered my .ard file
    9. But when I start my add-on it gives error (Add-on connection timed out)
    The questions I want to ask,
    1. If you are creating the add-on of system form Is there any other thing needed to do more than the above  I explained?.
    2. Is it necessary to go in SDK code when you are using the system form like that?.
    3. If it is necessary to add reference of UI API  in project, how to handle error occurs when we add that the reference to the project which is using a system form?.
    Please anyone who has an idea he/she can help me.

    Hi pallavi p,
    That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
    So let me give you the way you can try.
    1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
    2. Right click on your project
    3. Add new item
    4. Sap Business One
    5. System form (Employee master data) or user form
    6. Add
    And then if your form is opened
    7. Go to add the reference of UI API Version 9.0
    8. Check errors found in menu.vb (or in OutPut)
    So if it's possible try to solve that problem.
    Please anyone can help me.

  • !0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up) Thank you

    !0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up)  I have tried but it will no show 'live' system folder - do and how can I bless it ? Thank you

    Carbon Copy Cloner will allow you to de-select directory trees, so you could use it to copy over everything EXCEPT the /Users directory tree.
    Mac OS X is NOT just the System Folder.  If you do not copy over the rest of Mac OS X, it will not boot.  So better to exclude Users and take everything else, then it is to try and pick and choose.
    The other approach is to install a New Mac OS X, and then copy over the stuff you want from the home folder(s) and reinstall any apps you want.

  • How to register add-on of edited system form in sap b1 9.0?.

    Hi all,
    I have a problem in SAP b1 9.0.
    Actually I added one field of BPCode to Employee master data, so I want to register an add-on of that system form in SAP b1 9.0.
    When I create file of .ard as we watch it in video of 
    Bryan Gomez
    Creating and Registering SAP Add-on - YouTube     it will be created correctly, But the problem is when I register that the file of .ard it gives error (Cannot create a file when that file already exists). Again when I create a file of .ard of any other User form it gives the same error (Cannot create a file when that file already exists).
    But when I create and register the add-on of Hello World in Sample folder of SDK it will be registered correctly.
    How can I solve that problem.
    Anyone can help me please.

    Hi pallavi p,
    That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
    So let me give you the way you can try.
    1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
    2. Right click on your project
    3. Add new item
    4. Sap Business One
    5. System form (Employee master data) or user form
    6. Add
    And then if your form is opened
    7. Go to add the reference of UI API Version 9.0
    8. Check errors found in menu.vb (or in OutPut)
    So if it's possible try to solve that problem.
    Please anyone can help me.

  • System Form Manipulation under Condition

    Dear All,
    I want to modify a System Form like (Sales Order) in a specific way (eg add folder), when I trigger a user specific Item Menu (eg Order Requisition).
    If I use _ItemEvent... (pVal.FormType = 142) everytime  the System form is loaded it will change, but I want this happen ONLY WHEN IS TRIGGERED from Specific Item Menu.
    I tried the following code but no luck.
    Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            If pVal.BeforeAction = False Then
                Select Case pVal.MenuUID
                    Case "SM_PurReq"
                        DrawPurReqForm()
                End Select
            End If
        End Sub
    ========
    Sub DrawPurReqForm()
          SBO_Application.ActivateMenuItem("2305") 'to get Sales Order form
            Dim oItem As SAPbouiCOM.Item
            Dim f As SAPbouiCOM.Form
            f = SBO_Application.Forms.Item("142")
            oItem = f.Items.Item("138")
            oItem.Visible = False
    End Sub
    Thanks in Advance,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Jul 12, 2008 12:54 PM

    Hi Vangelis,
    I think this would work:
    1) Create a global boolean variable. Set its value to false by default.
    2) Add code to the load event of the sales order form that will add your item if the global flag is true. The code should set the global flag to false after the item is added.
    3) Add code to the menu event that checks for your menu activation and then sets the global flag to true and activates the sales order menu.
    This will mean that the code in the sales order form load event will only be triggered if the sales order form is opened via your menu. If the user opens the sales order form by any other means (eg drag-and-relate, menu or link) then your item will not be added.
    Kind Regards,
    Owen

  • Matrix x System Form x UDO

    Hey all,
    I´m asking for some help to deal with the following:
    I want to show a new Matrix in a System Form.  The data is from a UDO (line data - detail).
    How should i do that ?  Can i use UDO methods ? Anyone can help me ?

    Hi Christiano,
    If you are modifying a System Form then you cannot use the UDO methods to save everything automatically. How you will add your matrix to the system form? Are you adding a new folder?
    If you want to use the UDO methods then you need to create a separate form linked to your UDO. In this case you can add a button to the system form opening your form.
    Hope it helps
    Trinidad.

  • Update a system form using XML

    Hi all,
    I'm trying to update a system form by adding a tab (folder). The form is Customer Equipment Card (nb 60150), in the service menu.
    I just want to add a folder called Counter.
    When I load the XML file below, I get the following error :
    System.Runtime.InteropServices.COMException (0xFFFFFFFE): Function not supported on current SBO Version - upgrade is required
    If I want to add a button, it's working, but not a folder.
    Something's false in this XML file (I add the good uid before I load it) ?
    Thanks for your help
    Sébastien

    > - Drop the datasource section
    > The error is gone, but I don't see the folder in
    > in the form
    You could try and check wether it's there but invisible (access it in your code and wait for an exception).
    > - Linkto Objet
    > If you look at the XML code of the form, you can
    > can see that all the folder are links to this item.
    > Moreover, when I add the form using VB (it's working
    > that way), the XML result will show linkto = "54"
    I believe. I analyzed another system form and my own forms: None of the tabs are linked to anything. Is this documented? What does it mean?
    > - the data source is SYS_71 for all the folder of the
    > form. I don't understand what you mean when you want
    > me to set the val_on to this datasource
    I looked at the XML source of another system form and the tabs had val_on="SYS_whatever". With my own forms I set val_off="N" and val_on="Y". I remember having had some problems there, but I can't put my finger on it now.
    > - item group
    > I'm using SBO 6.5, I can't find help on that, maybe
    > it's only on 2004.
    No, it's 6.5. It's not in the documentation but you will find it somewhere inside the guts of this forum. As I said, I once had trouble adding tabs cleanly to a custom form using XML.
    Of course, all this is just blindly stabbing into the dark. What else can we do?

  • I created new table in database and want to bind with system form

    Hi All,
    1) i created new table in database and want to bind with system form .
    2) How i bind this field to system form sale order where i added new folder tab in that i added some fields that fields i want to bind with database. when i click on the next ,previous ,first and last button
    bind value should change.
    Awaiting soon reply
    Rajkumar G.

    hi,
    try this
    Public Sub BindDataToForm()
            Dim oItem As SAPbouiCOM.Item
            Dim oEdit As SAPbouiCOM.EditText
            Dim oComboBox As SAPbouiCOM.ComboBox
            '// getting the matrix column by the UID
            'oItem = oForm.Items.Item("docname")
            'oComboBox = oItem.Specific
            'oComboBox.DataBind.SetBound(True, "OSRI", "BaseType")
            'oItem = oForm.Items.Item("docno")
            'oEdit = oItem.Specific
            'oEdit.DataBind.SetBound(True, "OSRI", "BaseEntry")
            oColumn = oColumns.Item("Code")
            'oColumn.DataBind.SetBound(True, "", "DSCardCode")
            oColumn.DataBind.SetBound(True, "OSRI", "ItemCode")
            oColumn = oColumns.Item("Serial")
            oColumn.DataBind.SetBound(True, "OSRI", "IntrSerial")
            Try
                oColumn = oColumns.Item("Inspection")
                oColumn.DataBind.SetBound(True, "OSRI", "U_Inspection")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oColumn = oColumns.Item("Quality")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Quality")
            oColumn = oColumns.Item("Status")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Status")
            oColumn = oColumns.Item("Finish")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Finish")
            oColumn = oColumns.Item("Thickness")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Thickness")
            oColumn = oColumns.Item("uom")
            oColumn.DataBind.SetBound(True, "OSRI", "U_NetUOM")
            oColumn = oColumns.Item("length")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Length")
            oColumn = oColumns.Item("height")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Height")
            oColumn = oColumns.Item("sqf")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqf")
            oColumn = oColumns.Item("sqm")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqm")
        End Sub

  • The Net Pay generated by the system is wrong

    Hii ,
    i have an issue for payslip.
    The Net Pay generated by the system for an employee for the month of Oct.09 is wrong.  When i  analyse the payslip, the difference between the Gross Earnings and the Deductions is different from the actual Net pay. 
    Please help , i have checked in form . In earnings column total is calculated correctly and deductions also but there is excess amount in net pay.

    Hi ,
    i have checked cluster for the same but net payment /560 is calculating wrong amount which is on payslip
    as per understanding /560 = /550 + /110 so i have calcualted that amount bt it is giving some other amount
    where shoud i check the processing of the /560 in detailslike which all other wagetypes are included in this
    thanks for the reply

  • How to add a Tab in Company Detail System Form

    Hi Experts
    I am making a new Tab in Company Detail System form In Accounting Tab after Excise tab. This is tree of Tabs. Accounting Tab has two Sub-Tabs General and Excise. Now this New Tab 'Export' will also be the sub-Tab of Accounting Tab. My code for inserting tab is given below
    If pVal.FormType = "136" Then
                        Dim sysItem As Item
                        Dim SysEdit As Item
                        Dim lbl As StaticText
                        Dim editText As EditText
                        Dim oFolder As Folder
                        sysItem = form.Items.Item("140002039")
                        oItem = form.Items.Add("ExportFD", BoFormItemTypes.it_FOLDER)
                        oItem.Left = sysItem.Left + sysItem.Width
                        oItem.Top = sysItem.Top
                        oItem.Width = sysItem.Width + 20
                        oItem.FromPane = 5
                        oItem.ToPane = 6
                        oFolder = oItem.Specific
                        oFolder.Caption = "Import/Export"
                        oFolder.GroupWith("140002039")
                        sysItem = form.Items.Item("140002040")
                        SysEdit = form.Items.Item("140002041")
                        oItem = form.Items.Add("LDrMfNo", BoFormItemTypes.it_STATIC)
                        oItem.Left = sysItem.Left
                        oItem.Top = sysItem.Top + 65
                        oItem.Width = 120
                        oItem.FromPane = 6
                        oItem.ToPane = 6
                        lbl = oItem.Specific
                        lbl.Caption = "Drug Manufacture Licence No."
                        oItem = form.Items.Add("EDrMfNo", BoFormItemTypes.it_EDIT)
                        oItem.Left = SysEdit.Left
                        oItem.Top = sysItem.Top + 65
                        oItem.Width = SysEdit.Width
                        oItem.FromPane = 6
                        oItem.ToPane = 6
                        editText = oItem.Specific
                        editText.DataBind.SetBound(True, "OADM", "U_DrMfcLNo")
    The tab is added properly It also show labels and  Edit boxes but when I select this tab General and Excise tab is disappeared.
    Plz suggest me what can be the problem
    Thanks
    Best Regards
    Jitender
    Edited by: Jitender Garhwal on Apr 5, 2010 6:28 AM

    Hello,
    Change the ToPane Property of  General and Excise  until your last panelevel (6?)
    The ToPane property of these items is less than your folders panelevel ! This is the problem.
    Regards,
    J

  • "moving" folder on BP forms

    Hello,
    I have added a user folder to the BP form behind all system forms. I want it to keep to the same position whatever the form mode.
    You can notice that according to the form mode, the number of system folders changes:
    In Find mode for instance, there are no "Contact Persons" or "Addresses" or "Properties" folders.
    If you have one record or more in the OCRD table, the form will open in Find Mode, so with the 5 standard folders and the user folder appearing in 6th position
    If you click on the "Add record" menu, you now have 8 standard folders, but the user folder is no longer in last position.
    I tried to call the GroupWith() method after action, but without success.
    Any idea?
    Cheers.
    Cyril

    I think you are trying to do something like this -
    Dim MyButton As SAPbouiCOM.Button
    If pVal.FormType = 134 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD Then
    '// get the event sending form
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
    ''''' CREATE THE BUTTON ON BP MASTER DATA/ADDRESS TAB
    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD Then oNewItem = oForm.Items.Add("AddButton", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
    oItem = oForm.Items.Item("70")
    oNewItem.Height = oItem.Height
    oNewItem.Width = oItem.Width - 7
    oNewItem.FromPane = oItem.FromPane
    oNewItem.ToPane = oItem.ToPane
    oNewItem.Top = oItem.Top
    oNewItem.Left = oItem.Left + oItem.Width + 5
    MyButton = oNewItem.Specific
    MyButton.Caption = "Why Hello!"
    See how this code uses an existing button on the form to set it's properties including the FromPane / ToPane properties?
    I hope this snippet helps.

  • System form modification

    Hi all.
    After do a system form (Sales order) modification (add a button). Everytime changes the register system displays the emessage "Changes will cause the data to be deleted". Thats not correct when the form data isn´t changed.
    Anyone know how to eliminate this message?
    Regards.

    Hi Alfredo,
    I don't remember to have such problem with a button but can you try to set the Item property AffectsFormMode to false? I had this problem with Folders items, everytime I selected my folder then the button add changes to update. With folders it worked fine...
    Do you push the button you have added before using the navigation buttons?
    Can you show us the code you are using to add the button and when do you add it?
    Regards
    Trinidad.

  • Transaction control after we press 'add' in system forms

    Hi All,
    I want to perform a transasction in goods issue for the same items which user enters in goods recipt form. when he presses 'Add' in goods receipt form, ideally first, receipt document will be generated by default (thru system only) and then thru SDK's oInventoryGenExit object, I m passing the same document to issue but, I want to let the receipt be created first and then only if the receipt is created successfully, Issue will  be generated. but, in practice, the issue is executed first.
    Is there any way to track if user has clicked "yes"
    for "you can not change the document after you have added it.
    do u want to continue?" message, after he presses 'Add'?.
    Ideally, issue document should be generated after user clicks yes and reciept is generated.
    thanks in advance.
    regards,
    Binita

    Hi All,
    the workarounds we discussed work fine. I m facing one more problem. After the system form succesfully adds the data (and we get the confirmation by checking the action success or something like that) , how can I know which was the last document added by that form? for example, I am handling  the Form Data Event in sales order form and checking the action success. but, I want to know which was the document created by this event in back-end. we can do it by comparing the document number from form screen, but we know that, for cases such as more than one users adding the documents simultaneously or when a draft is saved as document, the shown doument number may not be the actual number with which the document may have been saved in back-end table.
    How can I determine this?
    Any help would be greatly appreciated as I m just stuck up on this
    thanks and regards,
    Binita

Maybe you are looking for