Isn't its possible to pass parameter with timer events

helo every one,
i have a array which i need to plot on the screen. the
plotting should have some delay in between so that we can see the
points being plotted. i tried using timer class but when the event
occurs my loop index has always reached last element. any help...
heres the code i used

i have around 1000 data so the flash chrashes as i run your
code.
any suggestions to handel such case

Similar Messages

  • Pass parameter with apostrophe

    Hi,
    How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
    Thanks in advance.
    Pramod

    If you are using bind variables, the string should be escaped automatically. If you are not using bind variables, you should be using bind variables.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • BODI: Is it possible to pass parameter/variable value out of a data flow?

    Hi All,
    Is it possible to pass parameter value out of a data flow?
    I've created a custom function in my query transform to get row count, this value would be used outside the data flow to perform another logic. It looks like I'm unable to modify the output schema at the function in the query transform to explicitly map it to a particular global/local variable.
    Any ideas?
    Thanks.

    Any ideas?

  • Passing parameter with apostrophe to sp

    Hi,
    How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
    Thanks in advance.
    Pramod

    just use double apostrophe
    SQL> var x char
    SQL> exec :x := '''';
    PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
    SQL> print x
    X
    '

  • Its possible to do facetime with a MA254LL (Macbook)?

    its possible to do facetime with a MA254LL (Macbook)? with OS X Tiger?

    No. The MacBook needs OS X Snow Leopard (10.6) or higher.

  • Pass parameter with blank space for report ver 6

    Hi,
    I face a problem that i willing to pass the acno where it's value with blank space, for example ' 9' as parameter into my report, and assign it as v_acno. Inside the report query i add a where condition, acno >= :v_acno. When i run the report and pass acno without ' , it do not show any record. But when i run the report and pass acno with ' then able to show the records.
    for example the value i key in
    with ' = ' 9'
    without ' = 9
    So how i can solve it by pass the acno without ' but the record still able to show?
    thks
    Message was edited by:
    user569740
    Message was edited by:
    user569740

    Hi Nick,
    It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
    dtexec Utility (SSIS Tool) document, we can see:
    All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
    An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
    Doubled quotation marks within quoted strings represent escaped single quotation marks.
    Options and arguments are not case-sensitive, except for passwords.
    So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
    Regards,
    Mike Yin
    TechNet Community Support

  • Passing parameter with space?

    How does java pass parameter value with spaces? e.g. url?param1=value with space .
    Is there any built in method like PHP's addslashes?
    Thanks.

    URLEncoder.encode("value with
    space","UTF-8")Also the core JSTL tag c:url will encode parameters with spaces, and of course there's the crude way of just using the + sign.

  • How to write c# to pass parameter with craxddrt.dll?

    any example provided to open crystal report by passing parameter
    after add reference craxddrt.dll etc.
    for 8.5 report

    [Samples|https://wiki.sdn.sap.com/wiki/display/BOBJ/ReportDesignerComponentSDKCOM+Samples].
    Also check your Developer Help file...
    Adn as Don said, unless you have obtained license for craxDDrt.dll, you are breaking your agreement. Use craxDrt.dll...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • LIssue with time events upload through RPTEUP10

    Dear experts,
    I am using the standard report RPTEUP10 for uploading time events in IT 2011. It works fine but in the log, it just indicates the number of records read, posted, placed in the error pool ...
    Can we by any chance know the PERNRs for which the upload failed? The FM HR_CC1_TIMEEVENT_INSERT directly takes table of time events as parameter.
    Will I have to put this FM inside a loop and pass a each entry for each PERNR separately, so that I could catch the failed PERNRs? or is there any standard solution to this?
    Please advice.
    Regards,
    Sumit Nene

    Hi,
    Actually we tried to upload the data manually through RPTEUP10 using txt file and also our client also want this for few locations.
    But we are unable to sort it out.
    I have gone through your document  and we adopted for automatic recording process as  my colleague confirmed it works excellent.
    But the problem is with manual uploading, the same is not showing in it 2011.
    any changes required in 2011 or 0050 before recording.
    it 0007, 1-1 is selected.
    please suggest some measure to achieve this.
    Regards,
    Sumana

  • Cannot Deploy JPD with Timer Event Subscription in WLI 9.2 MP1 cluster

    Has anyone had any luck deploying a JPD with a timer event subscription to a 9.2 MP1 WLI cluster? I am able to deploy Synchronous Client Request JPDs without any trouble but the ones that rely on internal WLI queues for invocation will not deploy in production. I am able to deploy the problematic JPDs to a non-clustered development environment without any issues but when I try to deploy the same artifact to a 9.2 MP1 cluster I see the following error:
    Throwable: java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
    Stack Trace:
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
         at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:667)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
         at com.bea.wli.management.adminhelper.AdminHelperBean.getDispFile(AdminHelperBean.java:348)
         at com.bea.wli.management.adminhelper.AdminHelperBean.getProcessMetadata(AdminHelperBean.java:94)
         at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl.getProcessMetadata(AdminHelperSSB_wivmoo_EOImpl.java:70)
         at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:548)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:438)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:434)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:57)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:965)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    I am suprised about this error, b/c we are running out of a vanilla WLI domain created with the Configuration Wizard and the error message has to do with an internal JMS server that we have left with the default configuration. Has anyone else had success with this?
    On a side note, I have to complain about the lack of 9.2 WLI documentation about deploying applications to production. The links on e-docs.bea.com actually redirect you to 8.5 documentation?!? I can't believe that this is the documentation we are left to use for 9.2 because there are so many changes between WLS 8 and 9.

    Hey buddies,
    I have a very similar error on WLI 9.2 MP2 on development mode with a cluster of managed servers on the same machine. I'm afraid that the automatic resource creation feature of dev mode is creating the error.
    The ...processes.UnlockService is jpd called by a JMS Broker thru a channel, and I considering it as the first suspect point.
    Any help is welcome.
    LOG CONTENT:
    <May 15, 2008 8:04:57 PM GMT-03:00> <Notice> <Stdout> <000000> <2008-05-15 20:04:57,575 [PERFO] localServer 10.10.10.10 xMDA  [iid=15899 prd=TC DATA act=INSTALL otp=I onb=00011552111 cid=12345189 mrt=]  END Designar_TCDATA OK>
    <May 15, 2008 8:04:57 PM GMT-03:00> <Error> <WLI> <000000> <Exception processing com.oi.integra.provisioning.lockManager.processes.UnlockService
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
         at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:671)
         Truncated. see log file for complete stacktrace
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureQueue(EJBGenerator.java:442)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureWorkshopQueues(EJBGenerator.java:412)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$3.run(EJBGenerator.java:194)
         Truncated. see log file for complete stacktrace
    java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.doesQueueExist(EJBGenerator.java:359)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$6.run(EJBGenerator.java:449)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         Truncated. see log file for complete stacktrace
    javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getProxy(MBeanHomeImpl.java:68)
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:88)
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getAdminMBean(MBeanHomeImpl.java:265)
         at com.bea.wli.knex.runtime.core.bean.WLSUtil.getWorkshopJMSServer(WLSUtil.java:713)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$5.run(EJBGenerator.java:372)
         Truncated. see log file for complete stacktrace
    >
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)

  • How to validate overtime (IT2005) with time event (IT2011)

    dear gurus,
    how can i validate overtime, so only overtime that occurs within time event (IT2011) which can be paid ?
    example:
    work schedule: 08.00 - 17.00
    IT2011: 08.00 (P10 - clock in),  19.00 (P20 - clock out)
    IT2005: 17.00 - 20.00
    when run PT60, i want the system to calculate overtime from 17.00 - 19.00 (not 17.00 - 20.00).
    how can i configure the system?
    thank & regards,

    Hi
    There are multiple issues here ...
    i.Why are you maintaining both IT2005 and IT2011 at the same time.OT calculation can be done through IT2011 solely...
    ii.Anyway if you still want to write a rule yu can try as per the spec given below:
    1. Generate a custom Time Type say 9999
    2. Make a rule like OUTTPERTYP if P20 then SCOND=T IF otherwise SCOND=F IF.
    3. If SCOND=T IF then write a rule saying that HRS=PEND
    4.HRS-SWTE
    5.ADDDB9999
    6.ELSE SCOND=F IF VARSTP2005 (Entry exists if Y then check 9999..if 9999 is not ZERO then Kill the time types of P2005)
    7.Otherwise Pass On...do nothing..

  • Java SystemTray with timer event

    I have just recently began working with the java system tray feature. In my application I have took the example from http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/ for an example as to how this works.
    My application also has a timer event that goes off every two seconds and checks for new messages. However if I open up the system tray popup menu, then the rest of the application hangs and waits for the pop up window to close. Is there any way to make the system tray so that the rest of the application does not freeze waiting for the menu to go away or a choice to be selected? I wold like the timer event to go off every 2 seconds, even if I have the system tray popup menu open.
    Thanks for any help or suggestions.

    Hmm. It's not that the Timer is stopped, it's that the TrayIcon displays the popup on the EDT and blocks actionPerformed -- which also has to run on the EDT -- till the popup is closed. Swing Timer by default coalesces multiple timer events when there's a backlog.
    As the showing of the popup is handled by the native peer, it doesn't look like there'll be any solution with a Swing Timer. Your problem should be solvable with java.util.Timer and TimerTask.
    Try this code, then uncomment the setCoalesce(false) and try it again. Note the difference.import java.awt.AWTException;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.MenuItem;
    import java.awt.PopupMenu;
    import java.awt.SystemTray;
    import java.awt.TrayIcon;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    public class TrayIconTest {
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new TrayIconTest().makeUI();
       public void makeUI() {
          PopupMenu popup = new PopupMenu();
          popup.add(new MenuItem("One"));
          popup.add(new MenuItem("Two"));
          TrayIcon trayIcon = new TrayIcon(getImage(), null, popup);
          try {
             SystemTray.getSystemTray().add(trayIcon);
          } catch (AWTException ex) {
             ex.printStackTrace();
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(200, 200);
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
          javax.swing.Timer swingTimer = new javax.swing.Timer(1000, new ActionListener() {
             int count = 0;
             @Override
             public void actionPerformed(ActionEvent e) {
                System.out.println("Swing Count: " + count++);
          //swingTimer.setCoalesce(false);
          swingTimer.start();
          java.util.TimerTask timerTask = new java.util.TimerTask() {
             int count = 0;
             @Override
             public void run() {
                System.out.println("Util Count: " + count++);
          java.util.Timer utilTimer = new java.util.Timer();
          utilTimer.scheduleAtFixedRate(timerTask, 1200, 1000);
       private Image getImage() {
          BufferedImage image = new BufferedImage(16, 16,
                BufferedImage.TYPE_INT_ARGB);
          Graphics2D g2 = image.createGraphics();
          g2.setColor(Color.RED);
          g2.fillOval(1, 1, 14, 14);
          g2.setColor(Color.YELLOW);
          g2.fillOval(5, 5, 6, 6);
          return image;
    }db

  • Pass parameter with fscommand exec

    Hi,
    I am writing a text file with batch file and this batch file which is called from fscommand.
    I need to pass a parameter from fscommand. Is is possible ?
    Following is flash and batch file code.
    Flash Source
    import flash.events.Event;
    bt.addEventListener(MouseEvent.CLICK,save);
    function save(e:Event){
        fscommand("EXEC","write.bat");
    Batch file
    ECHO This is my new text1 %1 > "temp.txt"
    Thanks ------------------- Amit

    As mentioned in one of your other posts you could use FileReference.save(...) this does require user interactive however and Flash Player 10.
    Alternatively you could create a userId and save the data in an online database (but obviously this isn't local)
    If you are using AIR you could create a local database
    Otherwise I don't do not know of a way to achieve what you are after

  • Pass Parameter with Form

    It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page?
    I have discovered that using a Dynamic Page, I can read parameters passed in by referencing them as bind variables in a PL/SQL block. For example, given a parameter of "bindMe" as in "http://portal_path/object.show?p_arg_names=bindMe&p_arg_values=hello", the following code will display it:
    <oracle>
    declare
    localVar varchar2(50) := :bindMe;
    begin
    htp.print('bindMe = ' || localVar);
    end;
    </oracle>
    However, I am having trouble sending a form parameter out, in Portal format. By default, it will create the "?bindMe=hello" form, which isn't easily recognizable by Portal. I tried to setup a bind variable for an out-going parameter, but either it doesn't work that way, or I didn't set it up correctly. Any help would be appreciated.
    Not interested in the JavaScript approach.

    I've tried using the wwpro_api_parameters.get_value function, but it doesn't work. I keep getting a "not found" error for the page when trying to pass a parameter.
    Here's my code for the page. I'm trying to simply read a parameter that's passed in. Cut and paste it into your Dynamic Page, and see if you can get it to work.
    <html>
    <head><title>test</title></head>
    <body>
    You passed in
    <oracle>
    begin
    htp.print(portal.wwpro_api_parameters.get_value('empno','a'));
    end;
    </oracle>
    </body></html>
    Now use the URL:
    http://....show?empno=10
    According to the API documentation (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk3gvf.htm), this should work, but it doesn't. I know I shouldn't be surprised that Oracle's documentation is inaccurate, but I'm having trouble finding a solution.
    Help!

  • How Pass parameter with Activex Viewer

    Developper enviroment:
    - Crystal Report XI
    - Visual Basic 6.3
    - Access 2007
    Installa library : CRAXDDRT, CrystalActiveXReportViewerLib11_5
    I need to pass some Value to the parameter  field of my reports.
    I use this code that working well to show the report and I need to add the right code to pass some parameter to the Report.
        Dim CRXApplication As CRAXDDRT.Application
        Dim CRXReport As CRAXDDRT.report    
    Private Sub Form_Load()
        Set CRXApplication = CreateObject("CrystalRuntime.Application")
        Set CRXReport = CRXApplication.OpenReport("C:\GR&A_Trend\R1_analisi.rpt", 0)   
        CrystalActiveXReportViewer4.ReportSource = CRXReport      
        CrystalActiveXReportViewer4.ViewReport   
        CrystalActiveXReportViewer4.EnableSearchControl = True   
        CrystalActiveXReportViewer4.Zoom (100)    
    End Sub
    Can You help me  to add the right code to pass some parameter to the Report.
    Thank's
    Regards
    Giovanni Roi

    Giovanni,
    I would love to help you on this however I only work under 2008 environment. Saying that, I am sure if you can re-arrange your coding you will get the desired result.
    Here is the code which I used in my VS2008 to set the parameters under VB.net
    'declaring all the parameter value fields
                Dim crParameterFieldDefinitions As ParameterFieldDefinitions
                Dim crParameterFieldDefinition As ParameterFieldDefinition
                Dim crParameterValues As New ParameterValues
                Dim crParameterDiscreteValue1 As New ParameterDiscreteValue
                Dim crParameterDiscreteValue2 As New ParameterDiscreteValue
                'the two text boxes which will carry the discrete parameter value
                crParameterDiscreteValue1.Value = TextBox1.Text
                crParameterDiscreteValue2.Value = TextBox2.Text
                crParameterFieldDefinitions = _
        cryRpt.DataDefinition.ParameterFields
                'Start code parameter value
                crParameterFieldDefinition = _
           crParameterFieldDefinitions.Item("startcode")
                crParameterValues = crParameterFieldDefinition.CurrentValues
                crParameterValues.Clear()
                crParameterValues.Add(crParameterDiscreteValue1)
                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
                'End code parameter value
                crParameterFieldDefinition = _
           crParameterFieldDefinitions.Item("endcode")
                crParameterValues = crParameterFieldDefinition.CurrentValues
                crParameterValues.Clear()
                crParameterValues.Add(crParameterDiscreteValue2)
                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
    Hope this helps
    Regards
    Jehanzeb

Maybe you are looking for