Code to navigate to certain state during long idle time.

My question is aimed at trying to keep my program from burning in an image on a monitor or just to navigate my program back to the begining when there is a long idle time.
Does anyone know of the code that can be used inside of FC? My program is running from the AIR installer so any code would need to be inserted while the FC project is open.
Any ideas??
Thanks.
v4long

Ok..
I am working with the sample code and I just have one question going back to your email:
"change the state names in the copied code snippet to match the state names that you are using."
You are refering to this code section:  ?
private function userIdleHandler(evt:Event):void
            trace("userIdleHandler");
            /*currentState = "Idle";*/
        private function userActiveHandler(evt:Event):void
            trace("userActiveHandler");
            /*currentState = "Main";*/
>>>>>>>
You know the number and type of states that I have but I am going to just make up some sample states in order to understand the placement of code.
I have a MAIN state then I have five other states ( A, B, C, D, E). Where would I place those state names in the code?
I am almost there. I can feel it!!!
Here is the whole code for reference:
<s:WindowedApplication xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:lib="assets.graphics.AGCO_Map_Master.*" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns:graphics="assets.graphics.*" xmlns:fclib="com.adobe.flashcatalyst.components.*" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="#FFFFFF" height="768" preloaderChromeColor="#FFFFFF" width="1024"
               creationComplete="init()">
    <fx:Style source="Main.css"/>
    <fx:Script><![CDATA[
        private function init():void
            var nativeApp:NativeApplication = NativeApplication.nativeApplication;
               //idle time set to 7 min.
            nativeApp.idleThreshold = 420;
            nativeApp.addEventListener(Event.USER_IDLE, userIdleHandler);
            nativeApp.addEventListener(Event.USER_PRESENT, userActiveHandler);
        private function userIdleHandler(evt:Event):void
            trace("userIdleHandler");
            /*currentState = "Idle";*/
        private function userActiveHandler(evt:Event):void
            trace("userActiveHandler");
            /*currentState = "Main";*/

Similar Messages

  • CLOSED: MAPVIEWER LONG PREPARATION TIME AFTER LONG IDLE TIME

    SR # 6896831.994
    Customer: NEDGRAPHICS BV
    Mapviewer Release: 9.0.4
    This issue was posted to the Field Service Forum. They responded with
    For Map, we do create the datasource and related maps, themes, styles to be used for Map. The exeuction part is done by Mapviewer and we don't have much control on the mapviewer code on performance tuning point of view.
    Please post this question in mapviewer forum
    Issue:
    After MapViewer being idle for some time (+/- 60 minutes) it takes a long time to generate the first map image --> 5 minutes.
    In the MapViewer logfile with log-level=finest, I see that there is a very long preparation time.
    After producing the first map image the next (same!) image is produced very fast.
    What could be the reason?
    What does MapViewer do during "preparation"?
    Customer statement:
    I am a very experienced Oracle specialist and a very experienced MapViewer developer.
    Could you please pass on my request to the MapViewer developers?
    I have to know what is going on during preparation time.
    Is there a possibility to get more detailed logging of the preparation time?
    SEE log file at:
    http://workbench.oraclecorp.com/cgi-bin/tools/its_reltar?tar=6896831.994
    FILE: mapviewer_37.log
    Additional customer info.
    UPDATE from customer
    ================
    The first time after long idle time it takes between 100 and 300 seconds.
    After that it takes less than 2 seconds.
    Can it be a dabase connection issue?
    Will it make a difference if I use a database connection via data-sources.xml
    instead of a direct data-source in mapviewerConfig.xml?
    This is what I mean :
    Method 1:
    <map_data_source name="NBG"
    jdbc_host="plutonium"
    jdbc_sid="ods"
    jdbc_port="1521"
    jdbc_user="nbgex"
    jdbc_password="ELvaJ7axzKQl0aKtjikuKT7JUFTjukU3"
    jdbc_mode="thin"
    number_of_mappers="3"
    />
    Method 2:
    <map_data_source name="NBG"
    container_ds="jdbc/NBG"
    number_of_mappers="3"
    />
    data-sources.xml:
    <data-source
    class="oracle.jdbc.pool.OracleDataSource"
    name="NBG"
    location="jdbc/OracleCache"
    ejb-location="jdbc/NBG"
    xa-location="jdbc/xa/OracleXADS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="nbgex"
    password="nbgex
    url="jdbc:oracle:thin:@plutonium:1521:ods"
    inactivity-timeout="30">
    <property name="connectionCacheName" value="ICC"/>
    <property name="connectionCachingEnabled" value="true"/>
    <property name="fastConnectionFailoverEnabled" value="true"/>
    </data-source>
    Thanks
    Message was edited by:
    user639281

    RESPONSE from customer
    ====================
    The database is restarted once a day in the morning. That could explain the problems in the morning. But there are also problems during day time after some hours of idle time when the database in not restarted.
    After testing we noticed that we don't have the problem if we use database connection through OC4J (data-sources.xml).
    If we use that method every database connection is cleaned up if it is not used for 15 seconds or so.
    If we use the other method (database connection in mapviewerconfig.xml) then the database connection is open for a long time and then we have the problem with the long preparation time.
    This problem only occurs in a DMZ environment. MapViewer is installed on a DMZ server and connects through the firewall with a intranet database.
    Is it possible that the firewall software prevents communication of an open database connection after a long period of idle time?
    Thanls.

  • WRT300N V1.1 - Firmw v1.51.2 - Problems to get wireless connection after long idle time

    Hello,
    I have a WRT300N, v1.1 with latest firmware available (v1.51.2).
    I've been experiencing a strange problem:
    1. After long idle time (router is on, no devices are using it wirelessly), no device can get a wireless connection;
    2. I have tried using different OSes (Windows XP SP2, Windows Vista, and Symbian OS);
    3. Wireline connection to a FE port works (if I plug a device using the cable, I can get an IP address and navigate to the internet).
    4. If power reset it (WRT300N), I can get wireless connections working again.
    Is this a known issue?
    Thanks, Gustavo

    Well as you are able to go online from your Hardwired Computer, then i think you need to make some changes on the Wireless Part of your Router. Follow this settings on your Router, i think this might solve the problem.
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    - Here select manual configuration...Wireless Network mode should be mixed...
    - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Wide-40MHz and change the Wide channel to 9 and Standard Channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on save settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WPA, For Encryption, select AES...For Passphrase input your desired WPA Key. For example , MySecretKey , This will serve as your network key whenever you connect to your wireless network. Do NOT give this key to anyone.
    NOTE : Passphrase should be more that 8 characters...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 50 >>Change the Fragmentation Threshold to 2304 Change the RTS Threshold to 2307 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect...

  • JDBC initialize failed due to long idling time

    Hi gurus
    Anyone having similar problem and would like to share their solution for the problem stated below.
    Normally the integration for IDOC-XI-JDBC scenarios is working fine, but when the R3 halt sending IDOC to XI, the JDBC connection to MS SQL 2000 server failed to process and initialise due to long idling time. Currently the temporary solution is to go to XI change the Integration Directory : Communication Channel for the JDBC - Activate - Clear Cache. Then go to R3, retrigger the IDOC again. And the above problem will be resolved. But after a while (long idling time again), this problem arise once again.
    2008-10-21 15:18:45     Success     Message successfully received by messaging system. Profile: XI URL: http://locahost:50600/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
    2008-10-21 15:18:45     Success     Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2008-10-21 15:18:45     Success     Message successfully put into the queue.
    2008-10-21 15:18:45     Success     The message was successfully retrieved from the receive queue.
    2008-10-21 15:18:45     Success     The message status set to DLNG.
    2008-10-21 15:18:45     Success     Delivering to channel: CC_IDOC_TO_DBMS_ESMS_588
    2008-10-21 15:18:45     Success     MP: Entering module processor
    2008-10-21 15:18:45     Success     MP: Processing local module localejbs/CallSapAdapter
    2008-10-21 15:18:45     Success     Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2008-10-21 15:18:45     Error     JDBC adapter receiver channel CC_IDOC_TO_DBMS_ESMS_588 not initialized. Unable to proceed due to null
    2008-10-21 15:18:46     Error     MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null
    2008-10-21 15:18:46     Error     Exception caught by adapter framework: JDBC Adapter configuration not initialized: null
    2008-10-21 15:18:46     Error     Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null.
    2008-10-21 15:18:46     Success     The message status set to WAIT.
    2008-10-21 15:18:46     Success     The asynchronous message was successfully scheduled to be delivered at Tue Oct 21 15:23:46 GMT+08:00 2008.
    2008-10-21 15:23:46     Success     The message status set to TBDL.
    2008-10-21 15:23:46     Success     Retrying to deliver message to the application. Retry: 1
    2008-10-21 15:23:46     Success     The message was successfully retrieved from the receive queue.
    2008-10-21 15:23:46     Success     The message status set to DLNG.
    2008-10-21 15:23:46     Success     Delivering to channel: CC_IDOC_TO_DBMS_ESMS_588
    2008-10-21 15:23:46     Success     MP: Entering module processor
    2008-10-21 15:23:46     Success     MP: Processing local module localejbs/CallSapAdapter
    2008-10-21 15:23:46     Success     Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2008-10-21 15:23:46     Error     JDBC adapter receiver channel CC_IDOC_TO_DBMS_ESMS_588 not initialized. Unable to proceed due to null
    2008-10-21 15:23:46     Error     MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null
    2008-10-21 15:23:46     Error     Exception caught by adapter framework: JDBC Adapter configuration not initialized: null
    2008-10-21 15:23:46     Error     Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: JDBC Adapter configuration not initialized: null.
    2008-10-21 15:23:46     Success     The message status set to WAIT.
    2008-10-21 15:23:46     Success     The asynchronous message was successfully scheduled to be delivered at Tue Oct 21 15:28:46 GMT+08:00 2008.
    2008-10-21 15:28:46     Success     The message status set to TBDL.
    Edited by: Malcolm Pang on Oct 23, 2008 11:08 AM

    In the JDBC adapter , select option Disconnect From Database after Each message processing.
    This will solve the process as your JDBC Database seems to be closing the connection after a particular idle time.
    Regards
    Bhavesh

  • Aperture 1.1 performance during longer work time

    Hi,
    I have Aperture 1.1 running on a G5 2.3GHz dual core with a 7800GT and 8GB RAM and on my MacBook Pro 2.16GHz with 2GB RAM.
    Aperture runs fine and the performance is good on both machines, after staring a work session.
    But after a few minutes and several pictures Aperture slows down and sometimes the spinning ball shows up.
    I don't know why this performance change during work happens.
    Any indea?
    I also noticed, that the 1.1 version has a higher CPU usage than the versions before, but I don't know if it still uses the GPU as much as before.
    JO

    Same here, Aperture 1.1 does seem to be more of a CPU hog now than it was before -- incl. a nasty new behavior where it cripples other programs from running or rendering to screen while it is running and "active", even when it is in the background. I also see what others have reported where after 15-30 minutes the Aperture (1.1) perf gets progressively more dismal until the program becomes unusably slow, and/or freezes at the SBBOD.
    I'm not that convinced memory is the root cause of the perf. problems, as it doesn't appear to be notably worse than 1.0.1 in its usage, nor does its usage radically change during the perf. problems versus prior to them.
    Given both behaviors, I wonder if Aperture is internally competing against its own threads (as well as those of others, though others appear to have lower-priority access) for some critical system lock that each thread is holding too long, or something along that line of pathology. Just speculating, but it seem a closer fit with what's happening inside and outside Aperture while running (impacting other programs' perf as well), versus just rampant memory leakage.
    In any event, after about 15-30 mins, Aperture's perf frequently degrades to where it stops being usable (along with the rest of the system while it is running). Other programs running simultaneously with Aperture will start hitting serious perf issues well before Aperture freezes (indeed often before Aperture shows any signs of problems). 1.1 solved many of the big RAW problems, but seems to have introduced some nastily fatal flaws of its own.
    Power Macintosh G5 (dual 1.8G)   Mac OS X (10.4.6)   3GB Ram, ATI 9800Pro

  • Java.lang.InternalError: jzentry == 0 after long idle time

    Hi,
    Our J2Se 1.4.1 Client/Server application works fine.
    However, after a long period of inactivity on the Windows 2000 client side (one hour or two, like during lunch), the icons in the toolbars have vanished and be replaced by black.
    Some other times, I get an internal error:
    java.lang.InternalError: jzentry == 0,
    jzfile = 9641264,
    total = 2427,
    name = L:\xxx\yyy\ourapplication.jar,
    i = 1,
    message = couldn't read LOC header
    It seems as if the memory content was swapped out and the classes loaded in the heap were lost due to some timeout.
    Can someone explain the phenomenon and propose a solution to this annoying behaviour?
    Jean-Pierre

    I have a similar (if not iqual) problem. The diferense is that I'm using XP and not 2000 edition.
    the error "begin" when I do my first Ctrl+Spacebar.... I think that eclipse begin to load the super classes, but stops because of some reason, that I dont know..
    what is LOC header? is that an JVM problem? I think so because of the error message witch apears after that long time waitng:
    "Virtual machine error jas occurred
    You are recommended to exit the workbench
    Subsequent errors may happen and may terminate the workbench without warring.
    here is my .log file:
    !SESSION Abr 30, 2004 14:16:25.932 ---------------------------------------------
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pt_BR
    Command-line arguments: -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.core.resources 2 1 Abr 30, 2004 14:16:25.932
    !MESSAGE Skipping builder for project Model. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    !ENTRY org.eclipse.ui 4 4 Abr 30, 2004 14:35:10.329
    !MESSAGE Unhandled event loop exception
    !ENTRY org.eclipse.ui 4 0 Abr 30, 2004 14:35:10.339
    !MESSAGE jzentry == 0,
    jzfile = 50349248,
    total = 1049,
    name = \\xxx\yyy\zzz\Model\lib\fop.jar,
    i = 54,
    message = couldn't read LOC header
    !STACK 0
    java.lang.InternalError: jzentry == 0,
    jzfile = 50349248,
    total = 1049,
    name = \\xxx\yyy\zzz\Model\lib\fop.jar,
    i = 54,
    message = couldn't read LOC header
         at java.util.zip.ZipFile$2.nextElement(Unknown Source)
         at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:84)
         at org.eclipse.jdt.internal.core.PackageFragmentRoot.buildStructure(PackageFragmentRoot.java:173)
         at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:200)
         at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:488)
         at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:280)
    ............

  • Hard reboot after a long idle time

    Hi, sorry for my french.
    I've got a MPB retina, and when i open it up after say, 12h of being..closed, i can't go back to the desktop, and i have to reboot the computer.
    I believe it wasn't happening before 10.8.2
    Also, even if i leave the lid open, i'll loose my wifi connection.. it's already stupid enough to loose it when you close the lid, but now it's beyond my expectations.
    Anyone got the same symptoms ?
    Oh, final word, safari does suck *** now, i have to restart it (apple+q) every 20 minutes cause it won't load all the pages and have problems apparently with javascript, but i can't be sure.
    I've bought an apple cause it's easy to use.. makes me feel like i'm back home on windows.
    So..maybe you guys can help me.

    Hi, sorry for my french.
    I've got a MPB retina, and when i open it up after say, 12h of being..closed, i can't go back to the desktop, and i have to reboot the computer.
    I believe it wasn't happening before 10.8.2
    Also, even if i leave the lid open, i'll loose my wifi connection.. it's already stupid enough to loose it when you close the lid, but now it's beyond my expectations.
    Anyone got the same symptoms ?
    Oh, final word, safari does suck *** now, i have to restart it (apple+q) every 20 minutes cause it won't load all the pages and have problems apparently with javascript, but i can't be sure.
    I've bought an apple cause it's easy to use.. makes me feel like i'm back home on windows.
    So..maybe you guys can help me.

  • Very long Import Times

    I have an MP4 movie file about 172MB in size. I wanted to pull it into iMove 08 for editing but when I select the file and begin the import, states it will take about 280 minutes. I tried a smaller version about 80MB an only took 20 minutes to import? So 172MB, maybe 50 minutes right?
    Is the stated time by iMovie correct ? I have seen other posts where users have also indicated an import time of 280 minutes. Does iMove state this long import time and then adjust it to a more accurate calculation once it has read part of the file? Is the 240 minutes a real import time?
    Mike

    Is the stated time by iMovie correct ? I have seen other posts where users have also indicated an import time of 280 minutes. Does iMove state this long import time and then adjust it to a more accurate calculation once it has read part of the file? Is the 240 minutes a real import time?
    Believe much of the time required for import may be associated with the "thumbnail generation" process for simple file imports. The length of time required to generate thumbnails will depend on a number of factors to include, CPU power of your platform, the number of processing currently being performed, the display size of your importing file, the frame rate, and the duration of the clip. DO NOT RELY ON THE FILE SIZE IN MAKING YOUR ESTIMATES! iMovie '08 appears to generate 1 thumbnail for each frame being imported so the total number of thumbnails is equal to the frame rate time the file duration. While the thumbnails created are all the same size, the amount of data be "condensed" into the thumbnail depends on the size of the source frame and its graphic complexity. As to the the ETFC (estimated time for completion) of the generation process, the initial estimates are just that -- estimates. They will change as the application better refines its progress and can increase or decrease depending on what is going on at any given time. E.g., if you are ripping a DVD in one application, converting a file in another, answering questions in this forum, and generating your thumbnails simultaneously, each process will obviously run more slowly that if just one process were being performed independently.
    ADDED: As Winston points out, "capture/imports" can add even more time to import process and will depend on the files being imported. SD DV files will take less time than HDV/AVCHD files.
    Message was edited by: Jon Walker

  • Safari quits automatically after certain amount of idle time.

    I am having a problem with my Safari quiting after a certain amount of system idle time. It could be as little as 5 minutes. I honestly don't know as I really haven't tried to figure out the exact time. Though I've been away as little as 15 minutes to come back and find that Safari as quit.
    I do close the last window of Safari, but I've been doing that for years. I've only noticed that it's quitting by the fact that the little "light" at the bottom of the icon is missing. And that it bounces 1 or 2 times when I click on it. As well as the fact that I am not getting notifications, like eBay.
    I have to admit that I was playing around with an Apple Script to have it quit Safari automatically after some system idle time. However, I can no longer find that Apple Script or the app. Heck, I can't even remember the name. However, I couldn't get the script correct as it never worked. I was doing this because my mother would leave a lot of windows/tabs open on her Mac and would use 50% plus of the CPU at times, even at "idle". I was doing this in Mt Lion, but once Mavericks came out. Her CPU usage has dropped down to less than 5%
    So my questions are... How can I find this Apple Script that I created nearly a year ago? Why all of sudden does it start to work, which is with in the last several days to a week? Could it be something else that's making it quit?
    The only thing that was a "huge" change was the addition of Garmin Express app to update my mother's GPS. (Wish that I did it on her Mac) However, this was installed last night.
    Oh, there was another thing. I've tried to use this Mac as a target boot disc to a pre-2008 MBP 17', non-unibody. And I also tried to use that same MBP as a target disc on this Mac. Used a firewire 800. This was done about a week ago.
    Thank you,
    KOT

    More important information: This only happens under an account that has the Parental Controls enabled. The main Admin account does not have this problem of Safari quitting out.

  • Long execution times for TestStand conditional statements

    I have two test stations – one here, one at the factory in China that has been operating for about a year. The test program uses TestStand 3.1 and calls primarily dll's developed using CVI. Up until a couple months ago, both test stations performed in a similar manner, then the computer at the factory died and was replaced with a new, faster computer. Now the same test sequence at the factory take three times as long to execute (30 min at the facotry, 10min here).
    I have recoded the execution time at various point during the execution, and have found that the extra times seems to be occurring during the evaluation of conditional statements in TestStand (i.e. for loops, if statements, case statements). For example, one particular ‘for’ evaluation takes 30 ms on the test station here, but takes 400 ms at the test station at the factory (note: this is just the evaluation of the for condition, not the execution of the steps contained within the for loop).
    The actual dll calls seem to be slightly faster with the new computer.
    Also the ‘Module Times’ reported don’t seem to match the actual time for the module for the computer at the factory. For example, for the following piece of TestStand code:
    Label1
    Subsequence Call
    Label2
    I record the execution time to the report text in both Label1 and Label2. Subtracting one from the other gives me about 18 seconds. However the ‘Module Time’ recorded for ‘Subsequence Call’ is only 3.43 seconds.
    Any body have any ideas why the long execution time with the new computer? I always setup the computers in exactly the same way, but maybe there is a TestStand setting somewhere that I have missed? Keep in mind, both test stations are running exactly the same revision of code.

    Got some more results from the factory this morning:
    1) Task Manager shows that the TestExec.exe is the only thing using CPU to any significant degree. Also CPU Usage History show that the CPU Usage never reaches 100%.
    2) I sent a new test program that will log test execution time in more places. Longer execution times are seen in nearly every area of the program, but one area where this is very dramatic is the time taken to return from one particular subsequence call. In this subsequence I log the time just before the <End Group> at then end of Main. There is nothing in Cleanup. I then log the time immediately after returning from this sequence. On the test system I have here this takes approximately 160 ms. On the test system at the factory this takes approximately 14.5 seconds! The program seems to be hanging here for some reason. Every time this function is called the same thing happens and for the same amount of time (and this function is called about 40 times in the test program, so this is kill me).

  • SELECT statement takes long time

    Hi All,
    In the following code, if the T_QMIH-EQUNR contains blank or space values ,SELECT statement takes longer time to acess the data from OBJK table. If it T_QMIH-EQUNR contains values other than blank, performance is good and it fetches data very fast.
    Already we have indexes for EQUNR in OBJK table.
    Only for blank entries , it takes much time.Can anybody tell why it behaves for balnk entries?
    if not T_QMIH[] IS INITIAL.
            SORT T_QMIH BY EQUNR.
            REFRESH T_OBJK.
            SELECT EQUNR OBKNR
              FROM OBJK INTO TABLE T_OBJK
              FOR ALL ENTRIES IN T_QMIH
              WHERE OBJK~TASER = 'SER01' AND
             OBJK~EQUNR = T_QMIH-EQUNR.
    Thanks
    Ajay

    Hi
    You can use the field QMIH-QMNUM with OBJK-IHNUM
    in QMIH table, EQUNR is not primary key, it will have multiple entries
    so to improve the performance use one dummy internal table for QMIH  and sort it on EQUNR
    delete adjacent duplicates from d_qmih and use the same in for all entries
    this will improve the performance.
    Also use the fields in sequence of the index and primary keys also in select
    if not T_QMIH[] IS INITIAL.
    SORT T_QMIH BY EQUNR.
    REFRESH T_OBJK.
    SELECT EQUNR OBKNR
    FROM OBJK INTO TABLE T_OBJK
    FOR ALL ENTRIES IN T_QMIH
    WHERE  IHNUM =  T_QMIH-QMNUM
    OBJK~TASER = 'SER01' AND
    OBJK~EQUNR = T_QMIH-EQUNR.
    try this and let me know
    regards
    Shiva

  • Can you set arraycollection objects to certain states?

    hey guys.. so in my application, i need to setup rules and permissions for certain users...
    so basically my applicaion initially displays a login screen, on login success its going to get a variable from the server which says if the user has all or video access
    the way i have my "login success" component setup is i have an array collection and i have states
    basically if the user has "all" access then the user shoudl be able to see everythign in that array collection. and if the user has "video" access the the user shoudl onlly see the video option in the list
    the code i have is
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
              <s:ArrayCollection id="webCoreSourceData">
                   <fx:Object label="Content Group" stackId="contentGroup" />
                   <fx:Object label="Images" stackId="images" />
                   <fx:Object label="Image Renderer" stackId="imageRender" />
                   <fx:Object label="Videos" stackId="videos" />
                   <fx:Object label="Flash Objects" stackId="flashObjects" />
                   <fx:Object label="Story Editor" stackId="storyEditor" />
                   <fx:Object label="Tag Management" stackId="tagManagement" />
                   <fx:Object label="Image and Video Format" stackId="format" />
                   <fx:Object label="Rules And Permissions" stackId="rulesAndPermissions" />
              </s:ArrayCollection>
         </fx:Declarations>
         <s:states>
              <s:State name="all" />
              <s:State name="videoUpload" />
              <s:State name="imageUpload" />
              <s:State name="contentGroup" />
              <s:State name="flashObjects" />
         </s:states>
            <list dataprovider="webCoreSourceData" />
    i need to set each one of these arraycollection objects to a certain state, so when i set "currentState=videoUpload" then only video displays in the list component
    and when i set my "currentState="all"" then i want to be able to all the objects in the arraycollection
    any help is greatly appretiated!! thank you...

    Hi,
    There are a few things you can do, one is to filter the array on change of state you could have it that your dataprovider is different for each state then you do something like below. This might give you some sort of direction anyway..
    David
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    ]]>
    </fx:Script>
    <s:states>
    <s:State name="State1"/>
    <s:State name="ImageState"/>
    <s:State name="VideoState"/>
    <s:State name="OtherState"/>
    </s:states>
    <fx:Declarations>
    <s:ArrayCollection id="Videos">
    <fx:Object label="Video1" />
    <fx:Object label="Video2" />
    <fx:Object label="Video3" />
    <fx:Object label="Video4" />
    </s:ArrayCollection>
    <s:ArrayCollection id="Images">
    <fx:Object label="Image1" />
    <fx:Object label="Image2" />
    <fx:Object label="Image3" />
    <fx:Object label="Image4" />
    </s:ArrayCollection>
    <s:ArrayCollection id="OtherStuff">
    <fx:Object label="OtherStuff1" />
    <fx:Object label="OtherStuff2" />
    <fx:Object label="OtherStuff3" />
    <fx:Object label="OtherStuff4" />
    </s:ArrayCollection>
    <s:RadioButtonGroup id="radiogroup1"/>
    </fx:Declarations>
    <s:List id="myList" x="163" y="85" width="271" height="386"
    dataProvider.VideoState="{Videos}"
    dataProvider.ImageState="{Images}"
    dataProvider.OtherState="{OtherStuff}"/>
    <s:Button y="15" label="Video" x="160" click="currentState='VideoState'"/>
    <s:Button y="15" label="Image" x="240" click="currentState='ImageState'"/>
    <s:Button y="15" label="Other" x="320" click="currentState='OtherState'"/>
    </s:Application>

  • JSPX: code too large for try statement try

    I'm migrating an application from Tomcat 5 to OC4J 10.1.3.2 and I'm getting the following error in a JSPX file.
    8770
    [jsp src:line #:931]
    code too large for try statement try { 
    This isn't an issue in Tomcat because of the way jasper creates the .java file. OC4J creates one really long _jspService method.  Is there anything I can do short of rewriting the page to fix this?  Let me know if further information is required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I have created bug 6152265 to track this.

  • Error code = 601; message="An Error happened during call of MaxDB Tool sdbi

    I'm trying to install SAPNW7.0ABAPTrialSP12 and
    I did these steps and was able to reinstall without any problems.
    1. Run registry clean tool that came with the packaged software
    \Additional_Tools\RegCleanTool
    2. Then run Uninstall - System/Standalone Engine/Optional Standadlon ......
    This is under the Software Life-Cycle Options-Uninstall
    3. Check if there are any files located in
    \Program Files\sapinst_instdir -
    delete this directory
    \Documents and SettinsThe specified item was not found.\Local settings\Temp
    delete any references to SAP
    The above steps helped me to reinstall the Trial software.
    Make sure that the system for the install meet the following requirements:
    u2022 Operating System: Windows XP Professional (Service Pack 2) or Windows Server 2003 or Windows Vista
    u2022 Hostname must not exceed 13 characters
    u2022 NTFS-File system
    u2022 Internet Explorer 5.5 or higher or Firefox 1.0 or higher
    u2022 At least 1 GB RAM (2-4 GB recommended)
    u2022 Pagefile size according to your RAM settings.
    u2022 Intel Pentium III/1.1 GHz or higher (or compatible)
    u2022 30 GB hard disk space temporary during installation - 24 GB permanent
    The actual hard disk space required is more than 32GB. It is best to install the SAP directory on a separate drive if possible. Othewise you have to make sure that the drive where you install SAP has sufficient space for you system and the SAP install.
    u2022 High-resolution monitor (1024x768 or higher, 256 colors)
    u2022 Make sure that no other SAP system is installed on your computer
    u2022 The SAP system requires several ports for communication services. Therefore the file %WINDIR%\system32\drivers\etc\services must not include an entry for the ports 3200, 3600, 3900 and 8000. A possible entry can be excluded by using the hash symbol (#). (Note: The entry sapmsNSP 3600 for dialog instances may not exist, as it is set to 0 in Trial versions).
    u2022 If no DHCP server is available on your network (which dynamically determines the IP address) or your computer is not connected to any network, you need to install the virtual interface adapter MS Loopback Adapter.
    but it's happening the following error :
    (Dec 6, 2023 9:32:54 AM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, An error occurred and product installation failed.  Look at the log file J:\sapdb\NSP\log.txt for details.
    (Dec 6, 2023 9:32:54 AM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, ProductException: (error code = 601; message="An Error happened during call of MaxDB Tool sdbinst. Check end of Logfile J:/DOCUME1/Nando/CONFIG1/Temp/MaxDBSAPNWPREV.log")
    STACK_TRACE: 22
    ProductException: (error code = 601; message="An Error happened during call of MaxDB Tool sdbinst. Check end of Logfile J:/DOCUME1/Nando/CONFIG1/Temp/MaxDBSAPNWPREV.log")
         at com.sap.installshield.maxdb.maxdb_call_sdbinst.install(maxdb_call_sdbinst.java:193)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProduct(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.installshield.wizard.service.LocalImplementorProxy.invoke(Unknown Source)
         at com.installshield.wizard.service.AbstractService.invokeImpl(Unknown Source)
         at com.installshield.product.service.product.GenericProductService.installProduct(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installAssembly(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.access$900(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Thanks,
    Nando

    I'm trying to install SAPNW7.0ABAPTrialSP12 and
    I did these steps and was able to reinstall without any problems.
    1. Run registry clean tool that came with the packaged software
    \Additional_Tools\RegCleanTool
    2. Then run Uninstall - System/Standalone Engine/Optional Standadlon ......
    This is under the Software Life-Cycle Options-Uninstall
    3. Check if there are any files located in
    \Program Files\sapinst_instdir -
    delete this directory
    \Documents and SettinsThe specified item was not found.\Local settings\Temp
    delete any references to SAP
    The above steps helped me to reinstall the Trial software.
    Make sure that the system for the install meet the following requirements:
    u2022 Operating System: Windows XP Professional (Service Pack 2) or Windows Server 2003 or Windows Vista
    u2022 Hostname must not exceed 13 characters
    u2022 NTFS-File system
    u2022 Internet Explorer 5.5 or higher or Firefox 1.0 or higher
    u2022 At least 1 GB RAM (2-4 GB recommended)
    u2022 Pagefile size according to your RAM settings.
    u2022 Intel Pentium III/1.1 GHz or higher (or compatible)
    u2022 30 GB hard disk space temporary during installation - 24 GB permanent
    The actual hard disk space required is more than 32GB. It is best to install the SAP directory on a separate drive if possible. Othewise you have to make sure that the drive where you install SAP has sufficient space for you system and the SAP install.
    u2022 High-resolution monitor (1024x768 or higher, 256 colors)
    u2022 Make sure that no other SAP system is installed on your computer
    u2022 The SAP system requires several ports for communication services. Therefore the file %WINDIR%\system32\drivers\etc\services must not include an entry for the ports 3200, 3600, 3900 and 8000. A possible entry can be excluded by using the hash symbol (#). (Note: The entry sapmsNSP 3600 for dialog instances may not exist, as it is set to 0 in Trial versions).
    u2022 If no DHCP server is available on your network (which dynamically determines the IP address) or your computer is not connected to any network, you need to install the virtual interface adapter MS Loopback Adapter.
    but it's happening the following error :
    (Dec 6, 2023 9:32:54 AM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, An error occurred and product installation failed.  Look at the log file J:\sapdb\NSP\log.txt for details.
    (Dec 6, 2023 9:32:54 AM), Install, com.sap.installshield.maxdb.maxdb_call_sdbinst, err, ProductException: (error code = 601; message="An Error happened during call of MaxDB Tool sdbinst. Check end of Logfile J:/DOCUME1/Nando/CONFIG1/Temp/MaxDBSAPNWPREV.log")
    STACK_TRACE: 22
    ProductException: (error code = 601; message="An Error happened during call of MaxDB Tool sdbinst. Check end of Logfile J:/DOCUME1/Nando/CONFIG1/Temp/MaxDBSAPNWPREV.log")
         at com.sap.installshield.maxdb.maxdb_call_sdbinst.install(maxdb_call_sdbinst.java:193)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProduct(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.installshield.wizard.service.LocalImplementorProxy.invoke(Unknown Source)
         at com.installshield.wizard.service.AbstractService.invokeImpl(Unknown Source)
         at com.installshield.product.service.product.GenericProductService.installProduct(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installAssembly(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.access$900(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Thanks,
    Nando

  • Saving session state during pagination

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:152
    I hacked into the PPR function to save the checkbox value into session state during pagination.
    Is there a way to do something similar for checkboxes in the report itself rendered using htmldb_item.checkbox()?
    Or is this an ill-advised effort?
    [The UI requirement here is clear...I have a bunch of items over many pages and I want to select them using checkboxes and have the selections remembered as I paginate back and forth.
    If you use Yahoo Mail, Compose a new message, click on the Insert Addresses link and it pops up a window with all your contacts, you can select them using checkboxes and go to the Next/Previous page and it remembers the selections]
    Thanks

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:152
    Click on the Create/Reset collection button to initialize your own private collection to play with.
    The checkboxes are remembered as you paginate thru the resultset. Basically, the state of the checkboxes is saved into session state using htmldb_Get before calling the PPR function to get the next/previous rows.
    Carl, let me know what you think of the approach. Is it a viable approach? Any caveats?
    [Unfortunately, I had to to make a copy of the builtin html_PPR_Report_Page function to make the above modification in it, didnt see a way to avoid it]
    Thanks

Maybe you are looking for