Physical Column Order
Is there a way to influence the physical column order when generating objects for an Oracle 11g database? It looks like the DDL that is generated has the columns in a random order. Even though I order the columns in the way I want on the columns tab of a table, when I click the review tab, the DDL generated seems to ignore any ordering I try to establish. I am using PowerDesigner 16.5 SP02. Do others see this behavior?
Hi,
I'm using 16.5. SP03 PL2 and when I create a new table with a some columns and change the order I can see the changes in the Preview tab and when I do "Generate Database" the DDL is right as well.
br
Stefan
Similar Messages
-
Business Layer:Physical Column Mapping-Brackets are removed
Hello,
I use the expression builder to add a formula to the physical column mapping but every time I click OK the brackets are removed.
Is this a bug?
e.g. this:
IFNULL("test".""."et"."V_W"."NUMBERS", 0) *
IFNULL("test".""."et"."V_W"."WEIGHT", 0)
+
IFNULL("test".""."et"."V_WHT", 0) - IFNULL
("test".""."et"."V_W"."ULDT", 0)
turns into:
IFNULL("test".""."et"."V_W"."NUMBERS", 0) *
IFNULL("test".""."et"."V_W"."WEIGHT", 0)
+
IFNULL("test".""."et"."V_WHT", 0) - IFNULL
("test".""."et"."V_W"."ULDT", 0)
Hence the multiplication (ok the above is simplified) happens in the wrong order...Hi Metalray,
This is expected behaviour, though I am not sure why. You can usually get round it by bracketing the other parts of the expression as well, or possily putting the whole thing in brackets. I don't believe there is hard and fast rule about what does work, but I know one can usually get round, you will just have to experiment, sorry.
Regards
Ed -
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 *. -
How to apply time series function on physical columns in OBIEE RPD
Hi,
I know a way to apply time series function(Ago and ToDate) by using existing logical columns as the source. I have set the chronological key and created time dimension. In the expressiion builder for the same Time Dimension appears at the Top so that we can use its level.
But I couldn't apply a time series function when i have to create a logical column using physical columns. In the expression builder for the same, Time dimension does not appear in the list. Neither can i use any column from the time dimension. Please let me know a way to do it.
Thanks.Time series functions are - by design and purpose - only valid for derived logical columns and not useable inside physical mappings.
If you want / need to do it on a physical level, then abandon the time series functions and do it the old-school way with multiple LTS instances. -
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; -
Multiple report fields from single physical column.
Hi Experts,
I have a physical table like below. Multiple records for a single customer id. The no of Address_type may increase in future.
Customer_id Address_Type Address
101 Primary abcdefgh
101 Secondary 234oij3mb4
101 Billing mdmnweoij4
102................etc.
My Requirement on OBIEE is to display report as below.
Customer_ID, Primary_Address, Secondary_Address, Billing_Address.
101 abcdefgh 234oij3mb4 mdmnweoij4
Multiple report fields ( Primary_Address, Secondary_Address, Billing_Address ) are derived from same physical column ADDRESS.
I tried to duplicate the Address column on the report thrice and added conditions like Address_Type = Primary/Secondary/Billing for those three fields respectively.
But only of the field is getting correct data and rest of duplicate columns are null.
Tried FILTER function on OBI Answers, but the function fails saying it should be used only on measures.
Thought the alternative would be to define multiple logical columns at BMM layer. Created multiple alias for same table at physical layer and correspondingly created LTS for each on a single logical table. Defined Fragmentation/Where conditions.
LTS1 - Address_Type = PRIMARY
LTS2 - Address_Type - SECONDARY
LTS3 - Address_Type - BILLING
Created multiple logical columns from each LTS like Primary_Address, Secondary_Address, Billing_Address from LTS1, LTS2, LTS3 respectively.
This time, am getting data for all the fields on the report but getting cartesian result.
Can someone guide me whether my approach is correct or any other alternate best approach to achieve the desired result.
Note: I have the data Address on multiple physical rows for a customer, rather Not in a single row. which is causing me problem.
Thanks...
Ramchand.Hi Srini VEERAVALLI,
I have lot many other fields in the same report coming from other tables.
Does the Pivot table option for above mentioned Address fields affect other columns?
If Yes, Can there be any other alternative? Am thinking of Opaque View at Physical layer to bring all Addresses on a single row.
Thanks...
Ramchand. -
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
Maybe you are looking for
-
Additional Files in Sender File Adapter
Hi I have to collect 2 files (IN.txt, IS.txt) and attach 2 files as an attachment to mail. So I opted Additional Files in Sender File Adapter Source Directory = D:\usr\sap\pitest\LoadTest\Output\Invoice File Name = IN.TXT Additional Files File List <
-
My phone keeps coming up not connected to wifi what can i do?
phone keeps coming up not connected to wifi what can i do?
-
Help with Business Catalyst Web forms and Adobe Muse.
I created a websform to log into a secure zone using business catalyst. I pasted the webform's html into Adobe Muse. After publishing my site. The websform I created in business catalyst is deleted, but I can see all of the forms that I created using
-
Possible to edit action script permanantly from outside of flash?
More specifically is it possible to permanantly add strings, for instance, to an array using an input text field and having that text field push the text into the array?
-
Photoshop CS3 Batch Action Delimma
I've run into a problem recently with batching actions in CS3 to process vector files like ai or pdf. I record the open step to set import preferences then select override action "open" commands, but the program opens the image with the name of the