Column header sort - case sensitivity issue
Hi guys,
I'm having an issue with the built in column sorting when you click the headers on a report. Basically case sensitivity is taken into account and capital letters get sorted before smaller case letters, for example:
Cats
Dogs
Zebra
ants
bears
How would I be able to fix this built in sort?
Thanks,
Luis
Luis,
See if Denes's solution helps: Report sort by column header question .
Scott
Similar Messages
-
Case sensitive issue CF7 & SQL 2005
I had to rebuild a database from a backup recently. Now I am having a case sensitive issue in my queries that I did not have before.
The following use to work with Rockmart in lowercase even though Rockmart was in the table as all uppercase like so ROCKMART.
<cfquery name="updateAreas" datasource="mySource">
UPDATE Property
SET AR = 3610
WHERE City = 'Rockmart'
</cfquery>
The above has stopped working now the query must specify ROCKMART because it is in the table in all upper case.
My database option is set to SQL_Latin1_General_CP1_CI_AS
Any ideas.
Many thanks for you help.
BrianA collation can be specified at the server, database, and column level in SQL server. The column collation will take precedence over the database collation. Check that the collation for the column is case-insensitive. You can use the query below to get the column's collation.
SELECT COLUMN_NAME, COLLATION_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Property'
AND COLUMN_NAME = 'City'
You can get info on the collations supported by SQL Server at:
http://msdn.microsoft.com/en-us/library/ms144250%28SQL.90%29.aspx
You can change a column's collation if you need to, but you should be sure that this will not affect any other applications which query the same data. Another option is to specify the desired collation in your query as suggested by glynjackson.
http://msdn.microsoft.com/en-us/library/ms190920%28SQL.90%29.aspx -
Case Sensitivity Issue with Latin Characters
Hi,
The Latin Character that i am talking abt is "i",
I am trying to provide in my application the support for Azeri-Latin(Turkish family) Characters,
That is the display and the orientation of characters is perfectly fine throughout the flow of application.
But now there is a problem when selecting a data from DB using like constraint in where clause... The issue has been elaborated below...
From the set of characters there are two character in which i am facing Case Sensitivity issue...
They are as,
i ---> the capital of same is ---> İ
ı ---> the capital of same is ---> I
now in english character mapping,
for i ---> the capital is ---> I
So, this is creating an issue...
Now the test i have done is as follows,
I created a table as,
Create Table CS
CS1 VARCHAR2(20)
Following is the data that is inserted in the table,
Insert into CS values('İ');
Insert into CS values('i');
Insert into CS values('I');
Insert into CS values('ı');
now i am running the following query,
Select * from CS where lower(CS1) like lower('%&a%');
for characters "i","İ","I" it returns 3 rows, that are,
i
İ
I
and for character ı it only returns,
ı
ideally for characters "i" & "İ" should be mapped with each other and "ı" & "I" should be mapped with each other respectively.
But that is not the case.
I am using Oracle 10g
my NLS_database_parameters are as follows,
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.1.0
and at client i m using,
NLS_LANG = .AL32UTF8
any help on this issue will be appreciated,
Thanks & Regards,
PratikI'm not fully understand your question but I guess you may need to set up NLS_LANGUAGE, NLS_TERRITORY db parameters and client NLS_LANG.
eg client NLS_LANG=TURKISH_AZERBAIJAN.AL32UTF8 and db parameters NLS_LANGUAGE=TURKISH, NLS_TERRITORY=AZERBAIJAN
Full list of supported languages, locales see [Oracle® Database Globalization Support Guide local data subpage|http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm]
or tip2: check this: ALTER SESSION SET NLS_COMP=LINGUISTIC;
Edited by: Kecskemethy on Mar 24, 2009 3:14 AM
or you need something like this:
Example 5-16 Matching with the Base Letter Operator [==]
Expression: r[[=e=]]sum[[=e=]]
Matches:
resume<<
résumé<<
résume<<
resumé<<Oracle SQL syntax: SQL> SELECT col FROM test WHERE REGEXP_LIKE(col,'r[[=e=]]sum[[=e=]]');Edited by: Kecskemethy on Mar 24, 2009 3:20 AM -
Query can't include an "ORDER BY" clause when having column heading sorting
I'm getting the following error when I try to include "ORDER BY" in my sql statement :
"Your query can't include an "ORDER BY" clause when having column heading sorting enabled"
I have used other sql statements with "ORDER BY" but this is the first time I have come across this and I don't understand why it's going wrong. Does anyone have a suggestion as to how I could fix it? Here is one of the sql statements which I have tried which is giving me the error:
select "ID_NUMBER",
"PROJECT_NAME",
"PROJECT_TYPE",
"OWNER",
"PRIORITY",
"STATUS",
"END_DATE",
"COMMENTS"
from "PROJECT"
WHERE "STATUS" != 'Completed' AND "STATUS" != 'Cancelled'
ORDER BY "END_DATE"
Regards,
Ed.You must deselect column heading sorting that is in the page "Report Attributes" .This is a check box placed on the same line of the element of the report.
bye -
Tooltip for column header sorting
If I enable column header sorting, is there a way to put a tooltip (HTML 'title' property, I guess) on the column header saying 'Click here to sort by this column'?
The triangle image shows this alt text but that triangle image is shown only next to the column that is currently sorted, not all the columns.
[My column headings come from a custom PL/SQL function, not declaratively on the Report Attributes page]
ThanksSee
http://htmldb.oracle.com/pls/otn/f?p=24317:28
The following seems to work.
Add this javascript to the Page Attributes Header section
<script type="text/javascript">
function AddTooltip()
var l_link;
var l_hrefs=document.links;
for (var i=0; i < l_hrefs.length; i++) {
l_link=l_hrefs;
if (l_link.href && l_link.href.indexOf('fsp_sort_')>=1) {
l_link.title="This is a tooltip"
</script>
Then call it from the onLoad as follows
onLoad="AddTooltip();"
Seems to work like a charm.
Thanks
BTW, anyone know how to prevent the [ i ] inside a [ pre ] from being interpreted as an italic tag? I thought all text inside a PRE tag is left untouched? -
How to implement column header sort
Hi all,
Does anyone know how to configure Oracle 9i AS Portal Release 2 column header sort.
In Portal, Oracle has setup the IDE to sort your columns using arrow keys in the
column headers. I would like to do the same thing without using the Custom Form.
TIA,
Daniel NI would suggest using the built in Collections framework for sorting.
have class A implement the Comparable interface then implement the compareTo method as follows:
public int compareTo(Object o) {
A a = (A)o; // <-- may cause ClassCastException if (o instanceof A) != true, but that should not be a problem.
int value = attr1.compareTo(a.attr1);
if (value != 0) return value;
value = attr2.compareTo(a.attr2);
if (value != 0) return value;
value = a.attr3.compareTo(attr3); //Notice I switched a.attr3 and attr3 for desc
return value;
}That should do it for you.
Now put everything into an instance of java.util.List and pass that to java.util.Collections.sort(java.util.List);
If you didn't create class A, and therefore can't add a method to it, then implement a Comparator. The idea is the same, just look at the java.util.Comparator API and use java.util.Collection.sort(java.util.List, java.util.Comparator) method to sort; -
Column header sorting: NULLS first/last
Column header sorting doesnt seem to support the NULLS FIRST /LAST feature of the SQL ORDER BY clause.
So, if my data has nulls in it, I cant control where they appear when I click on the column header to sort it.
Is this added to the upcoming 2.0 version?
ThanksSame question over here: in the J2EE app that I'm rebuilding with Apex, we use NULLS last in all pages, wether order is descending or ascending.
Is 'nulls first/last' supported in any way now?
Are there workarounds to achieve this?
Thanks,
Toon Koppelaars -
Column header sorting: Checkboxes
Column header sorting doesnt seem to work like one would expect when the column is a checkbox rendered using htmldb_item.checkbox().
If I have a some boxes checked, some unchecked on a page and I click on the column header, I would expect all the checked and unchecked boxes to show up together. But they dont. Does the HTML for the checkbox interfere with the sorting? Is there a way to make it sort what you see on screen?
ThanksVikas,
What you get when using htmldb_item calls in your query are varchar2 columns. So itâs ordered by the resulting strings, including all HTML tags that are rendered by that procedure. You might be able to do what you are describing by using Tylerâs sorting hack somehow:
Dynamic Selection of Report Column Format
Regards,
Marc -
Sort column by without case sensitive using Comparator interface
Hello,
When i sorted my values of a column in a table it was showing all sorted upper case letters at top rows and all sorted lower case letters on bottom. So i would like to sort values without case sensitive order. Like. A, a, B, b, C, c....
I am using Collection class to sort vector that contains the values of a column as an object and using Comparator interface to sort the values of a column in either ascending and descending order. It facilitates to compare two objects like.
<class> Collections.sort(<Vector contains values of column to be sort>, <Comparator interface>);
and in interface it compares two objects ((Comparable) object).compareTo(object);
Now Let's suppose i have three values say Z, A, a to sort then this interface sorted in ascending order like A, Z, a
but the accepted was A, a, Z. So how can i get this sequence. I would like to sort the values of a column without case sensitive manner.
Thanks
Ashish Pancholi
Edited by: A.Pancholi on Dec 29, 2008 1:36 PM[http://java.sun.com/javase/6/docs/api/java/lang/String.html#CASE_INSENSITIVE_ORDER]
-
R12 Payment Document Sorting Case Sensitive
Our customer request to payment document assigned sorting by payee name in case sensitive
We have set the PPP to sort by Payee Name already
However, we tested the document number assigned to generated in case insensitive.
e.g we have 3 payee name in the payment
ACC
abc
123
we expected the document number assignged to following sequence for the payee name
123
ACC
abc
However, now the payment document sequence assigned in the following sorting
123
abc
ACC
Please advise how we can do so.Someone please help
-
User Password case sensitivity issue.
Hi,
I have been migrated users from EBS to OID, but having some issues like some existing users password in EBS are in Capital letters but when they connect with SSO the same password not accepted, but users can connect same password in small letters.
How I can solve this issue????????
Senario:
1: Existing EBS User:(Before integration of OID+SSO), users are directly connecting with EBS.
User Name: HINA.SARWAR-----------(Not case sensitive)
Password: ABCDEF -----------( Case sensitive)
2: Existing EBS User:(After integration of OID+SSO), user are connecting via SSO.
Eexpected behavior is that users should logon with above pass "ABCDEF", but they cannot.
eg:-
Cannot connect as:
User Name: HINA.SARWAR -----------(Not case sensitive)
Password: ABCDEF -----------( Case sensitive)
Can connect as:
User Name: HINA.SARWAR -----------(Not case sensitive)
Password: abcdef -----------( Case sensitive)
thxHi,
The solution to your problem is here at metalink:
Password Case Sensitivity Lost During Extract And Import From EBS to OID [ID 951170.1]
regards -
Is there a way I can click on a displayed column (A) and have the actual sort be performed on the value in another hidden column B?
ThanksYes.
select empno,ename
from empEdit the report attributes > Edit the Empno Column
In the "HTML Expression" field near the top, of the empno column attributes page, type in:
#ENAME#
Save it then un-check the "show" column for ename on the report attributes page. You can also change the column header for empno to "Name" (or whatever you want).
Basically, you are displaying the ename data in the empno column. It will sort on empno, but display ename.
Thanks,
Tyler -
Can clicking on column heading sort the column contents instead of drill in
I have a pivot table with data that the client doesn't want to drill into. Instead, they want to be able to click the column heading and have the pivot table re-sort the data in the table based on the data in that column. Is that possible, or are clickable column headings only used for drilling in OBIEE? Thanks.
Madan -
That seems like a feature that should be added to the Pivot Table view if they are going to have it in the Table View. Still, thanks for pointing out the "Enable column sorting in Dashboards" check box in the Table view. I'll see if I can either get this data into the Table view, or at least let the client know the limitations of OBIEE.
Thanks again.
Daniel -
Problem with column heading sorting
I have a problem with a classic report.
I created a simple report. We want to sort the report, when we click the column heading. But when we cklick on the column heading, nothing happens. In firefox we get the error "apex.jQuery.datepicker is undefined".
When we created another simple report and connect against another database (but the same web-server), we can sort the report, when we cklick a column heading. On both databases we installed the same apex version (=4.0.1.00.03).
on "apex.oracle.com" (workspace:ama / user:demo / pwd:demo) I created an example.
what is wrong?? Can anyone help me ??
Thanks
RobertHi Jari,
yes, you are right. I changed my query. I attempted to find a solution and so I changed the query several times => I used other tables, with or without date columns, with or without columns in the select and so on.
You said, the problem is the authentication scheme. It crossed my mind that I do another change:
during the creation of my application apex created a login page => page 101. For my example application I don't need a login page, and so I droped the page. After starting the application I saw the error message "page 101 not found ". So I searched for a property where apex definies the "start page" respectively "login page". But I don't found anything. Then I looked into the export file and searched for "101". I found the package procedure "wwv_flow_api.create_auth_setup" and the parameter "p_invalid_session_page", which receive the value "101". In apex the property "Session Not Valid Page" was blank. So I inserted the page number "1" (=the first and sole page in my application).
After the explained changes I could start my report.
I don't know, whether these informations help to find the problem!
Regards
Robert -
SOAPAction Header field case sensitive
Hi gurus,
I am trying to consume a webmethods java webservice via XI/PI NW2004 and when I send a request, PI send the soapaction field in uppercase.
POST http://webservices.kuehne-nagel.com/HelloWorld_test HTTP/1.0
Accept: /
Host: https://webservices.kuehne-nagel.com/HelloWorld_test
User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
content-id: <soap-4C4DF1260912013BE10080009E344EB9sap.com>
Content-Type: text/xml; charset=utf-8
Content-Length: 316
SOAPACTION: "http://webservices.kuehne-nagel.com/helloWorld/hello"
It should be like SOAPAction : "http://webservices.kuehne-nagel.com/helloWorld/hello"
How can I set/change it on XI/PI ?
Regards,
Rodolfo MiãGourav,
This is W3 Standard:
HTTP verbs are case sensitive. (http://www.w3.org/TR/wsdl)
In my case, the webservice provider was implemented in JAVA code and in Linux server. Java and Linux are case sensitive.
I agree with you if we are working with .NET implementation.
I already have tried to consume a .Net asmx webservice and works fine.
Maybe you are looking for
-
These problems are happening on my iMac at home. I can log into Creative Cloud no problem, however as soon as I try and open an application, whether it's an old version or CC 2014, Adobe Application Manager opens and tells me that membership has expi
-
I changed my Apple ID password and successfully validated it. Problem is the iPad App Store won't recognise me anymore. if I select an App to update it asks me to enter password, then says "You have not verified your Application ID.Tap OK to view t
-
Creation of Assets for Capital Investment Measure
Hi, Can some please tell me how to create an Asset for Capital Investment Measure.
-
Urgent:-Values are not inserted into the custom table
Hi, I am inserting the data from the custom OAF form into a custom table. Only the WHO columns are populated into the table but no field value is populated into the custom table. I have written the following code - In CO if (pageContext.getParameter(
-
Java Default FileSystem Root.
If I want to program file System specifiers in a platform generic way in java, I call System.getProperty("file.separator"); So I know the correct version of slash to use, wherever my program is run. On Unix, the root of the file system is / windows,