Columns order
I have a pivot table with a resulting column graphic showing the answers to a questionnaire
These are 4 possible values, in the correct order:
falso (false) - abbastanza falso (quite false) - abbastanza vero (quite true) - vero (true)
My problem is they are shown in alphabetical order:
abbastanza falso - abbastanza vero - falso - vero
Is there a way to correct this behavior, setting the way I would like the columns to be shown?
Sorry for my bad english :)
Hi,
is this a fix range of values or dynamic?
When it's fix, you could duplicate your column and make use of a case statement where your fix your order.
f.ex : case when object = 'vero' then 1
when object = 'falso' then 2
end
Put an order on this column and hide if you don't want to show it.
Hope this can help you out.
Kr,
A
Similar Messages
-
Report Does Not Follow Select Column Order
Hi all,
Apex 2.2 on 10gXE
I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
Is there a fix/patch or alternative tips for this bug?
Thanks a lot,
Edited by: 843228 on May 24, 2011 10:32 PMApex 2.2 on 10gXEStart by upgrading from this old unsupported version.
>
I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
Is there a fix/patch or alternative tips for this bug?
>
This is not a bug. APEX maintains the original column order of the report. This avoids problems downstream in areas like the processing of <tt>g_fnn</tt> arrays in declarative tabular forms, where the assigned arrays are column-order dependent.
APEX 4.x fixes column ordering bugs that could lead to report corruption, and includes drag-and-drop column ordering in the new tree view in addition to the up/down arrow re-ordering.
If you really want column order to follow that in the source query, the workaround is to create a new report using the modified query. -
Dear SharePoint Developers,
Please help.
I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
I think this is a "sealed column", whatever that is, which is shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
I know when I set the column order in my custom Content Type settings page, it is correct.
But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
Can you help?
Please advise.
Thanks.
Mark Kamoski
-- Mark KamoskiHi,
According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
Drill down into one of them and you'll see the option under the list of columns for that content type.
To apply the column order in the NewDocSet.aspx page, you need to:
Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
Content Types section, choose Refresh all published content types on next
update.
Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
More information:
http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Is that important column order in a query with row_number function
Hi folks,
I am using Oracle 11g R2 on HP-UX machine.
I have 2 types of query with row_number and I think they are same but output of each of them are different. I changed only column order in query2.
Query 1 :
(SELECT
"LOOKUP_INPUT_SUBQUERY"."CONTRACT_SK" "CONTRACT_SK",
"LOOKUP_INPUT_SUBQUERY"."SIMCARD_SK" "SIMCARD_SK"
FROM (
SELECT row_number ()
OVER (
PARTITION BY "R_CON_SUBS_SIMCARD_LK".
"CONTRACT_SK"
ORDER BY
"R_CON_SUBS_SIMCARD_LK"."START_DATE" DESC,
"R_CON_SUBS_SIMCARD_LK"."SEQ_NUM" DESC NULLS LAST) /* EXPRESSION_3.OUTGRP1.SIRA */
"SIRA",
"R_CON_SUBS_SIMCARD_LK"."CONTRACT_SK" "CONTRACT_SK",
"R_CON_SUBS_SIMCARD_LK"."SIMCARD_SK" "SIMCARD_SK"
FROM "SRC_OZRDS"."R_CON_SUBS_SIMCARD_LK" "R_CON_SUBS_SIMCARD_LK")
"LOOKUP_INPUT_SUBQUERY"
WHERE ("LOOKUP_INPUT_SUBQUERY"."SIRA" = 1))
Output of this like that :
CONTRACT_SK SIMCARD_SK
1 1
1 3
1 4
1 5
1 6
1 11
1 12
1 14
1 15
1 16
Query 2 :
(SELECT
"LOOKUP_INPUT_SUBQUERY"."CONTRACT_SK" "CONTRACT_SK",
"LOOKUP_INPUT_SUBQUERY"."SIMCARD_SK" "SIMCARD_SK"
FROM (
SELECT
"R_CON_SUBS_SIMCARD_LK"."CONTRACT_SK" "CONTRACT_SK",
"R_CON_SUBS_SIMCARD_LK"."SIMCARD_SK" "SIMCARD_SK",
row_number ()
OVER (
PARTITION BY "R_CON_SUBS_SIMCARD_LK".
"CONTRACT_SK"
ORDER BY
"R_CON_SUBS_SIMCARD_LK"."START_DATE" DESC,
"R_CON_SUBS_SIMCARD_LK"."SEQ_NUM" DESC NULLS LAST) /* EXPRESSION_3.OUTGRP1.SIRA */
"SIRA"
FROM "SRC_OZRDS"."R_CON_SUBS_SIMCARD_LK" "R_CON_SUBS_SIMCARD_LK")
"LOOKUP_INPUT_SUBQUERY"
WHERE ("LOOKUP_INPUT_SUBQUERY"."SIRA" = 1))
Output of this like that:
2 874812
7 70097256
8 18734091
9 158024
10 815397739
13 22657919
19 83177779
20 82579529
22 5829949
23 35348926
25 3865978
I expected the second output, because there are lots of contract sk but there is one contract_sk in first query result. i did not get the point. What is the problem ?user8649469 wrote:
I changed only column order in query2.So what else do you expect? If you order, for example, by last name, fist name don't you think rows will be returned in a different order (and therefore same row will have different row number) than ordering by first name, last name?
SY. -
Column order in a select * query
Suppose I have 256 columns in a table and if I query select * from tablename ,what will the column order in the result.Will this be always same as order as in created statement?
If the columns were all in the original CREATE TABLE statement, then, yes, the ordering of columns in SELECT * FROM will match the order from the CREATE TABLE statement.
If columns were added after the initial create, then the original columns will come first (in their order) and then the added columns (in their order), etc.
In the real world, it is a very bad practice to use SELECT * and have expectations about the ordering of the columns. Consider this scenario:
Table T was created and implemented in production a year ago with columns A, B, C
A project started up three months ago and added column D but the project is stalled in development. So in development T had columns A, B, C, D
Later, another project started up and added columns E and F. Unlike the other project, it has progressed to Test. and Production. So in Development the table has columns A, B, C, D, E, F. In test and production the table has columns A, B, C, E, F.
Now that stuck project has progressed to Test and Production. Now T has columns A, B, C, E, F, D in test and production but still A, B, C, D, E, F in development.
Until someone notices and decides to fix it (where and how?)
Be very, very careful about using SELECT *. -
Column order in SQL Query (PL/SQL function returning a query)
Hi,
when I define a PL/SQL function returning a query inside a region, I often find that the column order is arbitrarily changed.
How do I enforce the column order ?
Bye,
FlavioI removed the 11th column called service_name from this dynamic query: and now the report says: report error:
ORA-01403: no data found. I messed around with the Headiuns Type. It was set to Custom. I changed it to Column Names. There is no difference.
I am not sure how to fix?
declare topqry varchar2(32000);
whereqry varchar2(32000);
finalqry varchar2(32000);
var_status varchar2(100);
division_status varchar2(50);
office_status varchar2(1000);
user_status varchar2(1000);
overdue_status varchar2(1000);
begin
if :P10_FALLBACK = 'All' then
var_status:= ' and vp.status in (''FA'',''FBA'',''FBI'',''25%'',''50%'',''90%'',''Closed'') ';
elsif :P10_FALLBACK = 'Active' then
var_status:= ' and vp.status in (''FA'',''25%'',''50%'',''90%'',''FBA'') ';
elsif :P10_FALLBACK = 'FB' then
var_status:= ' and vp.status in (''FBA'',''FBI'') ';
elsif :P10_FALLBACK = 'Closed' then
var_status:= ' and vp.status in (''Closed'') ';
elsif :P10_FALLBACK = 'Inactive' then
var_status:= ' and vp.status in (''FBI'') ';
end if;
if :P10_DIVISION = 'All' then
division_status:= ' and vp.vms_division in (''News'',''Ad Services'') ';
elsif :P10_DIVISION = 'News' then
division_status:= ' and vp.vms_division in (''News'') ';
elsif :P10_DIVISION = 'Ad' then
division_status:= ' and vp.vms_division in (''Ad Services'') ';
end if;
if :P10_OFFICE = '%' then
office_status:= ' and OFFICE_ID in (select office
from VMS_OFFICE_ACCESS
where user_id = lower(:P0_user) ) ';
else
office_status:= ' and OFFICE_ID in :P10_OFFICE ';
end if;
if :P10_LIMIT_USER = '%' then
user_status := ' and SALESPERSON in (select first_name || '' '' || last_name
from VMS_PROSPECT_users u
join vms_office_access o
on u.office_id = OFFICE
where o.user_id = lower(:P0_USER) ) ';
else
user_status:= ' and SALESPERSON in (:P10_LIMIT_USER ) ';
end if;
if :P10_SHOW_OVERDUE = 'Show' then
overdue_status:= ' and target_close_date <= sysdate ';
var_status:= ' and vp.status in (''25%'',''50%'',''90%'',''FBA'') ';
else
overdue_status:= ' and FIRST_APPOINTMENT between
nvl(to_date(:P10_FIRST_APPT_START, ''mm/dd/yyyy''),FIRST_APPOINTMENT) and
nvl(to_date(:P10_FIRST_APPT_END,''mm/dd/yyyy''),FIRST_APPOINTMENT) ';
end if;
topqry := 'SELECT OFFICE_ID ,vp.PROSPECT_ID ,ENTRY_DATE ,ACCOUNT , NEXT_CONTACT_DATE ,ACTION_STEP ,
TARGET_CLOSE_DATE ,vp.STATUS ,SALESPERSON ,vp.SALES_TYPE ,service_name , FIRST_APPOINTMENT ,MODIFY_DATE ,EST_ANNUAL_REVENUE ,EST_INCREMENTAL_REVENUE ,
pi.NOTES , pi.SALES_TYPE ,pi.STATUS ,Contact ,Origin_Source FROM VMS_PROSPECTING_ITEMS pi right outer join VMS_PROSPECTS vp on vp.PROSPECT_ID = pi.PROSPECT_ID left outer join VMS_SERVICES vs on vs.service_ID = pi.service_ID where 1 = 1 ';
whereqry := ' and (not exists (select *
from VMS_PROSPECTING_ITEMS i3
where vp.prospect_id = i3.prospect_id)
or exists (select *
from VMS_PROSPECTING_ITEMS i2
where i2.order_id = pi.order_id
and active = ''Y'' )) and instr(upper(ACCOUNT),upper(nvl(:P10_ACCOUNT,ACCOUNT))) > 0 ';
whereqry := whereqry || var_status || division_status || office_status || user_status || overdue_status;
finalqry := topqry || whereqry;
return finalqry ;
end; -
How to change the column order in the DB?
Hi all,
For example,
there is an employee database with the field names empno(1),empname(2), empphone(3), empaddress(4), empsal(5). the values in the brackets are the column order i.e., the order in which the column names are placed.
I have the details of the employee records in a .txt file and i have to upload the file with the same column order with some delimiter. I done it but in future if any one have the details of the employee details with some other column order i.e., empaddress(1), empsal(5), empno(3), empname(4), empphone(5)
how i can change the column order of the database ...
Thanx in advance...
Bye,how i can change the column order of the databaseYou don't. You specify the column order in you're insert.
PreparedStatement pstmt = conn.prepareStatement ("insert into EMP (EMPNO, ENAME) values (?, ?)");
pstmt.setInt (1, 1500);
pstmt.setString (2, "A Name");
pstmt.execute ();
Steve. -
Interactive report column order not working properly
Hi All,
Can anyone help me with this situation:
Example:
1)
First of all I created a interactive report with this simple query
Select 1 col_A, 2 Col_D from dual
2)Later I modified the query like this
Select 1 col_A, 1 col_C, 2 Col_D from dual
But when I run the report the new column added appear in the end?
I already tryed to reorganize the column order in the navigator menu, but the issue remains.
Any ideas?
ThanksHi,
Login to APEX builder. Run your page.
Select columns from report action menu and save default layout.
Regards,
Jari -
Datagrid Column Ordering from Recordset?
I often populate my datagrids with a recordset, an array of record objects, by passing the recordset in the dataprovider constructor. However, this results in unpredictable column ordering i.e. it doesn't correspond to the order of the fields in the record object. I know you can define the columns and then use add item to add the records to resolve this, but I'm curious why the datagrid doesn't order the columns according to the record object field order in the first place and why the order can actually change between renderings of the datagrid?
Thanks for the response. I understand the method to order the columns, I'm more curious why doing something like this:
var arr:Array = new Array();
arr.push({label:"item 1b", qty: 1});
arr.push({label:"item 2b", qty: 2});
var dp:DataProvider = new DataProvider(arr);
results in the columns being randomly ordered. It be nice if the data grid always produced columns in the order of
label qty
Its probably rooted in the fact a for..in loop doesn't get values from an object in a useful order either. -
Is there a way to change the order of the columns in the pop-up? They are in alphabetical order, and i would prefer they are in the order that they are in the table. All of the tools I have ever used with this feature are ordered by column_id. When I visualize a table, I also think of it by column_id with the PKEY being first, not in an alphabetical format. If there is not a way to change this, how would I go about getting a request to make it this way, or add the option?
Edited by: deep_tech_diver on Jan 15, 2010 9:38 AMI assume that it is the "completion insight" that I am talking about. We currently use PL/SQL Developer and have used other tools in the past that put it in the column order. I like the ability to see the order of the columns, especially with the PKEY being first without having to first describe the table. This allows me to do a quick adhoc query for someone without knowing what the actual spelling of the PKEY name, especially in legacy stuff that didn't follow standard naming conventions, or dealing with third party apps that have cryptic naming conventions where all the columns begin with the same two letters.
-
I need to migrate the existing reports from SQL Server Reporting Services to Crystal Report 2008, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to use a single template with a lot of parameters for all reports, my question is how I might use one template to create multiple reports with different column orders in the reports?
For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
Thank you!Sorry, the code was messed up in previous post:
Template:
<tr align="center" valign="top">
<td align="center"class="instructiontext">
<b>#MGR_NAME#</b>
<br><font size=-2>
#WORK_ROLE#</font><br><FONT class="smallBlack">
Directs: #DIRECTS# Total: #REPORTS#</font></td></tr> -
Hi,
I have a question about the column order in a Pivot Table in a WebI (xi r3.1) report
At the moment I have the following Pivot Table
|1 | 2
| Produced Water | Produced Oil | Produced Water | Produced Oil
Platform 1 | 2 | 3 | 4 | 5
Platform 2 | 3 | 4 | 5 | 6
I want to have the following pivot table instead
| Produced Water | Produced Oil
| 1 | 2 | 1 | 2
Platform 1 | 2 | 4 | 3 | 5
Platform 2 | 3 | 5 | 4 | 6
Is it possible to setup the above pivot table in a WebI report?
Many Thanks for any help,
Dirk JanDirk Jan,
That's a question regurlarly asked to me by users and the solution (as long as nobody is comming up with a better one) is to create variables for the measures for each month (using the WHERE operator).
So you need to define 12 variables (for each month) for Product Oil and Product Water (PO month1, PO month 2, ...., PW month 1, PW month 2 ....) using the formula (eg. PO month1):
=[Product Oil] Where ([month] = 1)
Then instead of a crosstab you build a table where you can put the variables in any order you want.
Regards,
Harry -
How can i give a parameter to user to select the column order in runtime
Select * from emp ;
in parameter form for i need to create a parameter so the user can select whatever the column order he required.
where is should write the order by clauseHi,
In Reports Use Lexical Parameter instead of Bind Parameter and write order by in After Param Form...
Here you find more details...
https://forums.oracle.com/thread/669325
Hope this will solve your issue..
Regards,
Soofi -
Hi
A user had 2 separate windows open for Customer Receivables Aging. She used a filter option on the one window which resulted in the column order in window 2 to become mixed up.
Now when you run the aging report it looks like this-
0-30, Future remittance, Customer Name, 120+, 31-60, 61-90, 91-120, Interest, Customer Code.......
The 'Form Settings' icon is greyed out for this window. Is there a way to reset this?
(Welcome to the wonderful world of SAP Business One users).
RegardsHi,
Whenever a user opens Aging Report two instances, then the columns of the other instance always display incorrectly.
It seems that the system behavior.
PS : Peter, please post a new thread for your query if it is unresolved as sometimes others cannot determine you asked a question or not (as this thread is closed).
If your user is facing this issue on a single instance then you need to log a SAP Support ticket to get it investigated.
Regards,
Jitin
SAP Business One Forum Team -
I'm working with an embedded db query that specifies columns
by name in the result set, i.e., no *. However, the order of the
columns in the result set seem to be quite random - or at least
dependent on which column is being searched. I'm showing the
results via "resultsGrid." How do I enforce a consistent column
order in query results?
Thanks,
AlWhat you describe boils down to a reinvention of materialized views.
Did you consider using them?
Sybrand Bakker
Senior Oracle DBA -
BUG: SQL Developer 1.5.3 CSV export column order broken
There's a bug in the 1.5.3 release of SQL Developer regarding data export. This bug re-orders the column order in the data export to be alphabetically sorted. This produces mangled CSV files if used on a table or a view.
This is a critical bug to me since I need to produce lots of ad-hoc data CSV export files. I'm staying with SQL Developer 1.5.0.53 (53.38) for now as it doesn't have this problem.
This is the same bug as present in Jdeveloper 11.1 as described in my post here: BUG: Jdev 11.1.1.0.0 -- DB table data export column order is not preserved
Quoted from that post:
When I connect to Oracle database, get the table list, right click on the table and select 'Export Data'->csv. The dialog box opens with three tabs: Format, Columns, Where. The column order displayed in both tabs Columns and Where is alphabetic. Because alphabetic ordering re-arranges columns from their initial ordering in the table, this screws up CSV export because columns are not in their intended order. This same problem occurs when I try to export data from views to generate a CSV file with a particular column order.
Please open/check bug report if it's already open.
Thanks!This happens with all of the export options for tables or views if you right click from the connections tab table list. If I pull it up in the main window and go to the data tab, I can then right click and it will keep the column id order for some of the views and tables. But not all.
I am running 1.5.3 Build Main 5783 on a Windows XP Professional Service Pack 3 platform
Maybe you are looking for
-
How to connect hdmi cable on hp g60 to sony bravia lcd?
how to connect hdmi cable on hp g60 to sony bravia lcd?
-
How can i set the resolution on my imac ''27 in to 1024*768?
hello, i'm new to imac how can i set the resolution on my imac ''27 in to 1024*768? its only gives me to options 1- 1280*720 2-800*600 thanks
-
Task assignment adapter - dynamic route to either group or user
I have configured an approval process in design console and I want to be able to dynamically route the approval request to either the target user manager OR a group. I have written logic/code to automatically determine what group or user to route the
-
How to set Selected Value in InputSelect
Hi, I have implemented InputSelect component from the BC4J, and the items(attributes) are retrieved and updated to the table correctly. However,there's an additional item, "None" appeared in the menu-list. I didn't insert any item of the value of "No
-
Experts - Please advise. My query accepts user entry for a fiscal week range - a from value and a to value. I am currently using a variable with range for this query. Now, the problem is that the user does not want to input the company's fiscal week.