UI: Event Handling of forms created with the Screen Painter

Hi,
I created a form with the Screen Painter and saved it as XML document. After that, I loaded this form with the following code:
<i>Dim oXMLdoc As MSXML2.DOMDocument
oXMLdoc = New MSXML2.DOMDocument
oXMLdoc.load("C:\form1.xml")
SBO_Application.LoadBatchActions(oXMLdoc.xml)</i>
Then the loaded form appears in the SBO application with all added items.
Now, I would like to know how I could handle an ITEM_PRESSED event for a button of this imported form.
It would be great if someone could help me with this problem and post some example code.
Regards,
Dennis

Dennis,
you have to create a function that will handle all the event receive from B1
<i>    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
        If (pVal.FormUid = "YourUIDForm") Then
            If ((pVal.itemUID = "YourItemUID") And _
                (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
                (pVal.Before_Action = False)) Then
                ' Here write the coe you need....
            End If
        End If
    End Sub</i>
Off course, you need your variable SBO_Appliation declared as follow :
Private WithEvents SBO_Application As SAPbouiCOM.Application

Similar Messages

  • Does a client need Acrobat 9 Pro, to use a form created with the program?

    Do you need to have Adobe Acrobat 9 Pro, in order to use and/or view forms and portfolios created with Adobe Acrobat 9 Pro?
    If so, is there a free version that I can direct clients to download, so that they will be able to use and or view documents I am creating with Acrobat 9 Pro?

    Will the user be able to save the form with the data he/she entered?
    That depends upon if the file is specially Reader enabled. For some forms Acrobat Standard or higher is needed to file and save form data.

  • Indesign issues. Impossible to fill a form created by the pen either with color either with an image. The image is there but is invisible. Same problem with the line (impossible to color it or to change the tickness. Is there anything to change in the pre

    I have recently installed Indesign CC (I had the CS 5.5). I have some issues in doing simple things such as fill in a forma created with the pen either with a color either with an image. The image is there but is invisible. same issue when I want to draw a line. Impossible to color the line  and when I increased the thickness, it was creating a sort of wrap around the shape. have you ever encountered this kind of issue ? Thanking the community for his help.

    You will probably get better help in InDesign
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Is it possible to open a form created with screen painter more than once?

    I have created a form with the screen painter. In the screen painter the form is assigned a FormUID. Probably because this is done, it is impossible to open the form more than once??
    Thanks,
    Kind regards

    Hi J.
    The answer is yes You just have to give your form a unique id.
    1) Give your form in screen painter a name like BTWO_DYNAMIC_UID (just plain text).
    2) Make sure your <i>FormType</i> and <i>appformnumber</i> have a unique number (i.e. 2000060001). You can do this in the xml source.
    3) By loading your document replace the BTWO_DYNAMIC_UID with an unique id. I have a counter that's a member of my class and increase that number to get a unique id (BTWO_F_1, BTWO_F_2 etc)
    I have added a code sample, SBOApplication is my SAP application object and mFormNumber is a member (integer) of my class.
    <i>Succes d'r mee, en als 't nie lukt hoor ik het wel... ;)</i>
    <b>Code (C#):</b>
    // New xml document
    XmlDocument oXmlDoc = new XmlDocument();
    private Form LoadUniqueForm(string AMyFile)
      // Define your path to
      sPath = @"Forms" + AMyFile;
      // Load the form
      oXmlDoc.Load(sPath);
      // Replace the string with an unique id
      mFormNumber++;
      string sXML = oXmlDoc.InnerXml.Replace("BTWO_DYNAMIC_UID", "BTWO_F_" + mFormNumber.ToString());
      // load the XML file in SAP
      SBOApplication.LoadBatchActions(ref sXML);
      // Return the form
      return SBOApplication.Forms.Item("BTWO_F_" + mFormNumber.ToString());

  • "Xml Form" Created with Form Builder  in a CO

    Is it possible to assign a "XML FORM" created with the tool Form Builder of Portal, and assign it to a CO?
    Regards
    David
    Message was edited by:
            David Valenzuela

    Is it possible to assign a "XML FORM" created with the tool Form Builder of Portal, and assign it to a CO?
    Regards
    David
    Message was edited by:
            David Valenzuela

  • What are file extension suppored by the screen painter

    hai
    i have small doubt at screenpainter.
    what are the file extensions supported by screen painter
       thanking
      nagababu

    It supports both files in .xml or .srf (at least I have opened both with the Screen Painter).  My guess it supports any extension ... as long as the contents in the file have the right xml code on them.

  • I have adobe xi pro, but i can´t edit a form create with adobe 8.0, the message is this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    I have adobe xi pro, but i can´t edit a form created with adobe 8.0. The message is: this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    If the form was created using LCD then it can only be edited there. This
    application used to be bundled with Acrobat Pro, but that's no longer the
    case. So if you want to edit this file then you need to purchase it, yes.
    On Sat, Apr 4, 2015 at 6:39 PM, monicad4417911 <[email protected]>

  • How to delete hyperlink (Remove signature) in a form created with InfoPath

    Hello. 
    We have Sharepoint 2013 Foundation in production. It work with forms created with InfoPath. In these forms, digital signatures are used to approve. The problem is that once you have signed the forms, the user can remove the signature. That's what we want to
    avoid.
    Which file should I edit to remove the hyperlink? I can not find how to do it. Do you know a better option? 
    Greetings.
    MCSA: Windows Server 2008

    Hi,
    According to your post, my understanding is that you want to delete hyperlink (Remove signature) in a form created with InfoPath.
    As far as I know, there is no OOTB way to achieve this. You need to use custom code to prevent removal of digital signatures.
    Please add the OnBeforeChange handler code to the "signatureN" group where the signature is stored, not to the section you are signing.
    In other words (my excample) browse to :
    Tools - Form Options - Digital Signatures - "Enable digital signature for specific data" - Modify/Add
    Note the "Store signatures in the following group" value. It will be a read only value, eg /my:myFields/my:signature3/my:signature4
    Here is a similar thread for your reference:
    http://www.infopathdev.com/forums/p/3661/12829.aspx#12829
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • HT2513 my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas?

    my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas on how to correct this?  This seems like a trivial error, but it's super annoying.

    I called Apple and they said that they know about this problem.  It's a problem with iCloud which their Engineers know about.  (there was a new iCloud release, hence...)  No ETA for a fix yet.  I asked that this be escalated so Engineering doesn't put it at the bottom of their fix list.  I talked to a Senior Advisor and mentioned to them to have QA check their regression tests as this has happened before to me (the problem just didn't take this long to resolve).  I like to use green too for important stuff, so I've resorted to creating a new calendar using the normal calendar green for events going forward.  They could have picked another color besides green to have this problem with and I wouldn't have been so upset.  ;-)

  • I have a online form created with my paid account that has just stopped working.

    I have a online form created with my paid account that has been working for months that just started displaying a message that starts "This form was easily created for FREE with FormsCentral. See how..." The inline frame that it shows up in has also changed to be very small. The form is set to open in FormsCentral and shows the message and inline frame size when I choose preview. What's up?

    Checked when I got back in to work today and everything is working as it should. All of our online forms were screwed up yesterday, but are working this morning. I know this won't help anyone in the future, but just wanted to follow-up.

  • I am unable to edit a form created with LiveCycle version 8.5 with LiveCycle Version ES1.

    I am trying to edit a form created with LiveCycle version 8.08.2073 (installed with Adobe Pro 8).  I am using LiveCycle version ES (installed with Adobe Pro 9).  I can open the fhe form, but the tools are greyed out.  It apears the file is locked for editing, but I cannot determine where/how to unlock it.

    You should try to start in safe mode which runs a file check. You hold the shift key down during a start up till there is a progress bar towards thr bottom of the screen. This start will take a longer time than normal. In safe mode try the functioins you are having problems with to see if there is an improvement. Some links below to read.
    http://support.apple.com/kb/ht1564
    http://support.apple.com/kb/ht1455

  • Editing a form created with trial version of XI

    I have some forms that I have created with the trial version of Adobe XI and now I need to edit them. I keep getting an error that says the file is restricted and asks me to save a copy that is not restricted. When I save the copy, it won't let me edit that copy either.... HELP!!!!

    Pay close attention to the saving process. When you save a copy, it makes a NEW COPY of the file, and leaves you with the old file open. You therefore have to CLOSE the file you have open, and OPEN THE COPY.
    In general, be sure to save PDF files BEFORE adding the special rights, because you sometimes can't go back at all.

  • Forms created with Adobe Professional 10 can't be printed

    Hi,
    For some reason I have the problem that I have several forms and I want my clients to fill those out. The forms were created in Adobe Professional 9, and later created with the Adobe Professional 10 or actually with Adobe LiveCycle Designer. The forms were created in Word and adapted in livecycle designer.
    On my computer I as well have Adobe Reader 7. The forms are then sent from the customer back to me, but I can not print them using Adobe Professional 10, But there is the possibility to open the forms with Adobe Reader 7 and print it which works just fine.
    Now, the customer has to print out some forms on their own to sign them and send them back to us. As far as I am informed the customer has Adobe Reader 8 or 9, depending on the the department they work in.
    About a solution I would be very grateful.
    Thanks in
    advance!

    The forms are then sent from the customer back to me, but I can not print them using Adobe Professional 10,
    What happens when you print the forms?

  • After a library has been created with the "Copy items to the iPhoto library" option unselected, can it later be made to create those copies?

    iPhoto 9.4.3
    iPhoto Library Manager 3.6.8
    MacBook Pro - OS X 10.7.5.
    I have a large number of iPhoto libraries, organized with iPhoto Library Manager, that I created with the "Copy items to the iPhoto library" option unselected because I wanted easier access to the individual files. I am now going to be migrating to a new computer and have run into some problems with iPhoto losing the path to the file, and as a result showing me the exclamation point of doom. What's more, the program doesn't seem very intelligent about rebuilding those lost connections, and I have to go back through and correct it manually almost one at a time. How do I get around this problem?
    If I rebuild my new computer from a Time Machine backup (I usually enjoy taking this opportunity to start from a clean slate, but...), will the paths all be preserved without me needing to abandon my organization system?
    Or is there some way to ask iPhoto or Library Manager to create and organize copies of all the photos in the library that are not currently present within the library?
    On a tangentially related note, what's the best way to save keywords (and ideally also faces) added in iPhoto to the photos' meta data?
    Much obliged.

    Not with iPhoto by itself.  If you have the lastest version of Aperture and iPhoto referenced libraries can be converted to managed with Aperture.
    You can convert to a managed library with  iPhoto Library Manager by rebuilding the library with iPLM.  This will create a new, managed library with all your photos in it and with all Events, albums, keywords, titles, descriptions and places intact. However, books, calendars, slideshows and cards will not be retained.  They will end up as albums containing the photos.
    OT

  • Issues with the SQL wrapper scripts created with the DB adapter

    Hi All,
    We have the wrapper sql scripts created with the DB adapter configurations which are being used to invoke the stored procedures.
    To give you a background on the wrapper sql scripts-The Adapter Configuration wizard generates a wrapper API when a PL/SQL API has arguments of data types, such as PL/SQL Boolean, PL/SQL Table, or PL/SQL Record.
    These two SQL files are saved in the same directory where the WSDL and XSD files are stored, and are available in the Project view.
    The issue we are facing now is that whenever the associated package or the procedure structure undergoes a change we see an error as given below:
    An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/Application1_ABC_ESB/DBADP_Update_Out.wsdl [ DBADP_Update_Out_ptt::DBADP_Update_Out(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DBADP_Update_Out' failed due to: Error while trying to prepare and execute an API. An error occurred while preparing and executing the APPS.XXIRIS_SOA_R_WRAPPER.XXIRIS_AR_CUST_K$ API. Cause: java.sql.SQLException: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body "APPS.XXIRIS_AR_CUST_K" has been invalidated ORA-04065: not executed, altered or dropped package body "APPS.XXIRIS_AR_CUST_K" ORA-06508: PL/SQL: could not find program unit being called: "APPS.XXIRIS_AR_CUST_K" ORA-06512: at "APPS.XXIRIS_SOA_R_WRAPPER", line 1 ORA-06512: at line 1 [Caused by: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body
    In such cases we need to either execute the wrapper scripts again or refresh the connection pool in case the wrapper sql scripts for that procedure are not available.
    In some cases we see that the first instance errors out.However the second request and the subsequent requests after that goes through successfully.
    Please do let me know if anyone has faced such issues before.
    Any inputs in this regard would be of great help.
    Thanks in advance!
    Deepthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I stumbled on a link in the oracle forum which says that the "create or replace package XXX" at the start of the PL/SQL procedure when run seems to intermittently cause the ORA-04068: existing state of packages has been discarded problem.
    As per the solution suggested an “alter package XXX compile" can be executed after the changes are made and then we would no longer get the error in BPEL/ESB and dont have to bounce the server too.
    __http://forums.oracle.com/forums/thread.jspa?threadID=185762_
    However the above solution does not seem to resolve the issue.
    Any help in this regard would be highly appreciated.
    Thanks,
    Deepthi

Maybe you are looking for

  • The remote server returned an error: (401) Unauthorized

    We are attempting to upload a file to SharePoint on Office 365 and get the following error: The remote server returned an error: (401) Unauthorized. We also tried using NetworkCredentials and that got the following error: The remote server returned a

  • Restoring two macs from one time machine backup

    A little while ago my mid 2010 MBP's HDD died on me. Whilst I was waiting to sort out my MBP, I restored from time machine to my mac mini so that I had a machine to work from. Then I fixed my MBP by installing new drives (SSD and HDD where the optica

  • RESOLVED: CWB: Where do we attach a Performance Rating Scale?

    Hi, I can't quite fiture out in which screen we attach a performance rating scale name to a CWB program o Plan. In other workds, how does CWB know which Performance Rating scale to use? Please clarify .. I've searched in the Implementation guide, vie

  • How to use Query in Crystal??

    Dear all, This must be the simplest question around however, I cannot understand how to use SQL queries under Crystal. I read the help file and it says you need to use universe to create queries. I don't have a universe in my report nor it is coming

  • Can't install software on disk for unkown reason?

    I'm trying to install QuickTime Broadcaster. When the installer gets to the "Select Destination" part, it shows my HD with an exclamation point in a red octagon, and I get the error message: You cannot install QuickTime Broadcaster 1.5.1 on this volu