Screenpainter form

Hi All,
I created a form using screen painter , How will i add this .srf file in the addon files. Is there any simple way to specify the path of that form  in the adddon..
Please help
thanks in advance
Denis

Hi Denis,
Herewith an example to load the screen painter xml file.
    Private Function LoadXMLForm(ByVal sFile As String) As Boolean
        Try
            Dim oXMLDoc As MSXML2.DOMDocument
            Dim oCreationParams As SAPbouiCOM.FormCreationParams
            Dim s As String
            Try
                s = Application.StartupPath & "" & sFile
                oXMLDoc = New MSXML2.DOMDocument
                oXMLDoc.load(s)
                oCreationParams = oApplication.CreateObject
                (SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                oCreationParams.XmlData = oXMLDoc.xml
                oApplication.Forms.AddEx(oCreationParams)
                Return True
            Catch e As Exception
                oApplication.MessageBox("Error: " & e.Message)
                Return False
            End Try
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oCreationParams)
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oXMLDoc)
        Catch ex As Exception
            oApplication.MessageBox("Error: " & ex.Message)
        End Try
        GC.Collect()
    End Function
You can call this function simply by giving a file name to your srf file: LoadXMLForm("MyFile.srf").  For this to work your .srf file has to be in the same folder as your exe.
Hope it helps,
Adele
<i>On second thought I am not sure if this actually answers your question and if your question is more related to an installer? Please give more detail if this does not solve your issue.
Message was edited by: Adele le Roux</i>

Similar Messages

  • Create master document form with multiple sub form

    Hi Dear;
    how can i create a master form with multiple sub form using screen painter?
    best regards;

    Hi Dany,
    Do you mean a form connected to a MasterData Object with multiple childs?
    If so:
    1. Create a new ScreenPainter form;
    2. Add a Folder item for each of the childs;
    3. Add a new matrix to each of the childs and change their PaneLevel to from 1 to N (N = number of childs you have);
    If your code you then need to catch item pressed event for the Folder Items and change the form's Pane Level accordingly.
    Regards,
    Vítor Vieira

  • Browse Buttons in B1

    I am working oncreating a customiztion for a client. Basically its a custom form created in screenpainter that users use to enter some data that gets stored in a user define table. One of the features I would like to add to this form is the ability for users to use the "video" buttons on the B1 toolbar to browse through records, like they would on a sales order or sales invoice. How can I do this?  Please advise

    Gopal,
    Unless you are using 2005 and there are some changes in that version that I don't know about, the only way I know to do this is by adding your own "video" buttons to the actual screenpainter form and implementing custom code to execute the proper functionality.
    There is a nice demo of this type of functionality on this web site called "Basic Operations".  It will explain the objects you need to use to do this and how to use them:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/businessone/code-samples/sap business one sdk di api samples.htm
    Hope this helps,
    Greg

  • User Forms are not displaying in SAP B1 2005

    Hi,
    I have created an application using SAP B1 2004. All user forms are displaying properly in SAP B1 2004. But when I am trying to run the same application in SAP B1 2005, It is unable to display some of the User Forms.
    Can any body help me for the same?
    Thanks.
    Archana.

    Hi Archana,
    Are you using some special items in your form?
    You say the form is not displayed, do you have a return error or exception when trying to open it in debug mode?
    In Debug mode please pay attention to the VS.NET configuration, you have in Debug Menu -> Exceptions to configure all types of exception to throw into the debugger. Sometimes the COM exception are not thrown and your code just jumps after the error to the end of your method...
    Have you tried to open the xml of your form with the ScreenPainter to see if everything is correct in there?
    Hope it helps
    Trinidad.

  • Frozen Form in B1 2007

    Hi guys,
    I have a tricky problem here. I just started to develop on SDK 2007. And now I'm stuck in my first problem.
    I made a Form in ScreenPainter. It contains a Grid Item.  Then I load the Form, like i did 2005. At first glance
    everthing looks fine, but the Form seems to be "frozen" or something. I can't select a row in the grid (I changed Selection Mode to Single Select). But the form handles the events.
    Another thing I noticed is, when I stop debugging mode, the Form works fine again, wich means the rows in grid are at least selectable.
    What could this be ???

    Yes I tried to add a new row, and it works, wich means it shows the new entry. But still the form looks frozen.
    I tried to change the FormType property, which probably was way to long. And it workd for a few minutes. Today I'll see if it's becouse of the FormType or something else.
    I found the couse of the problem :
    - It's the ItemEvent that makes the trouble. Thats the reason why it workd for a few minutes. When I changed the ItemEvent part the form is frozen again.
    Is there something new about the ItemEvent handling that I should now about ???
    Becouse on 2005 everything still works fine. So there must be something about SDK 2007.
    Edited by: Veldin Zulic on Jul 14, 2009 10:49 AM

  • ScreenPainter is not WYSWYG in my actual SAP layout.

    Hi Folks,
    I created a subScreen via menuPainter of course, but during the actual execution of the program, what I see in the actual ScreenPainter is not the same as my output upon execution of the program?
    Please take a look at my screen shot.
    http://img20.imageshack.us/img20/6792/screenpaintervsactualsa.jpg
    If you'll notice, in my screenPainter, the description of the defects of the materials end at "Tampering" while in my SAP output, it already end up with "Labeling insufficient.."
    What must be the problem here?
    I already increase the area of my subScreen to accomodate more space but the issue is still there.
    Technical Background:
    One main Screen -> calling two SubScreens: 1)Table Control 2)Details of the Data issue lies here
    Thanks.
    Regards,
    Jaime

    Hi,
    Here's the code for subroutine: F_ONOFF_INPUT
    form F_ONOFF_INPUT .
      DATA: W_ONOFF_VAL TYPE i.
      CASE OK_CODE.
        WHEN 'DIS_CH'.
          MOVE 0 TO W_ONOFF_VAL.
        WHEN 'CHANGE'.
          MOVE 1 TO W_ONOFF_VAL.
      ENDCASE.
      LOOP AT SCREEN.
        CASE SCREEN-NAME.
          WHEN 'SAVE'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'SUBMIT'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IDOK'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_VENDORLOT_RES'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_VENDORDESC_RES'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_MATERIALNUM_RES'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_MATERIALDES_RES'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_COMP_UP_RES'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_MATNROK_RES'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_UNLOAD_QTY'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'IO_COMMENT'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
        ENDCASE.
        CASE SCREEN-GROUP1.
          WHEN 'CMT'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'NOK'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'OK'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
        ENDCASE.
        CASE SCREEN-GROUP2.
          WHEN 'NOK'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
          WHEN 'OK'.
            SCREEN-INPUT = W_ONOFF_VAL.
            MODIFY SCREEN.
        ENDCASE.
      ENDLOOP.
    So far, and i'm quite sure that it's effect is to enable/disable the input in my I/O box fields, but it should not affect the WYSWYG of SE51 to SAP output.. T_T  thanks.

  • CellHeight being increased in ScreenPainter

    Dear Experts,
    I Have designed a form in screen painter, but cell height is being increased by 2 every time i run the program.
    sap version 8.81 PL 06
    Please check the attachment
    i did not modify the height in code.
    Please let me know the way out this.
    Thank you.
    Best Regards
    Kishore

    Hi Ravi,
    That's strange, have you tried uninstalling the ScreenPainter and reinstalling?
    Best regards,
    Pedro Magueija

  • Textbox in screenpainter

    in screenpainter, we have textbox when we open its properties we have options such as (visible,nonvisible,possible and notpossible) what is the difference.
    and how it can be used in our forms.

    Hi,
             The properties have the following meaning:-
             1) Visiable:- It is visiable.i.e you can see the text box on the screen
                               during output/input.
             2) Invisiable:- It is presnt on the screen but it is not viviable to the end user.
             3) Possible:- It is used to enter / modify values in text box by the end user.
             4) Not Possible :- It is not possible to enter any value/data in the text box.
                                       In this it is only for output purpose.
              Reward Points if helpful..... 
    Regards
    Jitendra

  • Form mode changes in update mode while clicking on folders

    On user defined form
    While navigate last record form mode is "Ok"
    when i click on further folders form mode going to change in update mode
    How to resolve this problm?

    Hello,
    I experienced this yesterday as I was creating new form with ScreenPainter.
    I solved it by directly editing the resulting srf file (xml syntax).
    The folders can easily be identified from their type (type="99") and I changed the AffectsFormMode attribute from 1 to 0 in both the "item" element and the included "specific".
    Regards,
    Eric

  • Understanding attribute tag in form XML

    I found the attribute Tag in the following XML(Service Calls Form):
              <item uid="50" type="99" left="93" tab_order="540" width="83" top="196" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="13" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                  <AutoManagedAttribute>
                    <Attribute id="2" description="editable" modeView="1" />
                  </AutoManagedAttribute>
                  <specific caption="Bemerkungen" AffectsFormMode="1" val_on="2" val_off="0">
                    <databind databound="1" table="" alias="SYS_71" />
                  </specific>
                </item>
    What's the meaning of it and it's attributes. For me it doesn't make sense in that context.

    Hi Philipp,
    Most of these attributes map to the properties set for instance in the ScreenPainter or through code.
    The node <b>item</b> defines a SAPbouiCOM.Item  -  (<b><item></item></b>)
    Attribute <b>uid</b> of node <b>item</b> is the <b><i>UniqueID</i></b> property of the item ( UniqueID is 50 )
    Attribute <b>type</b> of node <b>item</b> is the <b><i>Type</i></b> property of the item. (99 indicates a it_FOLDER)
    Attribute <b>left</b> of node <b>item</b> is the <b><i>Left</i></b> property of the item.
    As you can see the attributes will map to a property of similar name.
    Then getting to sub node <b>specific</b> we will get to the properties specific to the type of item.
    Since we are working with a <b>it_Folder</b> we can see the <b><i>Caption</i></b> property. This is set to <b>Bemerkungen</b> in English <b>Remarks</b>.
    So now we know we are working with item <b>50</b> of type <b>it_Folder</b> with a caption set to <b>Bemerkungen</b>.
    Then looking at the sub <b>specific</b> we can see the sub node <b>databind</b>.
    Hope this will help
    Message was edited by: Louis Viljoen

  • Do SCREENPAINTER QUESTION ABOUT?

    IT POSSIBLE TO ADD TO THE MENU AND SUBMENUS MAIN MENU SB1  SINCE SCREENPAINTER?
    SOMEONE HAS PRACTICAL EXAMPLES
    ANYONE SPEAK SPANISH ON THIS FORUM?

    Inostroza Felipe,
    Screen Painter is mainly geared to create new forms for Business One.  There is sample code that comes with the SDK that shows you how to add to the main menu etc. using code.  You should look at the sample code, the Screen Painter Documentation and the eLearning on the SDK and the Screen Painter as this should answer a vast majority of the questions that you have.
    Eddy

  • Error when starting Adobe Form

    I have an Adobe Form which works Ok in the development SAP Portal, but that, when I log in the production portal gives the following error:
    Error when reinitializing the form (I guess, it's Error al reinicializar el formulario, in Spanish)
    I think maybe there is something missing to transport, or some misconfiguration, but I haven't been able so far to find it...
    Can someone give me a hand?
    Thank you in advance,
    S.

    Hi,
    Can you tell me when does the error message comes? Does it comes when you are trying to open the Form or when you are trying to execute it.
    Please check if it is still working in the development box?
    Regards,
    Susanta

  • Data blocks in forms 6i, can not see the data

    i have built an application in forms with some data blocks. the blocks a connect to some tables in the db. i have built them connectd as "system". but when i run the applicatio as user x i can do select, insert, update, delete, but i can not se the records in the datablocks (they are empty), but i can do all transactios. why?

    First of all, developing from the System schema is not a good idea.
    Who owns the tables your form is connecting to? The table owner should create a public synonym for each table name, and also needs to grant user x access to the table.

  • SSO to Oracle Forms 6.0 and Oracle Reports 6.0

    Hi,
    Could somebody please explain how I should implement the SSO so that I can log on a forms application?
    Should I use external partner app. ??
    How can I parse the right parameters to the forms server ??
    thanks,
    Jerome

    Hi,
    Oracle Forms 6i does not support Advances Security for SQL*Net if this is what your question is. ASO is supported with Forms 9i and above
    Frank

  • Portal Forms are not getting displayed in the new oracle environment.

    Hi All,
    The Forms in our Portal applications are not getting displayed after we have done the upgradation of Database in Unix from 8i to 9i. The reports are working fine.The forms that were added as portlets are not getting displayed and other forms that are called thorough links returns error when it is run. The Newly created forms are also not running but returns error. The Portal Version is 3.0.9.8.3. Pls help.
    Regards,
    Tom

    Hi ,
    Based on the requirement , check whether the customer contact has been done carried out for the invoice  , then possibility it must have gone out of the worklist , chekc whether the Invoice posted in the AR has been transferred to FSCM collection .

Maybe you are looking for

  • IMac (Late 2006) fan speed is 4600 rpm and nothing will change it

    I just brought my iMac 24" 2.16GHz Late 2006 back from the Apple Store today and the ODD fan is running at 4600 rpm!!! The noise it generates is way too loud. It is comparable to the wind tunnel G4 I replaced. Any thoughts on how to lower the fan spe

  • Form path in call_form and compilation error and status bar.

    Dear all, what should be the path in the call_form? my forms (developed in form 6i) give error when i run it in forms 9i. i have already compiled. with the form 9i. the status bar is invisible when running in the browser. i am new to developer 9i. th

  • Apple tv loses home sharing when my computer goes into sleep mode

    Just recently, my Apple TV says that home sharing is off when my computer goes into sleep mode.  It never used to do that - any suggestions?

  • Yosemite Mail - Preview list (delete purple text)

    Hi guys, I have used updated from Mavericks to Yosemite. What I think is that the Mail app in Yosemite, and especially the reading pane where the conversation is shown, is not that nice. When you reply to an mail in Mavericks you see an conversation

  • Saving music with the video.

    I have a problem with the export audio to movie function.I doesn't work for me when i try to do it.The movie file doesn't contain any sound. Are there any special actions to consider when trying to put music to a audio file, or am i doing something w