Cannot determine comparator for Sortfield

I have a DataGrid that gets its data from an HttpService. If
the first row of the data from the http request has a null value
for a given field, I get the "Cannot determine comparator for
Sortfield" error.
I think the simplest workaround would be to specify the data
type for each DataGridColumn. I see that the DataGridColumn objects
can have a sortCompareFunction. I don't want to write my own custom
comparators. I assume that the built-in comparators will do just
fine.
Suppose my MXML code looks something like this...
<mx:DataGrid>
<mx:columns>
<mx:DataGridColumn headerText="My String"
dataField="name" sortCompareFunction="???"/>
<mx:DataGridColumn headerText="My Integer" dataField="ss"
sortCompareFunction="???"/>
<mx:DataGridColumn headerText="My Float" dataField="gpa"
sortCompareFunction="???"/>
<mx:DataGridColumn headerText="My Date"
dataField="birthdate" sortCompareFunction="???"/>
</mx:columns>
</mx:DataGrid>
What values would I use for the sortCompareFunctions in order
to use the built-in comparators for the string, int, float and date
types, respectively?

One trick that I've used in the past (which wont really give
you type specific ability) is to check the returned data prior to
assigning it as a dataProvider. In my case the data is xml based
son I don't get nodes, but possible missing elements all together.
I check for their existance for each row (in your case test for
null) then assign a default value (-1 for int, 6/6/2006 for date
etc...). After populating the 'voids' in my data I assign it as the
dataProvider in ActionScript.
To get more type specifc, you may want to look into using a
data model and check out the validator classes.

Similar Messages

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • E613 SYST: You cannot determine the period for rule 03

    Dear All,
    We are configuring asset module and using MSTL dep key for Tax books. When we tried to create an asset with MSTL dep key, we encountered error - 'E613 SYST: You cannot determine the period for rule 03'. when verified config OAVH Define Calender Assignments transaction,  Period control '03' is missing for fiscal year variant K4. Period control is exisiting  in Maintain Period Control and but not in Define Calender Assignment. What I understand these period controls are being delivered by SAP. Not sure why period control '03' is missing.  all other period control keys are available.
    question is how to add period control 03 so that we can use MSTL dep key. we are currently using 4.7c. Any suggestions would be appreciated.
    thanks
    Sunil

    message went abruptly before I finish.
    +++++++++
    continuing from previous email
    Period control 01 has following entry in the transaction
    Fiscal Year Variant        Per control          Name of the period control             Year      Month      Day      Period        Mid Month
    K4                                      01                        Pro rata at period start date        blank       0            0             blank        not selected
    If I follow SAP help to define period control '03', then I just need to copy period control '01' which is listed above and select 'Mid Month' check box.
    Wondering anyone did this in the past. MSTL depreciation key is being used in MACRS tax for US. I am sure people who  have implemented assets module for US with tax dep, they might have encountered this issue.
    thanks
    Sunil

  • Cannot determine a value for an exit variable in the Formula fn w/p empty

    Hi All,
    We have an exit variable Z_EX_AR_VAR, the would read a hierarchy node input variable (Z_HN_AREA), which is furthur based on a hierarchy input variable (Z_HR_AREA), and wouuld return the first leaf of it.
    We have implemented a input ready query based on this exit variable and it is getting the first node and is input ready and saves the data to the database.
    It works well in the query when we have filtered the characteristic with the hier and hier node and the exit variables.
    We need to use the same value to be used in the Fox function.
    As per the requirement, the Fox function has to process the zero (empty) records.
    So, we have customized formula function to process emptry records.
    And in the function of type formula function that processes empty records, we have used the following statement.
    DATA AR type ZAREA.
    AR = VARI ( Z_HN_AREA, HIENM=Z_HR_AREA, 1).
    We are getting the following error message:
    Cannot determine a value for the variable Z_HN_AREA.
    Planning function ended with errors.
    What is that we are doing wrong here. Is it with the 'Process Empty Records' function that cannot read the variable.
    How come this variable is working in the query and it is not working in the FOX.
    We have done the variable to variable binding in the WAD also. Still the same problem.
    Any ideas? Thanks in advance.
    Best Regards,
    - Shashi
    Thanks in '

    Hi All,
    Michael Wolf from SAP confirmed that we cannot use VARiable read functions in the customized Formula function that processes the zero (empty records) as he spoke to SAP AG about the issue.
    Hence we have made a work around by creating a valid record using a dummy key figure in the Custom Formula function that processes empty records so that in the next step, the regular Formula function would get executed, where we could access the variable values by using VARV, VARI functions.
    Thanks,
    - Shashi

  • Cannot determine all dependent dynamic libraries for /proc/self/exe

    Each time I start Oracle XE i writes this entry in the alert log as the first thing:
    Wed Jun 14 23:45:45 2006
    Starting ORACLE instance (normal)
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    The open() system call failed for the file /proc/self/exe
    Linux Error: 13: Permission denied
    This file is just a dynamically created link to /bin/ls like this
    lrwxrwxrwx 1 fgjensen users 0 2006-06-15 10:16 /proc/self/exe -> /bin/ls
    and looking at the permissions the oracle use should have the permissions it needs.
    Regards
    Flemming

    SuSE Linux 9 and 10 have this problem. It's not serious - simply an indiocation that LD_LIBRARY_PATH is not set up correctly.
    Solution: for SuSE systems, edit /etc/init.d/oracle-xe and make the following mod:
    ORACLE_OWNER=oracle
    ORACLE_SID=XE
    export ORACLE_HOME
    export ORACLE_SIDchanges to
    ORACLE_OWNER=oracle
    ORACLE_SID=XE
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    export ORACLE_HOME
    export ORACLE_SID
    export LD_LIBRARY_PATHI'm running that on my system and that has eliminated the alert.log message. (And the LD_LIBRARY_PATH message about 3 lines later.)

  • Cannot determine shell type for PID 28704, UNKNOWN

    Hi All
    I am using ksh and executing a shell script, but it fails with following error
    Cannot determine shell type for PID 28704, UNKNOWN
    Please let me know if you have any solution for this
    Thanks
    Kanki

    Does the script do a ps -ef and grep for a PID, or does it look in a file for a /var/run/pid file? I would look at the script to see what it is looking for that is tied to the PID of 28704.
    You could also check to see that the script's first line has the correct shell defined.

  • Verify EJB after Cannot determine the Java EE module type for

    Hi All,
    I start verify EJB it's throw an exception
    Which cases occurring this exception, how can I resolve this?
    Could not verify successfully.
    java.io.IOException: Cannot determine the Java EE module type for C:\Mystuff\projects\Naki\Naki-ejb\dist\Naki-ejb.jar
         at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:137)
         at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:98)
         at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:110)
         at com.sun.enterprise.deployment.archivist.ArchivistFactory.getArchivistForArchive(ArchivistFactory.java:93)
         at com.sun.enterprise.tools.verifier.VerificationHandler.initStandalone(VerificationHandler.java:204)
         at com.sun.enterprise.tools.verifier.VerificationHandler.<init>(VerificationHandler.java:109)
         at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:140)
         at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
    Thanks,

    I'm getting the same error although i'm not receiving those entries in the log. Can someone please respond to this post. I've tried a lot of things but can't seem to figure it out. Please email me at [email protected] if you can help.
    Thanks

  • I would like to know if anyone else is experiencing issues related to location services settings. Ie; they are on but maps cannot determine location etc.

    I recently experienced an issue on my ipad2 related to location services. While connected to a wifi network, I found that apps requiring location services would not work properly and I would receive a pop up notice asking me to turn on location services.  For example, the maps app would display a pop up stating "cannot determine location". My NHL gamecenter app would not allow me to watch live feeds; a pop up advised me to turn on location services. In each case, location services was in fact on.
    I checked my settings, shut down the apps, restarted them, shut down the iPad and rebooted it to no avail. The internet connection was working fine as best as I could determine. The wifi network was at a guest home and the router was recently replaced. I returned to my home wifi and everything worked fine. The next day, I returned to the guest Internet connection and everything seemed to work once again. However, while watching a NHL game, during the last seconds of an overtime shoot out, I lost video and it was attributed once again to location services being disabled. Of course I checked and nothing in my settings had been altered. I went to my iPhone (3GS) and pulled up the gamecenter app and was able to watch the end of the game( via wifi connection...same network).
    So, I am puzzled as to what could be causing this problem. If anyone else is having similar issues, I would like to know as well as if there are any solutions or feedback from Apple regarding this type of problem.....Dave.

    As the King says, if your friends wifi router was relatively new, it likely has not been picked up by Apple's location based information database system and thus there is no location information associated with it.  So your iPad had no way of getting its location.
    The wifi location databases are traditionally updated by wardriving - literally companies employ people to drive around sniffing out active wifi signals and associating an approximate location to it.  Some companies also have web sites to submit that information if owners wish to (Apple does not seem to have one though), and the various companies with wifi location databases buy and sell their information.  Bottom line is though, it can take weeks, months or sometimes even longer for a residential router to get picked up - depends on where you live (more rural, likely the longer time it takes).
    When I moved from VA to NC it took up to 6 months for mine to reflect my new location (I checked it once the week I moved in, and then periodically thereafter, and it finally was getting it right after about 6 months) and I live in a pretty densley populated area (triangle NC).

  • 2013 Exchange, Can't connect to Exchange Management Shell. It cannot determine the content type of the HTTP response from the destination computer.

    The following error occurs.
             Welcome to the Exchange Management Shell!
    Full list of cmdlets: Get-Command
    Only Exchange cmdlets: Get-ExCommand
    Cmdlets that match a specific string: Help *<string>*
    Get general help: Help
    Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
    Show quick reference guide: QuickRef
    Exchange team blog: Get-ExBlog
    Show full output for a command: <command> | Format-List
    Tip of the day #0:
    Did you know that the Identity parameter is a "positional parameter"? That means you can use:
     Get-Mailbox "user" instead of: Get-Mailbox -Identity "user"
    It's a neat usability shortcut!
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Exception calling "GetComputerSite" with "0" argument(s): "The Specified directory object cannot be found."
    At C:\Program Files\Microsoft\Exchange Server\V15\bin\ConnectFunctions.ps1:164 char:2
    +     $localSite=[System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetC ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ActiveDirectoryObjectNotFoundException
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.: mail1.dorothy.local
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Randy Cheek

    Good Morning,
    Log into the server with an account that has appropriate Exchange rights, not a local account.  
    Note: By default - Domain Admins don't have Exchange rights.
    Dame Luthas, ITILv3, MCSE Messaging 2013, MCSA, MCITP
    My Technical Blog: http://thelifestrategist.wordpress.com
    Discipline is the Difference between Goals and Accomplishments
    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

  • Receiver Determination Step For Synchrnous Send  in BPM

    Hi,
    How to use BPM Receiver Determination step for a synchronous send step?
    My scenario is to send a request to multiple receivers synchronously and get the response.How can i achieve this using Receiver Determination step in BPM.
    Regards
    Divia

    Hi Sreedivia,
    As far as use of synchronous message is concern with receiver determination step, it wont allow you to use Abstract Synchronous message interface in it.
    Even you cannot give multiple receivers without specifying any condition while creating Receiver determination  in integration directory.
    Regards,
    Sami.

  • Grid Control cannot determine primary host architecture

    Dear all
    i try to create new standby database for my oracle rac database (2 node) in grid control 10.2.0.2 but after first step of wizard i get this error without any oraerr number : "cannot determine primary host architecture" , but i have all database target items correct ,up and running include ( ASM,Listener,Cluster,Host,Agent,Database instance)
    please help me how i can resolve this error
    Oracle RAC version :10.2.0.1 (windows 2003 R2 X64)
    Oracle Grid Control Agent ( 10.2.0.2 ) for windows X64
    Oracle Grid Control 10.2.0.1 windows 2003 R2 32bit

    Hi all,
    I'm trying to create a stand by database with the same tools as described above. My configuration is the same.
    I've checked in my database and I already got the value 'Intel Pentium' described in the query. I tried the query anyway but, as I was expecting, it didn't solve anything for me.
    If somebody could explain a bit on what actually generate this error and what OMS is looking for in MGMT_TARGET_PROPERTIES, it would be great.
    If I find anything I'll update this post.

  • CANNOT SEE TOTALS FOR SOME COLUMNS IN DISC 9I  (9.0.2.39.01)

    We have made new reports in Disc 9i, column totals won’t appear on the report where expected, It just shows "SUM" and then blank, this is happening for all the new reports.Please help..
    Thanks.
    Glen

    There are some cases where Discoverer cannot determine with certainty that the Totals or subtotals you create will be correct. It flags those totals as Values that cannot be aggregated. Go to Options-> Sheet Format and you can set what string you would like to see placed in those cells that Discoverer determines cannot be aggregated correctly.
    Assuming that the blank totals are non-aggregable by Discoverer, there are some things you can do to to alter either your business area or worksheet or calculation that will enable you to get the totals you want. As this analysis takes some time and iterations, it is usually best handled through Oracle Support. Also see the doc and RN references to the EnhancedAggregationStrategy in the Preferences.
    Also, given the version you are using it seems that you have just started using 9.0.2. You should strongly consider upgrading to OracleAS 10g (9.0.4) or at least upgrade to the latest 9.0.2 patch -> 9.0.2.54.
    Discoverer Product Management

  • Cannot determine Internet graphics server on portal

    Hi Experts,
    We have installed BI server and EP (NW2004s). BI Java is installed on Portal.
    While running the BI query from WAD, with a template, only the tabular data is displayed and we are unable to display the graphs. There is an error message in portal ‘Cannot determine Internet Graphics server”.  Please let me know if there is any additional configuration to be done for this.
    Thanks.
    KS

    Hi KS
    Check the following:
    1. From portal system, Visual Administrator , server > services > Configuration Adapter.
    Rightside > webdynpro >sap.com> tcwddispwda > property sheet default > give IGS URL .
    http://<IGS server name>:4<nr>80
    nr = instance number.
    2. Try executing the report in BI "GRAPHICS_IGS_ADMIN" and check for the graphical ouput.
    If the result is negative, check the RFC destination IGS_RFC_DEST.
    Registered Server Program ID for the RFC (TCP/IP) should be of the format: IGS.<SID>
    Cheers !!!
    Satish Kumar.

  • Cannot determine sdm host

    Hi,
    I'm developiny webdynpro application usin NetWeaver Developer studio. While I deploy the error below appaers in log.
    How can I solve?
    Thanks.
    Sep 16, 2008 12:49:52 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [006]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !

    Hi,
    Go to window ---> preferences
    You will get a window opened in that
    on the left hand side you have the SAP J2EE Engine option
    double click on that
    if you are using a server which is situated remotely then go for 1st option
    Mesassage Server Host:--<Ip of the server>
    Meassage Server Port :<port no>(Generally 3901)
    If you have server installde locally on your system then go for the 2nd option
    ther will be a browse you acn dind ur server and select that.
    Thanks & Regards,
    Lokesh

  • Cannot Determine Location on iPad 3.

    This is for my friend.
    Ok, This error shows "Cannot Determine Location" on my friend's iPad 3 and he said that Location Services has been turned on, and he said, nothing still works.
    Please help! If any help, then I'll tell him!

    Same problem here.
    iPad 4, iOS 6.1.2
    Tried every suggestions, but still doesnt work.
    If i push the little arrow in the left corner in Maps, the arrow is loading always, but nothing happens. After that show up "Cannot determine location" window.

Maybe you are looking for

  • Cant reinstall osx lion on new hard drive

    I recently have been having problems with my 2007 Macbook 2,1 (yeah, I know it's old but it works...or worked anyway) taking forever to boot up.  So, I backed up all of my data to an external drive, erased the drive and then attempted to reinstall os

  • Mixing frame rates in a project

    All of my video cameras shoot 60i so no problem in working their output into a project.  However, I just acquired a still camera which I purchased for its still camera qualities.  It turns out to have a respectable amount of control over the video an

  • Output codec

    using premiere pro 6 what would be an equivalent output codec as Pro res 442? I want to output my video with a similar quality codec.

  • Tables without mandant!?

    Hi experts! Can anybody give me a list of the  tables that are  independent of mandant? Thanks a lot, Regards, Rebeca

  • ITunes 10.5.1 64 bit is freezing

    I just did the update today and now as soon as i launch itunes it immediatley locks up. It loads and shows 3/4 of the program window not sure why and loads on the podcast library. I have tried uninstalling and reinstalling. I have tried reparing all