Folder Creation by Screen Painter

Hi All,
        I created a form through Screen Painter which contains 5 folder. I set Pane =1,Pane=2 etc in all five folder and set from Pane and To pane for each Item as 1:1, 2:2 etc.In the Preview mode it shows all item in the corresponding folder. When I run the same form in Debug mode, Sometime it shows only folder not its items. To view items in the folder, i have to open .srf form in screen painter and re run it in debug mode.
Please suggest me a solution.
Thanks in advance,
BBN

Hi
Try setting the form PaneLevel in Code like this
            If pVal.Before_Action = True Then
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                            Case "Folder1"
                                oForm.PaneLevel = 1
                            Case "Folder2"
                                oForm.PaneLevel = 2
                        End Select
                End Select
            End If
hope it helps

Similar Messages

  • Setting Folder Pane in Screen Painter

    Hi All,
    I have a question about setting a value of pane - folder's property. When I set this property in Screen Painter and choose form preview form's pane level changes, but when I save this form in xml file and load in my add on I have to add code that changes pane level after clicking on folder. Also SAPbouiCOM doesn't contain such property like Pane. What is this property for? Why it works in SP and doesn't when load from xml? Is this just for Screen Painter?
    Regards
    Szymon

    Form.PaneLevel is a property for form and it changes form panelevel.
    I think that comparable property for for Folder.Pane (in Screen Painter) would be val off and val on.
    The most important thing for me was to be sure that I have to handle changing of panelevel by myself. I thought that maybe this property wasn't handle by SAP SDK correctly.
    Regards
    Szymon

  • Problem with Folder created in Screen painter

    Hello,All
    I created six folder for UD screen with screen painter and i set pane level properties correctly. While running with screen painter we can see each and every item with respect to folder
    But the problem is while loading this user defined form in SAP B1 items related with folder is not coming. (Not at all coming any item under any folder) if will run same screen in screen painter items correctly.
    is der any coding is required for foder creation and manage
    By
    Firos.C

    Hi Firoz,
    You need to set a PaneLevel for each and every pane and that pane level is what you need to set as the From Pane and To Pane for the individual items within that corresponding pane.
    Say, you have a pane with PaneLevel = 3, then, for all the items within that pane, you need to have the from and to pane as 3.
    Hope this helps,
    Best Regards,
    Satish. B.

  • Design Folder in Screen Painter

    Hello,
    Where can I  find information on Design Folder in Screen Painter?
    Because the information on the help is very basic.
    Best Regards,
    Jose.

    Hello David,
    I have fallowed all the instructions you give me, but i keep having problems.
    The first think am doing is make an event from a menu, that loads the application, after these I need to assign the event to the form. I have replicated every step from the sample ComplexForm. I have added the events, the one from the menu and the one for the form in the same class. I don’t know if this is how I should do it, or I should follow another step?
    Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            If (pVal.MenuUID = "Mymenu") And (pVal.BeforeAction = False) Then
    ‘//Here call the form but no function
                CodigoForm()
            End If
    End Sub
    Regards,
    Jose

  • Custom property not displaying at folder creation or Details screen

    Hello everyone
    I have created a custom boolean property that I need to have displayed both at folder creation and in the Details screen of a folder after it's created.  The property is in the default namespace, and is in the Custom group.  I have created a properties file for the label and created the necessary meta data extension.  The folder validity pattern is " / " and the Resource Type listed is "normalct" so that it's active for folders only.
    Then I went to Property Groups and listed my new property in the Group Items field of the Custom group.  The Custom group is a part of "all_groups" so that group is displayed both when a new folder is created in KM and when the Details screen of a folder is displayed.
    <i>However,</i> my custom property isn't displaying under the Custom tab when I go to create a new KM folder, nor when I view the Details screen of an existing folder.  What configuration am I missing?  Do I have to develop a custom property renderer for each new property I need to create?  I was hoping I could achieve this result with configuration changes only, but I must be missing something.
    Any help would be greatly appreciated and rewarded. 
    Thanks in advance,
    Fallon

    Hi Fallon,
    actualy, if you want this property to be displayed only for folders and not for documents, you don't need to specify the resource type for folders. Setting "/" or "/**" for "Folder Validity Patterns" and "" (empty) for "Document Validity Patterns" should be enough.
    If you sill experience problems, you have to check all settings, for example with the settings suggested in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2654">weblog</a>. If you use the "default" Property Group in the property settings, you don't have to enter the <b>Property ID</b> in a special Property Structure Group that in turn is integrated in the all_groups Property Structure Group.
    Hope this helps,
    Robert

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Cannot load XML file in Screen Painter in SAPB1

    Hi All,
    i am creating an xml file of existing purchase order through the following code
    Public Sub getxml(ByVal FormUID As String)
            Dim f As SAPbouiCOM.Form
            f = sbo_application.Forms.Item(FormUID)
            Dim oXmlDoc As Xml.XmlDocument
            Dim sXmlString As String
            oXmlDoc = New Xml.XmlDocument
            '// get the form as an XML string
            sXmlString = f.GetAsXML
            oXmlDoc.LoadXml(sXmlString)
            Dim sPath As String
            sPath = IO.Directory.GetParent(Application.StartupPath).ToString
            oXmlDoc.Save((sPath & "\ChangedXml.xml"))
        End Sub
    i am calling this function getxml in pageload of this form as
    Private Sub B1_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles sbo_application.ItemEvent
            If pVal.FormType = "142" And pVal.BeforeAction = False Then
                Dim oItem As SAPbouiCOM.Item
                Dim oFolder As SAPbouiCOM.Folder
                Dim oform As SAPbouiCOM.Form
                Dim oStaticText As SAPbouiCOM.Button
                Dim oEditText As SAPbouiCOM.EditText
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
                        getxml(FormUID)
                End Select
            End If
    End Sub
    it will create the xml file ChangedXml.xml in the destination folder, then i will copy that one and paste it and change the extension to .srf.
    then i will open screen painter and try to acceess this one it will open the form but it will give an error as Error: Menu - Image Type Not Supported
    it will open the screen but it won't open the matrix, the space which consists of matrix in the original form will come as blank.
    Please any one help me, it's urjent.
    Thanks,
    Vaithy
    09886807576

    Hi Vaithy,
    Not all the items you have in B1 forms are supported by the UI API and/or the ScreenPainter.
    If you need to reproduce a B1 system form you will have to remove all items giving you an error in the ScreenPainter and then have a reduced form.
    Why do you need the xml of the Purchase Order form? Please take care if you are trying to reproduce the behavior of the Purchase Order form, there can be some Formatted Searches or other customizations in the B1 form if you are using other addons.
    Hope it helps
    Trinidad.

  • Matrix column position problem in screen painter.

    hi.
    i am facing one problem.
    ie.
    i am developing one screen.
    it is having 3 matrix
    each matrix is having some columns
    one matrix ok two matrix ok thrid  matrix ok.
    but
    under third matrix i put some columnes
    1, 2 ,3, 4,
    in screen painter design mode every thing is ok
    it is appearing like 1,2,3,4
    but at preview mode or through the code if i open
    it is  appearing like 1, 4,3,2
    in preview mode screen painter if i click on the form settings it is showing only..
    matrix one columns only  it is not showing either 2 or 3
    and if i open the form through the code..
    i am able to see the columns of matrix 1 n matrix 2 and matrix 3
    i am using some code.
    If (pVal.FormUID = "WIP2PROCESS" And pVal.ItemUID = "1000007") Then
                                oForm = SBO_Application.Forms.Item("WIP2PROCESS")
                                oForm.PaneLevel = 2
                                oForm.Settings.Enabled = False
                                oForm.Settings.MatrixUID = "59"
                            End If
    now through the source code i am able to see the each column under matrix.
    but if  i change the matrix position at form setting it is changing but
    if i click other folder and come back to previous  folder..
    again the column position is   1, 4,3,2
    previously i changed to  1,2,3,4
    how can i do it..
    screen painter can i change it..
    Any information plz update me..

    Hi Srinivas,
    Can you do one thing for me ? Open your form in screen painter, set the columns as you want to display. Now change the unique id for the matrix. Then try to open it through code or see in preview mode.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Screen Painter and Matrix

    In screen painter I am unable to attach the folder with the respective matrix. Please give the complete method to attach the above mentioned.

    Hi Manish,
    I am not too sure what you want to know, but if you want a matrix to be displayed only on a specific folder you should do the following. I am going to show you the code, but you can do parts of it in screenpainter as well. In screen painter you cannot display it like you would at runtime.
    On your matrix you would set the PaneFrom and PaneTo properties. To only set it visible on the first folder:
            Dim oItem As SAPbouiCOM.Item
            Dim oForm As SAPbouiCOM.Form
            oForm = oApplication.Forms.ActiveForm
            oItem = oForm.Items.Item("My_Matrix")
            oItem.FromPane = 1
            oItem.ToPane = 1
    To add the folder you'll have to remember to set the ValOn and ValOff properties:
            Dim oFolder As SAPbouiCOM.Folder
            oFolder = oForm.Items.Item("My_Folder").Specific
            oFolder.Caption = "MyFolder"
            oFolder.DataBind.SetBound(True, "", "UDS_1")
            oFolder.ValOff = 0
            oFolder.ValOn = 1
    To invoke the folder's click event you have to code it manually:
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApplication.ItemEvent
            If pVal.FormTypeEx = "My_Form" Then
                If pVal.BeforeAction = True Then
                    If pVal.ItemUID = "My_Folder" Then
                        If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
                            Dim oForm As SAPbouiCOM.Form
                            oForm = oApplication.Forms.ActiveForm
                            oForm.PaneLevel = 1
                        End If
                    End If
                End If
            End If
        End Sub
    Hope it helps,
    Adele

  • Screen Painter  / MatrixLayout ..

    Hi,
    I copied the BusinessPartner form which contains a folder with a matrix that uses layout 'mlt_VerticalStaticTitle' ..
    Now I want to add another matrix to a separate folder in the same screen but it wont let me set the layout to 'mlt_VerticalStaticTitle' !!   Anyone any ideas ? I tried copying the one which works but screen wont let me  ..
    Seems very strange to me  ..  Anyone any idea ?
    Also can someone tell me what the form keyword 'GridItemUID' means - I looked in the manual but can't find anything ..

    Hi
    I am using SDK sample Catching Events to have xml of the forms for example.
    You want to have Master with 2 Details (matrix).
    - Create an MASTER_DATA table TableA.
    - Create 2 MASTER_DATA_ROWS tables TableB, TableC.
    - Create UDO, for example with title MyUDO, with TableA with choosing between services "Create default form" and 2 child: TableB, TableC.
    Execute CatchingEvents project (with SaveXML(oForm) method on et_FORM_LOAD event) and open form of UDO.
    So you have an example of Master and 2 Details (matrix) in 2 Folders.
    For "mlt_VerticalStaticTitle" I can said only what this is a MatrixLayout.
    In Screen Painter I found what you have for MatrixLayout 3 options: None, Vertical, VerticalStaticTitle. 2° and 3°: they can be a profit when one wants to have the tributes, the bands of the dresses. Sorry my english.
    Try
    Best Regards
    Sierdna S.
    P.S. Example of CatchingEvents project
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, _
    ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean _
    ) Handles SBO_Application.ItemEvent
      If pVal.FormType != 0 Then '
        Dim EventEnum As SAPbouiCOM.BoEventTypes
        EventEnum = pVal.EventType
        If (EventEnum <> SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE) _
        And (EventEnum <> SAPbouiCOM.BoEventTypes.et_FORM_LOAD) _
        Then
          Dim oForm As SAPbouiCOM.Form
          oForm = SBO_Application.Forms.ActiveForm
          If oForm.Title.Equals("MyUDO") Then
            SaveAsXML(oForm)
          End If
        End If
      End If
    End Sub
    Private Sub SaveAsXML(ByRef oForm As SAPbouiCOM.Form)
      Dim oXmlDoc As Xml.XmlDocument
      Dim sXmlString As String
      oXmlDoc = New Xml.XmlDocument
      '// get the form as an XML string
      sXmlString = oForm.GetAsXML
      '// load the form's XML string to the
      '// XML document object
      oXmlDoc.LoadXml(sXmlString)
      Dim sPath As String
      sPath = IO.Directory.GetParent(Application.StartupPath).ToString
      '// save the XML Document
      oXmlDoc.Save((sPath & "" & oForm.Title.Replace(" ", "") & "_" & oForm.UniqueID & ".xml"))
    End Sub
    Edited by: Sierdna S on Jul 8, 2008 6:01 PM

  • Related to screen painter

    hi,
      if i design screen painter form then how to connect that form to business one 2005B patch 36
    regards
      sandip adhav

    In that case u need to write the code behind ur form and should go for creation of ard file and must take ur form thro addon installation process. these are xplained in SDK Help file & Tutorial.
    Regards,
    Dhana.

  • Development Steps for addon after design the screen in screen painter

    Dear All,
               I am new to SDK Development.Now am developing an screen for Sub contracting.Basically am not a B1 technical conultant but I have some knowledge in development. i was developed a screen in screen painter but i dont know how to intergrate and develop the coding in VS2005.
    Regards,
    Vijay

    Hi
    There are many samples in SDK folder in C driveProgram filesSAPSAp business one SDKSamples
    Have a look at them they will give you a good start..
    Thanks

  • How to install Screen painter

    Hi all
    i want do install Screen Painter and i don't know how appreciate the help

    Download the upgrade patches from the sap website.
    In the patch, there is folder named "packages". Inside you have the screen painter folder.
    Quentin

  • Error while opening a screen painter

    Hi all,
    I am trying to modify a screen in SE80. But when i am clicking on the screen painter it shows 'EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Message no. 37033. Please let me know how to resolve this issue. Thanks a lot for your help!
    Regards,
    Priti

    For the Future Problem Facers:
    I too faced the same problem and the below steps helped me.
    Re: SFLIGHT is NOT defined for the current logical database.
    You can check the completeness of the program installation by starting the program gneux.exe locally in the SAPGUI directory (for example, by double-clicking on the program name in the Explorer window).The Layout Editor is displayed with German texts and an empty drawing area for the pseudo screen EUSPDYND 0000.
    If the installation is not complete, an error dialog box provides information regarding the cause of the error, for example, sometimes the DLL eumfcdll.dll is missing after reinstalling the SAPGUI. For example, the eumfcdll.dll DLL was sometimes missing after the SAPGUI was reinstalled.

  • I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    You need to use the computer's install disks to repair the hard drive or install a new OS.
    (58033)

Maybe you are looking for

  • SSD Boot Drive for Mac Pro

    Apologies in advance, I'm really not great with this sort ofstuff. Basically, what I would like to do is add an SSD to my MacPro and use that as my boot drive.  Ihave a 1TB HDD which is currently doing everything but I'd like to use thispurely to sto

  • Calendar.MONTH not giving me what I expect?

    Hello All, Can anyone tell me whey when I do calendar.set(Calendar.MONTH, 10); i get November and when I do calendar.set(Calendar.MONTH, Calendar.OCTOBER); I get October? I'm expecting to get October. Calendar calendar = Calendar.getInstance(); Syste

  • Printer trouble

    I'm in a bit of a mess with my printer. It wasn't working - whenever I tried to print (in Word), the job would stop before anything had actually been printed. I noticed that, when I chose 'Print' from the 'File' menu, there was a small exclamation ma

  • Nano not connecting to istore

    I just bought my son a 4g (8gb) nano and have been trying to get it to register and up date the software. Will not connect to istore and gives message "itunes could not connect to the iTunes store. The network connection timed out." I have made sure

  • May I know how to uninstall Zenmate, please?

    May I know how to uninstall Zen Mate in Mac Book Pro, please?