How to reorder columns in af:query??
I have certain search fields in af query and I want to reorder them.I tried changing the order of the attributes in the view object but that dint help.Creating the VO all over again is the only solution???
Any suggestions pls?
Thanks,
Swathi
You can achieve this by following the below steps
1) Open your view object
2) Go to Attributes tab on the left hand side
3) Click on set source order button.
There you can change the order of the attributes.
Thanks.
Similar Messages
-
How to reorder columns in JTable between sessions without serialization?
I have a situation where the column widths and names of a JTable are saved to DB(there is no serialization). Upon starting a new session, the JTable needs to be displayed with reordered column.
For example, let us say the default JTable has columns as A, B, C, D ...
The user rearranges the columns to B, A, D, C....
How do I tell JTable model to not use the default but the new values? Is serialization the only way?
Here is some sample code I use to set the widths. But what I really want to do is reorder columns by reading their names.
Thanks for your help
for(int i=0;i<count;i++) {
int width=(int)(ttsDefaults.getColumnWidth(i)*
DesktopEnvironment.getInstance().getDesktopRootFrame().getWidth());
sumWidth+=width;
treeTable.getColumnModel().getColumn(i).setPreferredWidth(width);
//treeTable.getColumnModel().getColumn(i).setWidth(width);
}Hi Jules,
You need a user with XDBADMIN rights to access the WebDav. Once you have access, you can open the URL as webfolder (in IE).
Regards,
Christian -
How to reorder columns in IR detail?
Apex 4.1.1. Theme 4
I added a new column for an IR. This column is last in the details view. The detail view has the same order of columns as they appear in the developers view.
I want this column to be the first. How can I reorder the IR columns (developer view!)? I do not talk about the columns how they are shown in the normal IR reports view. This can be easily changed.Sven W. wrote:
Does nobody has an idea?
"It is not possible" would also be an answer. I just have the impression that I overlook something simple.Sven,
You can edit the interactive report > report attributes > Detail View
here you will see some sort of html code that defines the template which you can order to display how you want
for example I have the below code to display two columns Ename and Job..etc so you can easilay switch them around
<tr>
<td align="right">#ENAME_LABEL#:</td><td>#ENAME#</td>
<td align="right">#DEPTNO_LABEL#:</td><td>#UPDATED#, #DEPTNO#</td>
<td align="right">#SAL_LABEL#:</td><td>#SAL#</td>
</tr>
<tr>
<td align="right">#TEST1_LABEL#:</td><td>#TEST1#</td>
<td align="right">#JOB_LABEL#:</td><td>#JOB#</td>
<td align="right">#DEPTNO_LABEL#:</td><td>#DEPTNO#</td>
</tr>
<tr>
<td align="right">#EMPNO_LABEL#:</td><td>#ENAME#</td>
<td align="right">#ENAME_LABEL#:</td><td colspan="2">#ENAME#</td><td align="right">#HIREDATE_LABEL#:</td><td>#HIREDATE#</td>
<td><br /></td>
</tr>
<tr>
<td align="right">#MGR_LABEL#:</td><td colspan="6">#MGR#</td>
</tr>
<tr><td colspan="8"><hr /></td></tr>See this example https://apex.oracle.com/pls/apex/f?p=46417:30
Hope this helps
Edited by: VC on Sep 21, 2012 4:36 PM -
How to reorder columns and make all labels appear?
I have a chart in my 2008 R2 report:
I want to reorder these programs in alphabetical order and I want to display all programs. In the image above, see how only some of the program labels appear?
Here is some sample table data:
create table sample_programs
program_name varchar(25),
LOS int,
people_id int identity(1,1)
insert sample_programs values('transitional living',50),('educational services',65),('Residential Treatment', 77),
('Regular Foster Care', 23)
And the SSRS Chart Value expression:
=Sum(Fields!program_los.Value) /
(CountDistinct(Fields!people_id.Value))
Where program_name is the Category group.
Ryan DHi Ryan,
To reorder those programs in alphabetical order on the chart, we can add a sorting in the Category Group as below:
Sort by: [program_name] Order: A to Z
In your scenario, not all the categories (programs) are displayed. By default, auto fit property determines the interval of horizontal axis labels. In order to display all the programs, please try changing the interval to 1 will force the axis to display
all categories. For more detail, please refer to the similar thread below:
http://social.msdn.microsoft.com/forums/sqlserver/en-US/68d79bb7-9564-4d6a-8a46-9d0ca83e435d/ssrs-2008-chart-does-not-show-all-yaxis-data-labels
Please let me know if you have any questions.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
How Can i add "DateDiff(day, T0.DueDate" as a column in this query?
How Can i add "DateDiff(day, T0.DueDate" as a column in this query?
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > [%1]) AND T0.RefDate <= [%1] AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
As you mentioned not possible to assign the dynamic column in the query.
will give you example for generate a dynamic column name in SQL query, using this example you can achieve your requirement.
DECLARE @cols AS NVARCHAR(MAX),
@query AS NVARCHAR(MAX)
select @cols = STUFF((SELECT distinct ',' + QUOTENAME(C.Name)
from [History]
FOR XML PATH(''), TYPE
).value('.', 'NVARCHAR(MAX)')
,1,1,'')
set @query = 'SELECT [Date],' + @cols +'
from
select [Date], Name, Value
from [History]
) x
pivot
max(value)
for Name in (' + @cols + ')
) p '
execute(@query) -
How to return Parameters values as a column in a query?
Hi All,
I have number of parameters in a report.
I need to return its interred values as a column in a query to use this column in a chart.
I want this column to be the second one in this query:
SELECT ROWNUM
FROM ALL_OBJECTS
WHERE ROWNUM <= 10
That is if there is any way to use these parameters directly as a column in the chart no need for the previous statement.
Note: I am using Reports 6iDear sir
You can enter parameter as column in query like
select :parameter p1, &hexadecima_paramataer p2, empcode
from emps;
that query make parameter as query column .
&hexadecimal paramater can refer to database column of table emps
and :paramater can refer to static string -
How to implement 'Quick Select' column in a query result table?
Hi,
I have a requirement in OAF to design a search page with 'Quick select' column.
One of the column in the query result table should be a quick select.
Once user clicks on the quick select column, we have to navigate back to the previous page with the row value selected.
Can anyone help me in this.
Thanks.Also refer the search exercise in the toolbox tutorials.
you can implement the quick search in the same way as update and delete buttons.
--Prasanna -
How To Concatenate Column Values from Multiple Rows into a Single Column?
How do I create a SQL query that will concatenate column values from multiple rows into a single column?
Last First Code
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14
Result should look like:
Last First Codes
Lesand Danny 1,2,3
Benedi Eric 7,14
Thanks,
David JohnsonStarting with Oracle 9i
select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
from
(select last, first, code, row_number() over(partition by last, first order by code) rn
from a)
connect by last = prior last and first = prior first and prior rn = rn -1
start with rn = 1
group by last, first
LAST FIRST CODES
Lesand Danny 1,2,3
Benedi Eric 7,14Regards
Dmytro -
Multiple Key figure in a single column of a query
Hi,
Is it possible to use muliple key figure like Amount and Qty field together in a column of a query?
Please advise,
Best Regards,
URHi,
You will be able to do it with the help of cell definitions.
Say,you have a structure in Rows :
A
B
For A ..in corresponding column cell,use cell definition with KF1
For B.....in corresponding column cell,use cell definition with KF2
this way,you will be able to see both in one column
I m not sure how much it is relavant to your requirement.But this is one way of gettin it -
How to pass column name as a values from one page to another
hi
i have created a report(pivot) from a table
SQL> SELECT * FROM T;
C1 C2 C3 D SEQ
A AA 2 1
A AB 3 2
A AC 2 3
B AB 5 4
B AC 6 5
SQL> SELECT C1
2 ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
3 ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
4 ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
5 ,SUM(C3) FROM T GROUP BY C1;
C1 AA AB AC SUM(C3)
A 2 3 2 7
B 5 6 11
SQL>
my requirement in Apex is like this(reverse)
eg-
when i click on cell values '2' then,it should return
C1 C2 C3 D SEQ
A AA 2 1
{quote}how to pass column name as a values from one page to another
for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
Report
Amuthanks for your reply
i 'm doing what exactly you mention here .
my problem here is
i have 15 columns
i am executing a query based on the values of the column(column name) in the target page
1)here i am passing(all) the column values to the next page-but i want to pass only one column values(column name)
when i click on any cell of that column
OR
2)i can pass all column name to target page -there(in the target page) i can filter out
i think option 1 would good if you filter out the unwanted columns
Regards
Amul -
Hello,
In a BW query, I need to add a column of text comments (for example, the description of a calculation, the unit used, ...). These texts are static, the queries will only be used as static reports (download scheduler), in excel and web, so we can not use any VB script.
Is it a way to add some text in a cell of a column, as in the following example (columns 2 and 3) ?
KF1 | Comment for KF1 | Euros | 12
KF2 | Comment for KF2 | % | 47
Thanks in advance
MichaëHi guys,
finally how you fix this problem?, I need to show a comment in a query column and i don't know if this is posible ¿?, I have a query inside of a wad and I want to show a comment in the columns of the query with the formula details.
Please let me know if you this is possible.
Thanks!, Kinds Regards -
Hi All,
I was wondering how to pass text in MDX query.
Below mentioned is my sample query and it is working fine.
SELECT
{[Measures].members} ON AXIS(0),
NON EMPTY [0MATERIAL].[LEVEL01].MEMBERS
*[0DOC_NUMBER].[LEVEL01].MEMBERS ON AXIS(1)"
FROM [$ZTEST]"
WHERE {[0MATERIAL].[000012345]} ";
But in data base 000012345 consists of material name as Pepsi
Now based on Pepsi I want to fetch results? Is it possible?
Thanks in advance.Srinivas,
So you are using JAVA, if you consult the developer's guide there is a section specifically addressing your question the ResultSet API should handle this via the formatted
<b>Retrieving Result Sets
ResultSet API</b>
Note that the concept allows for more than two axes, however a two-dimensional, table-like data set makes the
example easy to illustrate. On the columns axis, two members (Store Cost and Store Sales) of the measures
dimension have been selected; on the rows axis, three members (Berlin, Hamburg, and Munich) of the City level
of a geographical hierarchy. The dataset has six cells:
Cells provide four mandatory properties:
Value supports all common column types, for example:
o numeric types
o dates
o time values
o strings
o null
Data type int value describing the data-type (see java.sql.Types)
Status state of the cell (for example, error or null)
<b> Formatted value a string representation of value</b>
You can retrieve text in this manner.
Do you want to be able to pass text as if it were a value as well?
Cheers,
Scott -
How to put distinct in the query
Hi all,
How to put distinct in the query.I checked in RPD , Distinct supported is already available. I marked the distinct check box in advance option still then i'm not getting distinct in the query.
any idea , please help...In the RPD i have join between base table and view .i'm selecting 2 columns one from base table and other from view . which gives cartesian product . to avoid that i want to put distinct . I'm not using any measure . I'm taking direct columns.
I'm getting distinct keyword if i'm accessing the report directly . but when i'm accessing it from dashboard in the back end while preparing the query it's writing distinct but the actual query which is sending to db does not have distinct.
==================================================
RqList distinct
VW_SCNR_114000074_TA_DATA.Match Identifier as c1 GB,
VW_SCNR_114000074_TA_DATA.Tot Trans Amt as c2 GB,
VW_SCNR_114000074_TA_DATA.Tot Trans Ct as c3 GB,
case when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '1' then 'Productive' when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '2' then 'Non Productive' else 'Indeterminate' end as c4 GB,
VW_SCNR_114000074_TA_DATA.Batch Identifier as c5 GB
DetailFilter: Alert TA Data.Run Id > 0 and Alert Scenarios.Scenario Name = 'ScnroName' and Alert TA Data.Batch Id > 0
OrderBy: c4 desc
=================================================
-------------------- Sending query to database named KYC1.1DEV-179 (id: <<16315>>):
select T353.BATCH_ID as c1,
case when T353.QLTY_RTG_CD = '1' then 'Productive' when T353.QLTY_RTG_CD = '2' then 'Non Productive' else 'Indeterminate' end as c2,
T353.TOT_TRXN_CT as c3,
T353.TOT_TRXN_AM as c4,
T353.BREAK_ID as c5,
T117.SCNRO_NM as c6
from
KDD_SCNRO T117,
KDD_TA_DATA T130,
KDD_TSHLD_SET T171,
VW_SCNR_114000074_TA_DATA T353
where ( T117.SCNRO_ID = T130.SCNRO_ID and T117.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T353.SCNRO_ID and T130.TSHLD_SET_ID = T171.TSHLD_SET_ID and T171.SCNRO_ID = T353.SCNRO_ID and T171.TSHLD_SET_ID = T353.TSHLD_SET_ID and 0 < T130.BATCH_ID and 0 < T130.RUN_ID ) -
How to know columns and table name whose column size are modified
Hi guys
I want to know which all columns in the tables are modify
i.e. list of columns and table name whose column size are modified
Step1 :
CREATE TABLE employees
( employee_number number(5) ,
employee_name varchar2(50) ,
department_id number(10)
CREATE TABLE Supplier
( Supplier_number number(5) ,
Supplier_name varchar2(50) ,
CREATE TABLE customers
( customer_id number(10) not null,
customer_name varchar2(50),
address varchar2(50),
city varchar2(50),
state varchar2(25),
zip_code varchar2(10),
Step2 :
Alter table employees
MODIFY employee_number number(10)
ALTER TABLE supplier
MODIFY supplier_name varchar2(100)
step3
query to dispaly
columnname table name
employee_number employees
supplier_name supplier
How to know columns and table name whose column size are modified
could you please provide query
Thanks in Advance09:35:50 SQL> desc dba_objects
Name Null? Type
OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(19)
CREATED DATE
LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
NAMESPACE NUMBER
EDITION_NAME VARCHAR2(30)LAST_DDL_TIME can be utilized -
Set Column width in query (not using SQL*Plus)
How can I Set Column width in query
I understand you can set column width using
column col1 FORMAT A5
select col1 from table1;But this only works in SQL*Plus
I want to be able to do this in a regular SQL query window (not in SQL*Plus), how can I do it.....
I am using a 'SQL window' in PL/SQL Developer IDE
and when I use this syntax it says:
ORA-00900: Invalid SQL statement
Any suggestions are appreciated...
thanks,
M.Did you try using RPAD or LPAD functions? They fill the unfilled part of a string with character you provide... either on right or left side depending on what function you use.
e.g.
SELECT RPAD('Smith', 10, ' ') Name FROM dual;http://www.adp-gmbh.ch/ora/sql/rpad.html
Edited by: Zaafran Ahmed on Nov 10, 2010 11:50 AM
Maybe you are looking for
-
How to show dependency Arrrow in Project Gantt chart ?
Hi, I have a requirement in which I need to show a Gantt chart showing Project and corresponding task of it. If Say Task2 is dependent on Task1 then I need to show an arrrow between these two tasks showing the dependency direction. But in my prototyp
-
After I upgrded to iOS 5, the category of other is taking up 15.3 GB of space. Prior to the upgrade, I had approx. 15GB of free space on my 64 GB iPad. My concern is that the only solution to this problem that occurred from the "upgrade" is that I
-
In URM, pending event and pending vital review notifications sent
In URM, there is a workflow that I created that notifies the author at the time of check in. Approvals required are zero, so it just is a notification with no approvals necessary. The next notification comes when a custom metadata date field matches
-
My Server appears to have many connections to the router?
When I look at a map of the network on my router, the server appears to have two IP Addresses and many, many connections. Most things are working okay, but there is a problem resolving domain names. I can RDP to the server with the IP address but not
-
PDF Imbedded Title and Search Results
I am in the process of developing a intranet search and have come up against a problem with PDF files. The embedded title is delivered up as the link in the search results. Most of the PDFs we link to are created outside our department, so the embedd