DataGrid sort start/completion:  specific associated events?

Hi all,
A lot of my DataGrid sorts take a non-trivial amount of time.
So, I'd like to show a busy cursor while the operation runs. In
order to do this I'd need events associated with the start and
completion of the operation. Are there such events available?
Thanks!
-Noah

This thread was "imported" from the old forums -- most, if not all, code seems to have disappeared. But here are the sort functions I posted:
function sortXML(source:XML, elementName:Object, fieldName:Object,
options:Object = null):XML
     // list of elements we're going to sort
     var list:XMLList=source.elements("*").(name()==elementName);
     // list of elements not included in the sort -
     // we place these back into the source node at the end
     var excludeList:XMLList=source.elements("*").(name()!=elementName);
     list= sortXMLList(list,fieldName,options);
     list += excludeList;
     source.setChildren(list);
     return source;
function sortXMLList(list:XMLList, fieldName:Object, options:Object =
null):XMLList
     var arr:Array = new Array();
     var ch:XML;
     for each(ch in list)
           arr.push(ch);
     var resultArr:Array = fieldName==null ?
           options==null ? arr.sort() :arr.sort(options)
           : arr.sortOn(fieldName, options);
     var result:XMLList = new XMLList();
     for(var i:int=0; i<resultArr.length; i++)
           result += resultArr[i];
     return result;

Similar Messages

  • How to Set A Default Start Time For New Events In Calendar?

    How to Set A Default Start Time For New Events In Calendar?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • I set up iPhoto v9.6 to copy items to library. Now I would like to change it to not copy. Do I have to start completely over? I have 106GB of photos and tags in my library. Will I lose all that work?

    I set up iPhoto v9.6 to copy items to library. Now I would like to change it to not copy. Do I have to start completely over? I have 106GB of photos and tags in my library. Will I lose all that work? Originally I thought by copying items to library I would be making an exact copy of my originals and that would serve as a duplicate or backup copy. My originals are on my EHD#1 and my iPhoto library is on my EHD#2. But now I realize that I can not view my iPhoto library unless my EHD#2 is connected to my computer (duh!!) So now I would like to NOT copy times to library and I want to have the library in the Pictures folder on my laptop HD. So I guess my question is do I have to start completely over? Is there some way to salvage all the work I've done so far?

    Yes you would have to start over from scratch.
    But you should really think this through very carefully. Experienced users do not recommend iPhoto used in this mode, and with very good reasons. Among them
    1. It's more work for exactly no gain
    2. It's unreliable - especially - when the library is on one volume and the photos are on another. One change to the path between the files and the library and you'll be reconnecting every photo in the Library back to the database, one by one.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

  • "...reverting changes.": I get this in VISTA 64 bit vm and always auto restart prior start complete, without let me do anything... well?

    Updates were not configured correctly. reverting changes.
    I get this in VISTA 64 bit vm and always auto restart prior start complete, without let me do anything... well?

    I pause vm --- what else can do?
    I tried apply vista updates... initially

  • Split document when ever page starts with specific text

    Is it possible to split document when ever page starts with specific text

    If you look at your code you will see
    cPath: "/F/temp/"+filename+"_" + i +".pdf"
    which is the Acrobat version of saying
    F:\TEMP\ ... your filename ...
    Clearly won't work unless you change it to use your own preferred path.

  • FRM-91500: Unable to start/complete the build

    Hi,
    I have oracle10g application server running on my linux box A, oracle database10g running on linux box B and Developer Suite10g running windows box C. I create a fmb file and ftp into application server box A.
    but when i try to compile the .fmb file, i get the following error.
    FRM-91500: Unable to start/complete the build.
    i have set all these paths as mentioned below.
    ORACLE_HOME=/home/oracle/oracle/OASMidtier; export ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/local/bin;export LD_LIBRARY_PATH
    ORACLE_SID=asdb; export ORACLE_SID
    PATH=$PATH:/usr/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin
    export PATH
    FORMS_PATH=$ORACLE_HOME/forms;export FORMS_PATH
    DISPLAY=:0.0; export DISPLAY
    and i saved the EX01_01.fmb under /home/oracle/oracle/OASMidtier/forms
    Now when i give xclock iam able to see the clock.
    but when i execute the following iam getting unable to compile error.
    [oracle@oracledev bin]$ ./frmcmp.sh userid=student/pwd@orcl batch=yes module=EX01_01.fmb module_type=form compile_all=yes window_state=minimize
    infact as an additional information. whenever i do a
    sqlplus / as sysdbai get following error:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    what does this error mean. how can i fix this.
    Can someone help me please.
    Thanks,
    Philip.

    Hi,
    after rechecking all the configurations, r u successfully login with the database?yes i am able to connect without error. i figured out i was getting this error whenever i was changing the ORACLE_HOME from Infrastructure path to Midtier path. is there a way to work around this?
    also i am able to compile the .fmb file now.
    it is very strange. well it kind of worked, but this is what i did. i gave the following env variables:
    ORACLE_HOME=/home/oracle/oracle/OASMidtier; export ORACLE_HOME
    FORMS_PATH=/home/oracle/oracle/OASMidtier/forms; export FORMS_PATH
    ORACLE_TERM=vt220; export ORACLE_TERM
    and then when i executed the following:
    cd $ORACLE_HOME/bin./frmcmp.sh module=/home/oracle/oracle/OASMidtier/forms/EX01_01.fmb userid=student/m4ewr0e1@orcl module_type=FORM compile_all=yes
    i got the error as: FRM-91500: Unable to start/complete the build.
    but when i did the following, it worked:
    ./frmcmp_batch.sh module=/home/oracle/oracle/OASMidtier/forms/EX01_01.fmb userid=student/m4ewr0e1@orcl module_type=FORM compile_all=yes
    and i got the result as:
    Created form file /home/oracle/oracle/OASMidtier/forms/EX01_01.fmx
    i just dont understand. why did the frmcmp_batch.sh worked and frmcmp.sh did not?
    Can you please explain me why?
    also when i give the following:
    DISPLAY=<servername>:0.0; export DISPLAY
    and when i give: xclock i get error as:
    Error: Can't open display: <servername>:0.0
    but only when i give
    DISPLAY=:0.0; export DISPLAY
    and then when i give: xclock then i am able to see the clock.
    Can you please explain me why all these errors:
    Thanks,
    Philip.

  • FRM-91500: Unable to start/complete the build in arabic nls_lang

    Hi,
    I have oracle10g application server running on my linux and Developer Suite10g running windows.
    I create a fmb file and ftp into application server.
    but when i try to compile the .fmb file,
    i get the following error.
    FRM-91500: Unable to start/complete the build.
    i have set all these pathsin Oracle bash_profile: ORACLE_HOME,LD_LIBRARY_PATH,FORMS_PATH
    My DB nls_lang is AR8MSWIN1256.
    when i set NLS_LANG to AR8MSWIN1256 in linux environment, I got the error but when i set to any other it's OK but my forms has font desplaying problem and all arabic text are shown as '??????'. i tried with NLS_LANG=AR8ISO8859P6 but it does'nt work.
    I read the folowing treads carfully and followed the instructions but the problem still exists.
    frm-91500
    and
    Re: how to compile and run windows built .fmb file in linux
    can anybody give a suggestion or workaround this problem?
    thank you in advance

    Hi,
    I have the same problem. When NLS_LANG in UNIX env is set to AR8MSWIN1256.
    The error FRm-91500 is shown.
    Pls. let me know what could be done to fix this.
    Regards & Thanks.
    Hma

  • Can we Start Complete Cache Refresh at production

    While the production is running , we want to do a "Start Complete Cache Refresh" at SXI_CACHE.
    Please inform us whether you did it and if so, what is the impact?
    Thanks!

    I am assuming you wont be doing Complete Cache refresh just for the heck of doing it.
    Incase any cache related problem occurs the only way to solve would be to refresh the cache.
    So you really don't have any option to decide whether you should do or not.
    Well Yes messages could fail when full cache refresh is taking place.
    >The entire refresh typically takes how many munites to be done?
    Actually depends on the no of interfaces which are present, memory, cpu,etc etc.
    Why don't you try to do a full cache refresh in Dev and see how much time it takes. In Prd it should take less than the time it takes in the dev system.
    Regards,
    Sumit

  • RAC specific Wait events in AWR

    DB version: 10.2.0.4
    OS : Solaris x86
    What are the most frequent RAC specific Wait events that appear in AWR reports ?

    Hi Pete,
    This depends on your environment. You can identify them as follows:
    Monitoring Oracle RAC Statistics and Wait Events
    http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/monitor.htm#i1010220
    ASH Report for Oracle RAC: Top Cluster Events
    The ASH report Top Cluster Events section is part of the Top Events report that is specific to Oracle RAC. The Top Cluster Events report lists events that account for the highest percentage of session activity in the cluster wait class event along with the instance number of the affected instances. You can use this information to identify which events and instances caused a high percentage of cluster wait events.
    http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/monitor.htm
    Regards,
    Levi Pereira
    <font size="1" color="red">Please close your thread when you get the solution to your problem.</font><br>
    <font size="1" color="red">Mark the replies answered "helpful" answer and/or "correct" answer that will help others with same problem.</font><br>
    <font size="1" color="red">Thanks for doing your part to make this community as valuable as possible for everyone!</font><br>

  • My MacBook Pro can not start completely it stays on a blue scre

    I restarted my MacBook Pro but left a USB plugged now it can not start completely it stays on a blue screen where I can see the pointer and sometimes a small icon which indicates its processing something. It has being like that for two days. I can not even turn it off I have to hold the bottom to force it to shut off.

    i know this may be silly but i hope you removed the usb device while restarting.
    If you did then hold up the option key as soon as you press the power button. It will bring you to a bootfolder selection choose your main partition and boot up. Alternatively if this does not help then do a PRAM and SMC reset. If these things fail then select recovery partition and go to disk utility and repair permisions for the main partition within the first aid section. If all else fails you would need to re install the osx, hope you have a back up.
    Since you have not told us what model and year the mbp is if you have the recovery discs with you use disc 2 and read the insturctions on the disc as to what key you should hold.

  • Start MIDlet from external event (Push Registry)

    Hi All,
    I am doing a MIDlet on capturing snap. Is it possible to start MIDlet from
    outside event (like sms from particular IP/mobilenumber)?
    What is the minimum requirement to do so if it is possible?
    From,
    Nirav

    Hi
    Do a search on this forum for PushRegistry.
    Mihai

  • LMS / LSO - Course Completion Specifications

    Can someone confirm where you specify course completion specifications for a WBT. I guess it is to be specified at D / Course Type level, against "Minimum" in Completion specifications tab. I guess it also depends on the Learning Objects. If the above is right, and if the minimum field has a zero, would it mark course completion as 100% even if the learner has accessed it for a minute only. Appreciate expert opinion on this Pl
    Matt

    Matt,
    SAP does deliver configuration by delivery method, but you are free to change this (add/delete/reorder infotypes as needed by delivery method).  This is done via the IMG.  Under Learning Solution>Basic Settings>Dialog Control-->Current Settings, you will find Maintain Personnel Actions.  Here you will find the various actions for the different delivery methods, and you can review/modify as needed.  Course Completion Specifications IT should be already configured for you for delivery methods like WBT and online test.
    Gary

  • FRM-91500 Unable to Start / Complete Build

    I compiled a form in 10g, ftp'd it to unix and while compiling in unix through frmcmp.sh, it gives me the following error:
    FRM-91500 Unable to Start / Complete Build
    After reading the forums, I added these two lines in frmcmp.sh but it still gives me the same error:
    TERM=vt220; export TERM
    ORACLE_TERM=vt220; export ORACLE_TERM
    Can someone please advise what to do.
    Thanks.

    Follow the steps below:
    1) Run any x_windows terminal software on your machine eg : Exceed
    2) Then Login to UNIX and set the display variable
    $ DISPLAY=<ip_address>:0.0
    $ export DISPLAY
    3) now run your frmcmp.sh
    frmcmp.sh module_type=<> module=<> userid=<> compile_all=yes

  • Datagrid sorting issues with 1/0 items to consider

    Hi all,
    I have an issue I can't find a way to fix. I am using a datagrid which I pouplate through a XMListCollection based on some XML datas.
    XML:
    var prefs:XML = <files>
    <file name="@toto" favourite="1"/>
    <file name="@toto"favourite="0"/>
    </files>;
    XMLListCollection
    var xlc:XMLListCollection = new XMLListCollection( new XMLList ( prefs.file) );
    MXML
    <mx:DataGrid id="filesList" width="100%" height="100%" dataProvider="{xlc}">
    <mx:columns>
    <mx:DataGridColumn width="25" dataField="@favourite"sortCompareFunction="favourite_sortCompareFunc"/>
    </mx:columns>
    </mx:DataGrid>
    Sorting fucnction:
    private function favourite_sortCompareFunc(itemA:Object, itemB:Object):int {
        var value1:Number = Number( itemA.@favourite );
        var value2:Number = Number( itemB.@favourite );
        if(value1 < value2){
             var n:Number = -1;
             return n;
        else if(value1 > value2){
             return 1;
        else{
             return 0;
        return 1;
    Once loaded, the datagrid appears in a "normal state":
    But if I try to sort first column, it becomes messy
    I think it might be related to the fact that the data to be sorted is only made of 0 & 1. But I can't imagine this kind of situations is not fixable.
    Any hint ?
    Thanks in advance for any advice,
    Loic

    Hi guys,
    First of all, all my apologizes for my silence. I had technical issues with Yahoo mail that made me miss 3 months mail ! So I just missed your posts and I can only come today to thank you all for your care and answers.
    In the meanwhile, I finally got it working by doing…nothing. Let me explain. The issue was caused by equal datas ( 1 or 0 ). So Flex couldn't sort 1 and 1 or 0 and 0 by itself. But these 0 and 1 were flags for an itemrenderer made of a button in toggle mode. 1 standed for on, 0 for off.
    Doing so I did override updateDisplayList and then the issue went away. But if I had to stick with pure datas ( 1 or 0 ) I think I would have had to do a custom sort function to deal with equal datas like a few of you offered.
    @DonMitchinson the @ stands for the xml attribute as the datagrid is populated with XMLListCollection from an XML file.
    Thanks for your sharing,
    Best,
    Loic

  • How do you start completely fresh.... reset iPhoto 6

    I messed up iPhoto 6 with iPhotoBuddy and aliases etc. So I deleted all my albums and Library of aliases. How do I reset or start completely from the beginning with iPhoto, before I import my photos again?

    i'm have the same question on how to reset iphoto 6, when you say delete the library folder, do you mean the 'iphoto library' in the pictures folder? and do i delete the preference file as well?
    thanks!

Maybe you are looking for

  • Cross references not picking up character styles in source text

    I'm getting some annoying odd behaviour with cross references in Frame 12. I have some tables, where the paragraph style in the cell is called "Cell Body" (nothing odd there). Quite a few of the cells only have one word in them, and that word is set

  • Problem changing email address

    All I wanted to do was update my email address.  Went to Profile and entered the new email.  Then it said postal code was required, so I put that in.  Then it said my password was wrong, but I was actually not able to enter the password due to that b

  • Master Data Background Tables

    Hi Xpertz Could any one tell me the answer to the following sorry to asking this silly question in Sdn .After a long time just i am reviewing my basics i got alittle confussion in the following what r the master data back ground tables i know that P,

  • Nokia 6555b Firmware Update

    Is there an update for the Nokia 6555b firmware? Thanks, Pat

  • Video freeze between macbook to macbook pro

    My friend has a macbook and I have a macbook pro. Most of the time when we chat, both of our videos freeze. For me, her picture freezes but mine keeps going, and for her, both her picture and my picture freeze. The audio is fine, and when she selects