Et_ITEM_PRESSED event  firing two times

Hi ,
I have a added a button to one of the windows and use the
et_ITEM_PRESSED in the ItemEvent to do something. My problem is whenever I click the button the event fires two times. I thought it was my code but the sample code in the CatchingEvents project does the same.
Does anyone know any wayaround it?
appologise if this question has been asked before (I assumed so but could not find any matches for my search)
Regards,
Indika

Almost all the item event in SBO executes two times before and after SBO events handler works. If you dont catch one of the events SBO will execute two events in one time. To avoide that you should cacth the events before "OR" after the SBO Events Handler Works.
For Example:
<i><b>Before Action:</b></i>
If pVal.ItemUID = "1" And pVal.EventType = et_ITEM_PRESSED Then
If Len(oEditText.String) <> 0 Then
If IsNumeric(oEditText.String) Then
If Len(oEditText.String) <> 15 Then
If pVal.Before_Action = True Then
BubbleEvent = False
SBOApplication.SetStatusBarMessage "Federal ID Must be 15 Character", bmt_Short
oTmpForm.Items("41").Click  ....
<i><b>Action Success:</b></i>If pVal.Action_Success = True Then
Set oItem = oTmpForm.Items("8")
Set oEditText = oItem.Specific
sDocNum = CLng(oEditText.String)
Set oItem = oTmpForm.Items("29")
Set oEditText = oItem.Specific
sJumlah = oEditText.String
If sJumlah = "" Then
BubbleEvent = False
That's all. Hopefully helps.
Cheers,
Hamdi

Similar Messages

  • Event firing multiple times (et_Got_Focus)

    Hi,
    I just noticed while debugging my Add On code that the et_Got_Focus event which I have added to my event filters is triggered 64 times when I change a field value and then move to a different field.  This not only happens in the matrix when changing field values and tabbing through but also in the header fields.
    This has got to be a bug and it is not only slowing down the A/P Invoice form but it is potentially very dangerous to have an event firing 64 times when it should only be fired once. 
    To test this all one needs to do is add the et_Got_Focus event to the event filter with the A/P Invoice form, then add a debug statement to write out the itemvalue properties and you will see once you edit a value and tab you will get 64 statements that are the et_Got_Focus event, BeforeAction false for the same field or column when it should only occur once.
    I have a very digrunted client that is very frustrated due to the amount this slows down data entry in the A/P Invoice.  I cannot get rid of this event because there is a particular field I am monitoring for the got focus event so I can stop it under certain circumstances.
    If anyone else has experienced this or knows how to resolve this please let me know.  I guess if I don't find out why this is happening I will post a CSN to SAP.
    Thanks very much,
    David Wall
    Here is a sample of my debug output messages for one update of a single field and then tabbing out:
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False
    et_GOT_FOCUS -  - False

    Hi David,
    We at Self Informatique France have the same problem of getfocus firing many times at one of our customers in Algeria although wae are not using formated search.Any solution ?
    Best Rgds.
    Antoine Egeileh
    President
    Self Informatique
    [email protected]

  • JPane ancestorResized event fired multiple times

    Hi,
    I have a JPane which in turn contains some more controls. I'm handling "ancestorResized" event for the JPane. But, when I resize the form once, the "ancestorResized" event for the JPane is called 3 times. where as the "this_componentResized" event is called only once.
    I am doing a lot of control relocation and resizing in the "ancestorResized" event handler. Since it is fired 3 times, it is making my application slow.
    Can some body tell me how to come over this.
    Regards.

    Hi David,
    We at Self Informatique France have the same problem of getfocus firing many times at one of our customers in Algeria although wae are not using formated search.Any solution ?
    Best Rgds.
    Antoine Egeileh
    President
    Self Informatique
    [email protected]

  • Observer event fires two times

    Hi!
    I am wondering why an observer fires two times the same
    notification type. I have created a simple example and the message
    box appears two times:
    var dsAll = new Spry.Data.XMLDataSet("all.xml",
    "/root/item[@TitleSectionTitle='Germany']", { sortOnLoad:
    "@orderLevel", sortOrderOnLoad: "ascending" });
    var allRelevantSitesData_observer = new Object;
    allRelevantSitesData_observer.onPostLoad = function(dataSet,
    data){
    alert("uniqueCall " + dataSet.getDataWasLoaded());
    dsAll.addObserver(allRelevantSitesData_observer);
    function test(land){
    dsAll.setXPath("/root/item[@TitleSectionTitle='"+land+"']");
    dsAll.loadData();
    //on click two message boxes will appear
    <a href="javascript:test('Australia')">change filter:
    Australia</a>
    <a href="javascript:test('Austria')">change filter:
    Austria</a>
    I am looking forward to a short reply.
    Regards
    libelle2000

    Hi !
    On Srpy 1.4 version the 1:n relation is not supported, but we
    have two new solutions for this already posted on preview section.
    http://labs.adobe.com/technologies/spry/preview/samples/data_region/NestedXMLDataSample.ht ml
    Instead of creating one master xml file that points to other
    details xml files, you can have a single xml and create there the
    1:n relation there. In this way your request is solved using a
    single xml file.
    Please follow the link I gave you above and see the examples
    from there.
    Diana

  • Event Alert firing Two times when updated Sales order

    Hi ,
    I have created one event alert. It is working fine while creating a new sales order i am getting email once. But once any sales order has updated means I am getting multiple Emails for same. Please find below mentioned i am using in Alert . In the query term_id 1045 & 1046 are 'Prepayment' values.
    Any one help on this issue. This issue applicable only in PROD instance.
    select ooh.order_number sales_Order_Number,
    ooh.ORDERED_DATE,
    ooh.FLOW_STATUS_CODE,
    rt.NAME ,
    hca.ACCOUNT_NUMBER customer_account_number
    INTO &SALES_ORDER_NUMBER,
    &ORDERED_DATE,
    &FLOW_STATUS_CODE,
    &NAME
    &CUSTOMER_ACCOUNT_NUMBER
    from oe_order_headers_all ooh,
    ra_terms rt,
    hz_cust_accounts hca
    where 1=1
    and ooh.payment_term_id=rt.term_id
    and ooh.SOLD_TO_ORG_ID=hca.CUST_ACCOUNT_ID
    and ooh.flow_status_code = 'ENTERED'
    and rt.term_id in ('1045','1046')
    and ooh.rowid = :ROWID
    Thanks,
    Amarnath

    955221 wrote:
    Hi ,
    I have created one event alert. It is working fine while creating a new sales order i am getting email once. But once any sales order has updated means I am getting multiple Emails for same. Please find below mentioned i am using in Alert . In the query term_id 1045 & 1046 are 'Prepayment' values.Please see old threads for simialr discussion -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Event+AND+Alert+AND+Multiple&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Any one help on this issue. This issue applicable only in PROD instance.What is the difference between PROD and other instances?
    Thanks,
    Hussein

  • Alerts for events showing two time zones? Alerts happening at odd times.

    I just set a new event for later today using the calender app. I set two alerts, one for 30 mins before, and one for 15 minutes before. It is currently TWO hours until the appointment, but my phone just gave me the alert saying "*event name* in 30 minues (6:30, 5:30 ADT)"
    Why is my phone suddently telling me when my events are happening in ADT? (That means Atlantic Daylight Time... I think!) And why is it giving me the alert 2 hours before, rather than the set 30 mins?
    Message was edited by: Sarah CMac

    It just happened again! I wrote down exactly what it said.
    the current time is 5:00
    the message said:
    " Table Viewers
    Today at 5:30pm (6:30pm ADT)"
    The event is set to happen at 6:30.
    What the heck is going on??
    (Table Viewers: I am selling a table set. People are coming to view it)

  • Why Can't iCal Handle an Event in Two Time Zones?

    If I'm entering, say, a plane trip I'm taking that takes off in one time zone and lands in another, I can't enter this properly in iCal. Interestingly, if I'm entering this event in my iPhone's version of iCal, it works. That version of iCal has the option for separate time zones on the event's beginning and end. But not on the OSX version of iCal.
    It would be great if Apple would fix this. It's an annoying problem. Especially for those of us who travel a lot, it's important to enter items in LOCAL time so when we land our iCal is displaying our events correctly.
    This problem has at least one fascinating bug, which is that the trip I'm taking this week from China to the U.S. will not display on my iCal on my desktop at all, because the plane takes off on Friday at 5:00 p.m. (in Shanghai) and lands on Friday at 4:05 p.m. (in Chicago). The flight itself is, of course, 12 hours long, but iCal can't seem to figure out how to display a flight that lands before it takes off, if you're just tracking it in a single time zone.
    I know there are workarounds for this, but don't make me do the calculations... Since the iPhone version of iCal can handle this, the desktop version should, too.

    I don't know why iMovie is not allowing you to delete parts of clips but there is a workaround.  You can split your clips using Quicktime Player then drag and drop the resulting files into your event.
    For information this is the only way of deleting parts of clips in iMovie 10.
    I'm not sure about the other points
    Geoff.

  • JSF event firing multiple times?

    Just upgraded our JSF app from using JBoss4.0.0 to JBoss4.0.5.
    Tomcat 5 -> Tomcat5.5
    Java1.4.2 -> Java5.0
    Of course as a result of all these changes, some things that used to work in the app, either no longer work or work differently.
    We have been using the Sun RI implementation of JSF.
    Through googling, I found that Jboss installed MyFaces. That has been removed, and resolved some of our issues (mainly to do with nested tables)
    The current issue is that there are instances where clicking a button seems to execute the JSF action twice. In this case it is a "process payment", so the payment ends up getting recorded twice in the database.
    Potential causes I have looked at
    1 - javascript submission form.submit() as well as button click. Pretty sure that this is not happening.
    2 - Double clicking the submit() button? Some javascript has been written to prevent this, and it seems to be working.
    Can anybody suggest ideas as to why the JSF event would be triggered twice?
    Would a JSF event be triggered on a later request if it failed to complete successfully on a first try?

    I don't want to use immediate=true, because I need the values entered from the screen. Or are you suggesting it for another reason?
    Anyway, I'm still working on this, and have been running debug logs.
    Something interesting seems to be happening:
    I am pretty sure I only pushed the button once.
    Note however that two threads seem to be starting up, and two FacesContext objects seem to be present.
    I am deducing that from
    execute(com.sun.faces.context.FacesContextImpl@1ebfb58)
    execute(com.sun.faces.context.FacesContextImpl@1c283b5)
    There are two facesContextImpl with different addresses.
    Is it normal to have two FacesContext instance objects?
    2007-05-10 09:38:00,092 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] execute(com.sun.faces.context.FacesContextImpl@1ebfb58)
    2007-05-10 09:38:00,092 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1ebfb58)
    2007-05-10 09:38:00,092 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@1ebfb58)
    2007-05-10 09:38:00,092 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] execute(com.sun.faces.context.FacesContextImpl@1c283b5)
    2007-05-10 09:38:00,092 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@1c283b5)
    2007-05-10 09:38:00,092 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@1c283b5)
    2007-05-10 09:38:00,123 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@1ebfb58)
    2007-05-10 09:38:00,138 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(UPDATE_MODEL_VALUES 4,com.sun.faces.context.FacesContextImpl@1ebfb58)
    2007-05-10 09:38:00,154 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@1c283b5)
    2007-05-10 09:38:00,154 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@1ebfb58)
    2007-05-10 09:38:00,185 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(UPDATE_MODEL_VALUES 4,com.sun.faces.context.FacesContextImpl@1c283b5)
    2007-05-10 09:38:00,185 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@1c283b5)
    2007-05-10 09:38:00,201 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1c283b5)

  • Disable event firing while updating list item in custom timer job

    Hi
    I am adding new items in the list usign custom timer job.
    While adding the items in the list event receiver of another list (which is not related to list which is updating) is getiing fired due to which I am getting data wrongly updated and exceptions are comming.
    why the another lists event recevier is executing while updating my list?
    How can I disable event firing from timer job code?
    please suggest any solution

    Hello,
    It seems you have deployed your event receiver globally and it is applied to all the lists. I can suggest two ways:
    1. Either you update your event receiver feature.xml file and attached to specific list, wherever you want. You can follow below link to attach event with specific list via code:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverdefinition.aspx
    Or instead of code you can also pass ListUrl in feature.xml file:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    2. OR delete event receiver from the list: You can use below code in your timer job to delete event receiver
    http://sarangasl.blogspot.in/2009/11/remove-event-receiver-in-sharepoint.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • ListSelection Listener is executing two times

    Hi,
    I am using my own cell renderer for the JList and adding some buttons in the JList.I am adding ListSelectionListener to my JList.When i am selecting a item in the JList, the listselection event is fired two times.How should i rectify this.

    I've had the same problem, and I solved it by by asking my ListSelectionEvent's getValueIsAdjusting() method:
    rowTypeSM.addListSelectionListener(new AbstractListSelectionListener(){
    public void doValueChanged(ListSelectionEvent e){
    if(!e.getValueIsAdjusting()){
    // Stick your code here
    Hope this helps.

  • How to create an event in two different time zones?

    Hello,
    I am traveling a lot and I would like to be able to enter the flight details in iCal - whether on my iPhone, iCloud, i... whatever. The problem is that I cannot manage to enter these details without calculating the time difference. Example:
    I am flying on Saturday from Frankfurt to Japan. My flight takes off at 19:00h local German time and arrives in Tokyo at 13:00h local time (in Japan)
    I can either specify the time zone for Germany or for Tokyo, but is there a way to enter the event from 19:00h German time to 13:00h Tokyo time?
    Thank you very much for your time.
    Larry

    Hi Alex,
    this applies only when the event takes place in one time zone, but in my case I start the event on one time zone and ends in a different time zone. As it is known, the airlines show always the local times on the ticket. Which means that I start my travel at 19:00h German time (UTC +2) and end it at 13:00h Tokyo time (UTC +9). When I create the event I can choose From Date/Time... To Date/Time and below I have Time zone. Ideally I should have two time zones, one for the start and another for the end.
    Since this situation only applies to travelling (I can't think of another case right now), I believe that Apple didn't take this into consideration.
    Any other thoughts/ideas? Other than manually calculating the difference, of course.

  • One Click - two times the same event?

    Hello guys, i have a little problem...
    When I click on my button it seems to be that the event handler method is run two times. I cant understand why - its happening at all buttons. can anyone help me?
    GUI.java
    public void actionPerformed(ActionEvent event) {
    transmit();                  // transmit the textfields
    p.translate();               // translate it to xml
    html = p.newHTML();          // translate the xml to html
    status.setText("<html>"+html);  // set the translatet html in the preview panel
    taHtml.setText(html);  // set the translatet html in the text area     
    The problem is that it appears two times in both, the area and the label.
    Here is the other code, if it helps.
    public String newHTML() {
              String tmp = xMLToHTMLParser.translate(xml);
              return tmp;
    public String translate(String delivered) {
                   xml = delivered;
                   html += "<b>";
                   try {
                   html += xml.substring(xml.indexOf("<Headline>")+10, xml.indexOf("</Headline>"));
                   catch(Exception e) {}  // When nothing is in the Headline do nothing.
    html += "</p>\n \n";
                   return html;
              }Thnak you so much for you help!
    Toby

    Ok, here is the transmit():
        /** Transmits the content of the Textfields to the Parser */
        private void transmit() {
             String Logoname = phases[phaseChoices.getSelectedIndex()];
             p.setLogoURL("http://www.destinations2discover.com/images/icons/"+Logoname);  // All icons are already saved on the Server
             p.setHeadline(tfHeadline.getText());
             // It's very tricky to get the correct dates in :)
             // First Step: transfer the correct Items, for next Step see Parser.java
             if( !tfAdditional.getText().equalsIgnoreCase("" )) {
                  try {
                       p.setDateline(tfAdditional.getText());
                  catch(Exception e) {
                  p.setDateline ("T Y P E C A S T   E R R O R   IN   D A T E L I N E   A D D I T I O N A L");
             /*else*/ if(( (!tfStartDay.getText().equalsIgnoreCase("")) &&  (!tfStartMonth.getText().equalsIgnoreCase("")) &&  (!tfStartYear.getText().equalsIgnoreCase("" )) && (!tfEndDay.getText().equalsIgnoreCase("")) &&  (!tfEndMonth.getText().equalsIgnoreCase("")) &&  (!tfEndYear.getText().equalsIgnoreCase("")) )) {
                  try {
                  p.setDateline ( Integer.parseInt(tfStartDay.getText()), Integer.parseInt(tfStartMonth.getText()), Integer.parseInt(tfStartYear.getText()), Integer.parseInt(tfEndDay.getText()), Integer.parseInt(tfEndMonth.getText()), Integer.parseInt(tfEndYear.getText()) );
              catch(Exception e) {
                   p.setDateline ("T Y P E C A S T   E R R O R   IN   D A T E L I N E   S T A R T  /  E N D");
             else if(((!tfStartDay.getText().equalsIgnoreCase("")) &&  (!tfStartMonth.getText().equalsIgnoreCase("")) &&  (!tfStartYear.getText().equalsIgnoreCase("" )) ) ){
                  try {
                       p.setDateline ( Integer.parseInt(tfStartDay.getText()), Integer.parseInt(tfStartMonth.getText()), Integer.parseInt(tfStartYear.getText()) );
              catch(Exception e) {
                   p.setDateline ("T Y P E C A S T   E R R O R   IN   D A T E L I N E   S T A R T");
    //-->FIX::  Add Annual Event Checkbox      if(!btnAnnual.getText().equalsIgnoreCase("StartDay"))
             if(!tfImageURL.getText().equalsIgnoreCase("")) {
                  p.setImageURL(tfImageURL.getText());
             if(!tfText.getText().equalsIgnoreCase("")) {
                  //p.setText(tfText.getText());
                  p.setText(taTxt.getText());
             if(!tfHyperlink.getText().equalsIgnoreCase("")) {
                  p.setHyperlinkURL(tfHyperlink.getText());
        }And here is the whole actionPerformed - just to make sure i have the listener not twice.
    public void actionPerformed(ActionEvent event) {
            if ("comboBoxChanged".equals(event.getActionCommand())) {
                //Update the icon to display the new phase.
                phaseIconLabel.setIcon(images[phaseChoices.getSelectedIndex()]);
            // Set the article ID from the radio buttons
            else if (event.getSource() == rbFOM) {
                p.setID(1);
            else if (event.getSource() == rbInsider){
                 p.setID(2);
            else if (event.getSource() == rbMustSee){
                 p.setID(3);
            else if (event.getSource() == rbMustDo){
                 p.setID(4);
            else if (event.getSource() == rbMustExperience){
                 p.setID(5);
            else if (event.getSource() == rbActivity){
                 p.setID(6);
            else if (event.getSource() == sendContent) {
                 transmit();                  // transmit the textfields
                 p.translate();               // translate it to xml
                 html = p.newHTML();          // translate the xml to html
                 status.setText("<html>"+html);  // set the translatet html in the preview panel
                 taHtml.setText(html);  // set the translatet html in the text area     
                 // write in html in line.html and xml in line.xml file
                 try  {
                 FileOutputStream fos = new FileOutputStream( "line.html" );
                fos.write( html.getBytes() );
                fos.close();
                catch ( Exception e ) { System.out.println(e); }
                xml = p.getXML();
                try  {
                 FileOutputStream fos2 = new FileOutputStream( "line.xml" );
                fos2.write( xml.getBytes() );
                fos2.close();
                catch ( Exception e ) { System.out.println(e); }
                show = true;     // workaround
            else if (event.getSource() == addContent) {
                 transmit();                  // transmit the textfields
                 p.translate();               // translate it to xml
                 html = p.newHTML();          // translate the xml to html
                 status.setText("<html>"+html);  // set the translatet html in the preview panel
                 taHtml.setText(html);  // set the translatet html in the text area     
                 // write in html in line.html and xml in line.xml file
                 try  {
                 FileOutputStream fos = new FileOutputStream( "line.html" );
                fos.write( html.getBytes() );
                fos.close();
                catch ( Exception e ) { System.out.println(e); }
                xml = p.getXML();
                try  {
                 FileOutputStream fos2 = new FileOutputStream( "line.xml" );
                fos2.write( xml.getBytes() );
                fos2.close();
                catch ( Exception e ) { System.out.println(e); }
                show = true;
            else if (event.getSource() == showInIE) {
                 if(show) {   // workaround
                 try  {
                      File fd= new File("");
                    path = fd.getAbsolutePath();
                    path = "C:\\Program Files\\Internet Explorer\\iexplore.exe "  + path +  "\\line.html";
                    System.out.println(path);  // debug
                      //     Runtime.getRuntime().exec("C:\\Program Files\\Internet Explorer\\iexplore.exe \"C:\\Dokumente und Einstellungen\\intern\\Eigene Dateien\\code kopie\\text2XML\\text2Destination\\line.html\"");
                      Runtime.getRuntime().exec(path);
                 catch ( Exception e ) { System.out.println(e); }
                 show = false;   // workaround
                 showInIE.disable();
                 else if(show = false) {  // workaround
                      show = true;   // workaround
            }This problem is not only at the Button with "sendContent" it is also with "addContent' and "showInIE".
    Thank you two.

  • [svn:osmf:] 11159: Updating unit test with a check to all expected events firing properly.

    Revision: 11159
    Author:   [email protected]
    Date:     2009-10-26 12:12:10 -0700 (Mon, 26 Oct 2009)
    Log Message:
    Updating unit test with a check to all expected events firing properly.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkIntegrationTest/org/osmf/content/TestContentElementInt egration.as

    camickr wrote:
    Do you really expect us to read all that code to try and understand what you are attempting to do?
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html
    Absolutely not, I wouldn't post such a large amount of code expecting people to read it. I indicated that I believe my error only lies within one of two classes, and that I highlighted the two methods with comments.
    I was told to create an SSCCE as you have mentioned, but I believe all of this code is necessary for the program to run properly, so I only provided it all for compilation purposes.
    I'll check the examples posted, and if I need to I'll see if I can change my methods to use the swing timer class as the first reply mentions, but I did not think this would be necessary.
    Edited by: Drew___ on Nov 29, 2007 3:28 AM
    I have just figured out what my problem was, sorry it was quite a simple mistake. When checking for user input, I was immediately resetting the eventFlag or something afterwards. This meant the object would stop moving as it couldn't remember my last keypress. Thanks for your help, those tutorials are really good.

  • I am trying to use the trial creative cloud software on a PC windows 8.1 - I've downloaded and removed Photoshop CC 2014 two times - every time I open the file it says there is a problem and it shuts down and closes. I can open indesign and maybe other ap

    I am trying to use the trial creative cloud software on a PC windows 8.1 - I've downloaded and removed Photoshop CC 2014 two times - every time I open the file it says there is a problem and it shuts down and closes. I can open indesign and maybe other apps but photoshop no. Any ideas?

    I don't think I can access the crash report? Excuse the ignorant questions I'm about to make am a relative tech novice.
    Soo - as mentioned every time I open photoshop it crashes - it just says there's an error and the program will shut down and if there's a solution windows will notify me. Then nothing...
    I've tried to look in photoshop files for the detailed crash report & the system event viewer but cannot find a file with those names. I've also looked in the windows files for files with those names but cannot find them either - so I don't know where to look.
    Any guidance would be great.

  • I need to have two time zones on the same iCal appointment

    I work accross four time zones, two of which do not observe Daylight Saving Time (DST). This means that when I'm booking my flights on iCal, it would be usefull to have two time zones in the same iCal appointment (Outlook, for instance, allows this). What I currently do is to choose one of the time zones as the iCal appointment and then I "translate" the other time to the one I'm using on iCal.
    This is quite a challenge, though:
    if I'm taking a flight from Luanda (WAT = GMT+1, no DST) to London (GMT with DST) I would like to book it on iCal exactly like it shows on the ticket , 21:00 (WAT) to 06:00 (GMT).
    Using the "translated approach", from May to October, this means 21:00 (GMT) to 06:00 (GMT).
    Using the same approach, from November to April it means from 20:00 (GMT) to 06:00 (GMT).
    If I include Jo'burg (CAT = GMT+2, no DST) and Frankfurt (GMT+1 with DST), booking flights in your calendar becomes quite a challenge!
    Does anyone know if this feature is planned for any future versions of iCal?

    Hi,
    This is not possible in iCal. The nearest thing would be to create two events, one for take off and one for landing.
    Also, this is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like Apple to know about your suggestion I reccommend you send them feedback.
    Best wishes
    John M

Maybe you are looking for

  • After upgrading my ipad

    I have installed latest software updates to both my ipad & iphone 5s I now cannot connect to my home wifi anymore I have tried turning wifi off and rejoining network but i connect for approx 30 secs then loses connection it so frustrating!!!

  • COLUMN_RENAME IN ORACLE 8i

    IS THERE ANY WAY TO RENAME A COLUMN IN ORACLE 8i TABLE ?

  • Web service deployment issue

    On my WinXP laptop using Jdeveloper10g I can wrap a PL/SQL stored proc (10g database) as a web service - test it and deploy it to Oracle 10g AS also running on my laptop. However, if I do the same thing using the same version of JDeveloper, database

  • Mac mini does not bootup

    installed update (the last security update an itunes)and mini never booted again1 It gets stuck at the grey screen with the apple logo and the turning wheel. won't accept any disk for diaganosis and/or re-install. already troubleshooted according to

  • Error when installing Client

    Hi, I installed the 10g Client on my computer, and all went well until it got to the Network Configuration Assistant. When it got to this point, it failed, but let me go on because it was only optional. I set up a Service Name in Net Manager, and the