CEV-Rules only fire once

Our Change Events Rules fire only once effectively. If we save one record per transaction everything works fine. The CEV-rules are fired, and executed. If, however, we enter 2 records (or more...) per transaction, the CEV-rule is fired twice, but thice for the same record.
I can see in the trace-files, it does pass the NEED-BR procedure, but when it fires the second time, the same record-data is used as from the first record, resulting in the fact, that one record was not processed.
We're running forms 6i(6.0.8.24.1) and Headstart patchlevel= PATCH6523

are you sure you're using a changeListener?
works OK in this
import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
class Testing
  public void buildGUI()
    final JTabbedPane tp = new JTabbedPane();
    for(int x = 0; x < 5; x++) tp.addTab(""+(char)(x+65),new JPanel());
    JFrame f = new JFrame();
    f.getContentPane().add(tp);
    f.setSize(300,200);
    f.setLocationRelativeTo(null);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setVisible(true);
    tp.addChangeListener(new ChangeListener(){
      public void stateChanged(ChangeEvent ce){
        JOptionPane.showMessageDialog(null,tp.getTitleAt(tp.getSelectedIndex()));
  public static void main(String[] args)
    SwingUtilities.invokeLater(new Runnable(){
      public void run(){
        new Testing().buildGUI();
}post a sample program so we can see what you're doing
(by compiling/running the sample program)

Similar Messages

  • Making the ChangeListener only fire once on a JTabbedPane

    Hi guys, I'm having a problem with the amount of times that a ChangeListener for a JTabbedPane is called. If the user clicks on a certain tab, a JOptionPane is displayed with a message. However, I can't figure out a easy work around to make it so the listener only executes the code within it only once - I don't want the JOptionPane to come up twice. I tried doing a not-so-great boolean method:
    private void setPass(){
         if (pass)
              pass = false;
         else
              pass = true;
    }and calling it from within the listener, but I'm having trouble with it. Anyone know how to make it so the lister only fires once, or at least only displays the dialog once? I tried searching the forums using keywords such as "JTabbedPane ChangeListener pass once twice... etc" but it didn't bring anything relevant up. Thanks!

    are you sure you're using a changeListener?
    works OK in this
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    class Testing
      public void buildGUI()
        final JTabbedPane tp = new JTabbedPane();
        for(int x = 0; x < 5; x++) tp.addTab(""+(char)(x+65),new JPanel());
        JFrame f = new JFrame();
        f.getContentPane().add(tp);
        f.setSize(300,200);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
        tp.addChangeListener(new ChangeListener(){
          public void stateChanged(ChangeEvent ce){
            JOptionPane.showMessageDialog(null,tp.getTitleAt(tp.getSelectedIndex()));
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }post a sample program so we can see what you're doing
    (by compiling/running the sample program)

  • Terminatio​nStateChan​ged Callback Only Fires Once

    Hi,
    I have a TestStand OI that has a callback VI registered for TerminationStateChanged event.  Essentially, I'd like to show an image anytime the user hits the terminate button to shutdown the sequence.  It seems that the first time I run the sequence, everything works fine.  I click terminate during a sequence, TS fires my callback VI -- I trap newTermState 2 (Terminating) and am able to display the image without a problem.  However, it seems that when the user runs the sequence again, the callback VI never fires on a termination.  If I click terminate this time, TS must have received the command because the sequence does in fact terminate... but the callback VI is never called.
    Am I missing something?   Does this callback only work once? 
    Thanks!

    Hi jplotzke,
    I just wanted to clarify from my earlier post that although using the Execution.GetTerminationMonitorStatus function will detect a termination state change in your sequence, you may simply be able to use the Execution.GetStates method instead as it does not require any initialization. Note however that we can use this function without any penalty in this case since the sequence runs inside of the TestStand engine and so there is no performance hit when calling this method. On the other hand, if you were to call this method from a UI, you will be crossing a client/server boundary, which in turn will result in some performance penalty. So if you wanted to make changes to the UI instead of adding extra steps in your sequence, I recommend using the ExecutionViewMgr methods to track the Termination State as it will have the smallest impact on performance.
    I hope this clarifies some questions.
    S_Hong
    National Instruments
    Applications Engineer

  • Lightswitch HTML Client - beforeApplyChanges only fires once

    Hi,
    I have a standard Add/Edit screen created by Visual Studio with the standard save button in the top right-hand corner. In my beforeApplyChanges function I have the following code:
    if (!screen.OrderAllocation.OfflineAdType) {
    screen.findContentItem("OfflineAdType").validationResults = [
    new msls.ValidationResult(
    screen.OrderAllocation.details.properties.OfflineAdTypes,
    "This is a required field")];
    return false;
    This fires correctly if someone tries to save the object without an OfflineAdType. However, if they then correct the error by editing it within the screen, and then click on the standard save button - a message box pops up saying there's validation errors
    on the page. BeforeApplyChanges isn't called.
    How do I clear these validation errors beforehand?

    You need to clear the validation results.  You can also add a change listener to update any time the value changes.  See the answer to this post. 
    https://social.msdn.microsoft.com/Forums/en-US/08af462d-a094-44b2-bf3c-a3cd5f7a40a9/hmtl-client-screen-validation?forum=lightswitch

  • IO_ERROR event only fires for first bad url

    This is my first Flash application, so please bear with me.
    In the below example, I have a number of files that I load
    using loaders.
    However, when I have more than one bad url (missing file,
    wrong domain, ...) the IO_ERROR event only fires once. For all
    subsequent bad urls, the system does nothing and just hangs (when
    loading consecutively).
    A workaround is to load all images silmultaneously, but I
    still want to know what the problem is.

    Thought I'd post the solution here.
    In the end, the problem was: loading a file from an
    non-existent domain triggered no errors.
    It's apparantly a problem with FF and OS/X
    http://tinyurl.com/5q87n3

  • CEV business rule only uses first set of parameters in multiple inserts

    We have a cev rule that logs data for emails when a record is inserted in a table.
    Where there are two records inserted from a script, even where a qms_transaction_mgt.open_transaction and close transaction are used around each insert, the CEV record parameters do not change.
    By this I mean we have two records:
    1 - id: 22
    2 - id: 23
    We pass the id to the CEV business rule and dbms_output the parameter value - it indicates that for both records the p_id = 22.
    The insert into the table indicates that the record ids were 22 and 23.
    This appears to have been reported several times but there is no solution.

    I would set it lower than 20 minutes as that is quite high before it sends the rules into the background, if the spawning at 10 minutes try setting it just lower than 10 as a test.
    It may also be worth looking into the apache timeout (if you are using the apache web server plugin) as that could also be playing a part.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Java script button only works once?

    I am a novice with JavaScript, but Edge Animate seems like it might be a tool that I can work with. I have created pages using symbols with simple in/out slide animations using  JavaScript.  They are triggered on the buttons with the following code:
    sym.stop(4000);
    var current = sym.getVariable("current");
    if (current != "") {
       sym.getSymbol(current).play("out");
    sym.getSymbol("testimPg").play("in");
    sym.setVariable("current", "testimPg");
    The stage action for compositionready is this;
    sym.setVariable("current", "baseAnim");
    every page works fine except my testimonial page (testimPg)
    The animations work fine for all the other buttons but on the testimonial page it only fire correctly once!?
    If you click on other pages and then go back to the testimonial button, it no longer functions properly —the symbol is no longer visible when the testimonial button is clicked!?
    Can anybody figure out why this is happening.
    here is a link to the page:
    http://whelanartdesign.com/web/WhelartDesign0714v4.html
    Any help would be grateful
    thanks

    Thanks for the reply kglad. I've deleted all the button layers in every scenes and created a button layer from frame 1 until the last frame, but I still got this output here that I don't really understand what it means.

  • Edit password rules only for BCC user

    Hi all,
    our customer has requested some changes on the password rules only for BCC users.
    So, i should change the follow component:
    /atg/userprofiling/passwordchecker/PasswordMinLengthRule
    /atg/userprofiling/passwordchecker/PasswordMixedCaseRule
    /atg/userprofiling/passwordchecker/PasswordMustIncludeNumberRule
    /atg/userprofiling/passwordchecker/PasswordMustIncludeSymbolRule
    /atg/userprofiling/passwordchecker/InternalPasswordMustNotIncludeLogin
    /atg/userprofiling/passwordchecker/InternalPasswordNotInPreviousNRule
    But the component password rules above, should be changed only for the BCC users. How can i do this?
    Edited by: user7618461 on 30-set-2011 3.45

    Hi Christoph,
    in your Identity Store, you can use LDAP Server as authentification method (Tab Workflow). You need an attribute which contains the DN of the users and fill out port and host of your directory. That means that the PW can remain in the AD. Just try it, haven't used this possibility yet. You could also use Kerberos via AD instead. These scenarios don't cover your requirement that some might be without an AD account (which is not that common).
    Otherwise it's getting difficult again to get all passwords at once from your AD. You have to decrypt the passwords without a key...  AD could store a lower encrypted password for NT4, which makes this a bit easier, but still "unesthetic". You get these hashes via SSL and not with the common initial load jobs.
    The PW-Hook gets the passwords before they are set. That's why you could store and ecrypt the new passwords in the Identity Store and wait for 1 or 2 months till everyone had to change their password (if you use this policy).
    Best regards,
    Nils
    Edited by: Nils Sibold on Jul 18, 2008 3:10 PM

  • IDVD is not starting - only bounces once

    I have reinstalled iLife 06 and all other programs work except that iDVD only bounces once when clicked. I need to burn a DVD from iMovie asap and it won't load. I do have enough HD memory when I reinstalled. Help Please.

    Search for "com.apple.iDVD.plist" -your iDVD preference file - and delete it.
    Repair disk permissions on your startup drive with Disk Utility, in your applications folder.
    Then try again.
    john b

  • I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    Instead of getting annoyed, read the User's Guide and try basic troubleshooting.

  • Spry Tab link only works once... why?

    Hi all,
    I have a spry tabbed area with 4 tabs on my page. Each tab contains data that is dragged from an MSAccess table. A couple of the tabs have repeat regions. This all works fine.  One of my tabs has a repeat region where I can click on a button image to change a record status from True to False (or visa versa). The click runs the associated vbscript which executes the SQL update statement no problem. However I noticed that when I changed the data on this tab and reloaded the page using a Response.redirect after the sql update was executed, it would default to the 1st tab and not the one I was viewing that contains the repeat region. A quick search led me to the SpryURLUtils.js file which solved that problem by allowing me to specify which tab to load. I appended the relevant code to give me this:
    Response.Redirect("myrecord.asp?" & Request.QueryString & "&tab=1#TabbedPanels1"
    As I mentioned, the tab contains a repeat region. If I click on a button to change the status of that record the page reloads fine and displays the correct tab. But this only happens once... each subsequent time I try to change another record my tab contents disappear. The tabs are still visible and if I click on the tab where I've changed the data the tab content is dispalayed, but obvioulsy this isn't right... it should reload and display the correct tab with each call of the code.If I navigate away from this page and then come back to it I can successfully chnage one record and the results are displayed. Change another record and the changes are made, but the tab contents are not displayed again. The interesting thing is that if I reload/refresh the page the problem occurs staright away on the first record change.
    So my question is 2-fold... Why is this happening and how do I solve the problem?
    Here is the vbscript that updates the record and  does the Response.redirect
    <%
    'Change Notification
    If (CStr(Request("ToggleNotify")) = "ToggleNotify") Then
    dim strSQL
    'check to see if notification is currently true or false
        If cstr(Request.Form("NotifyChanges")) = Cstr("True") Then
        'change notifiaction to false
            strSQL = "UPDATE tblUserAccess SET NotifyChanges=0 WHERE AccessID = " & Request.Form("hiddenAccessID")
        else
            strSQL = "UPDATE tblUserAccess SET NotifyChanges=-1 WHERE AccessID = " & Request.Form("hiddenAccessID")
        end if
        Set MM_editCmd = Server.CreateObject ("ADODB.Command")
        MM_editCmd.ActiveConnection = MM_VBUsers_STRING
        MM_editCmd.CommandText = strSQL
        MM_editCmd.Execute
        MM_editCmd.ActiveConnection.Close
        Response.Redirect("myrecord.asp?" & Request.QueryString & "&tab=1#TabbedPanels1" )
    End If
    %>
    Here is my Repeat region with the associated form
    <%
    While ((Repeat3__numRows <> 0) AND (NOT rsAccessRights.EOF))
    %>
    <form name="frmNotifications" method="post" action="">
      <tr class="PageText">
        <td width="200"><%=(rsAccessRights.Fields.Item("SectionTitle").Value)%>
            <input type="hidden" name="hiddenAccessID" id="hiddenField2" value="<%=(rsAccessRights.Fields.Item("AccessID").Value)%>">
        </td>
        <td width="200">
                    <%If (CStr((rsAccessRights.Fields.Item("NotifyChanges").Value)) = CStr("True")) Then %>
              <input type="image" src="../sitegraphics/accept.png" alt="Submit button">
            <%else%>
              <input type="image" src="../sitegraphics/cross.png" alt="Submit button">
            <%end if%>
        <input type="hidden" name="ToggleNotify" value="ToggleNotify">
        <input type="hidden" name="NotifyChanges" id="test" value="<%=cstr((rsAccessRights.Fields.Item("NotifyChanges").Value))%>">
       </td>
    </tr>
    </form>
      <%
      Repeat3__index=Repeat3__index+1
      Repeat3__numRows=Repeat3__numRows-1
      rsAccessRights.MoveNext()
    Wend
    %>
    And here is the bit at the bottom that specifies the default tab if nothing is passed in the URL
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab: params.tab ? params.tab : 0});
    //-->
    </script>
    Sorry for the long post!
    This is my first dabble with Spry stuff, so I'm a bit green. If anyone can explain to me why this is happening that would be most apopreciated. If anyone can tell me how to solve the problem I'll send them a big e-kiss!
    Not sure how impotant this is but it happens in both Firefox and IE8.
    Thanks in advance
    Dan

    Hi Ben, thanks for taking the time to read my query.
    The site in question is an intranet site, so I am unable to give you a link to the page. Would the entire page of code rather than just the odd bits help?
    Cheers
    Dan

  • Outlook 2010 rules only run manually

    Hello All,
    I have a user whose Outlook 2010 rules only run manually. He has some server rules and he has some that say client only next to them. All of the client side rules are listed under the server rules. I have deleted all of his rules and had him recreate them
    and i've ran outlook /cleanrules and they still do not work. I'm not sure what to try next. We are running Exchange 2010 Standard and Outlook 2010. Any ideas?
    Thanks,
    Alex

    I had this same problem, tried many things that said it would work and didn't. Here's how I fixed it:
    There are several good programs that backup Outlook. Backup FIRST.... I use Outback Plus 9 (http://ajsystems.com/outbackplus/obp.html) and there's also BackupOutlook (http://www.backupoutlook.com/)
    Backup Outlook using Outback 9 Plus then:
    1 - Go to the Control Panel
    2 - In the Search box - enter:  
    Mail
    3 - Run the Mail 
    - or -  Mail (32 bit) applet
    4 - Click: 
    Show Profiles
    5 - Select the profile (you likely have only one)
    6 - Click: 
    Remove    [this will remove the registry settings for this profile]
    7 - Close the Control Panel
    8 - Run Windows Explorer
    9 - Go to the: 
    [My Documents]\Outlook Files  folder
    10 - Delete the \Outlook Files folder (or delete all of the items in it)
    11 - Go to the folder  
    c:\users\--your user name--\appdata\local\Microsoft\outlook
    12 - Delete all of the files in this folder
    13 - Go to the folder:  
    c:\users\--your user name--\appdata\roaming\Microsoft\outlook
    14 - Delete all of the files in this folder
    This gets rid of the Outlook data and the profile setting.
    I would restore the Outlook data (using OutBack Plus 9 - and assuming you have at least one POP3 type account) as follows:
    1 - Run OBP9 and click Restore
    2 - Locate the backup file to restore from  
    -- Open it
    3 - When you get the message indicating that a full profile restore will not be done - acknowledge it.  
    OBP9 should then be planning to do a "Default" restore (i.e. it will restore the data to the default locations). 
    4 - Select the Outlook data files for the restore ... but do NOT restore any ".ost" type files (Outlook will rebuild these automatically).
    5 - Finish the restore -- this will restore the Outlook data files to the proper default locations (e.g. 
    [My Documents]\Outlook Files for normal ".PST" files)
    6 - Start Outlook [which will begin with a request to create a new Profile (Outlook) then email account]
    7 - Refer to the web page:  
    http://ajsystems.com/kb3/outlook2010emailaccounts.htm
    and begin at step "B" ... by electing to do a manual configuration of the account.
    8 - Link the account to the (appropriate) Personal Folder file [PST file] restored to [My Documents]\Outlook Files
    9 - Add any other POP3 type accounts using the same procedure .. linking them to the appropriate PST file. 
    Note - you can have multiple POP3 account linked to the same Personal Folder file (as was always the case prior to Outlook 2010.
    10 - Add any other accounts (e.g. IMAP based accounts) which will automatically create the appropriate file and re-synch with the server.
    11 - Re-run OBP9
    12 - Locate the backup file to restore from  
    -- Open it
    13 - Select Outlook Profile settings and ancillary settings (e.g. Signatures) ... but do NOT select any PST or OST files.
    14 - Finish the restore to restore these settings to the new profile (created by step 6).
    This was done with Outlook 2013 as well and on Windows 7 and Windows 8.1.  All worked!

  • How to float a landing page to capture email address, only shown once per visitor to the site, and not on return visits?

    I would like to float a landing page to capture email addresses, that is only shown once per visitor to the site, and not on return visits OR after they submit their email not to be asked again.
    thanks guys!

    Hi Scott,
    Thanks a lot for the advice.
    Actually I added user names to the apex_access_control table and assigned each user the desired privilege but did not notice that I should do the following setting.
    *Access Control Administration > [RUN] > Set Application Mode: Restricted access.*
    Thanks,
    Guy

  • The iphone 4 only rings once?

    the iphone 4 only rings once . before it was OK
    Can somebody thell me how to fix this?

    That is a carrier setting contact them for how to change.

  • CJB1/CJB2 will Create Settlement Rule only on Last level of WBS

    In Investment projects the client want to settle last level WBS to top level WBS and from top level WBS to AUC and capitalise it. Since we have so many WBS in structure hence we want to use CJB1/CJB2 for settlement rule creation. But CJB1 and CJB2 is createing WBS on all level of WBS. Can any body tell me, what configuration/settings i need to do so that CJB1/CJB2 will create Settlement Rule only on Last level of WBS.
    Edited by: Vipul Mehta on Aug 28, 2011 3:19 PM

    Hi Sreekant,
    I checked in SPRO; PS > Costs > Automatic & Periodic Allocations > Settlement > Sett Rule for WBS > BADI for CJB1 / CJB2, there is so many BADI is available. Please let me know BADI name, which is help me to create settlement rule create at WBS last level through CJB1 / CJB2.
    Regards
    Vipul Mehta

Maybe you are looking for

  • How to open files from web links in safari

    II can't figure out to get a file downloaded from a web link into numbers, pages, etc.

  • Searching external hard drive attached to Time Capsule

    I have a 1 TB Time Capsule which I use for backing up my 2011 MacBook Pro and for providing my WiFi. I also have a 1 TB external hard drive plugged into my Time Capsule which I can access via WiFi. I can go to Finder on my laptop and browse the folde

  • G710 headphone jack not working

    Hi, the headphone jack on my G710 does not seem to be working. I tried two different headphones, no luck.  I get a message "jack is now plugged in", the speakers turn off but no audio in the headphones. Latest driver (win 8.1 64) has been installed a

  • How do you change the phone number in imessages?

    my wife and I share an account and her phone number shows up on my new ipad and am wondering how I change the phone number to reflect my phone number?

  • Table maintentance Generator

    Hi I created ztable with table maintentance generator and transport to application server. and later i created entries for ztable via sm30 and also transported the request to application server but In my Application server i found no data in that zta