How to show next set of columns in a adf table
hi,
i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the next and previous set of columns. i dont know how to do this. please help me.
parameswaran
You have to put table name in Capital letters
Like
SELECT COUNT(1)
FROM user_tab_columns
WHERE table_name = 'EMP';
or
SELECT COUNT(1)
FROM user_tab_columns
WHERE table_name = UPPER('Emp');Regards
Arun
Similar Messages
-
How can I add a new column in compress partition table.
I have a compress partition table when I add a new column in that table it give me an error "ORA-22856: CANNOT ADD COLUMNS TO OBJECT TABLES". I had cretaed a table in this clause. How can I add a new column in compress partition table.
CREATE TABLE Employee
Empno Number,
Tr_Date Date
COMPRESS PARTITION BY RANGE (Tr_Date)
PARTITION FIRST Values LESS THAN (To_Date('01-JUL-2006','DD-MON-YYYY')),
PARTITION JUNK Values LESS THAN (MAXVALUE));
Note :
When I create table with this clause it will allow me to add a column.
CREATE TABLE Employee
Empno Number,
Tr_Date Date
PARTITION BY RANGE (Tr_Date)
PARTITION FIRST Values LESS THAN (To_Date('01-JUL-2006','DD-MON-YYYY')),
PARTITION JUNK Values LESS THAN (MAXVALUE));
But for this I have to drop and recreate the table and I dont want this becaue my table is in online state i cannot take a risk. Please give me best solution.Hi Fahed,
I guess, you are using Oracle 9i Database Release 9.2.0.2 and the Table which you need to alter is in OLTP environment where data is usually inserted using regular inserts. As a result, these tables generally do not get much benefit from using table compression. Table compression works best on read-only tables that are loaded once but read many times. Tables used in data warehousing applications, for example, are great candidates for table compression.
Reference : http://www.oracle.com/technology/oramag/oracle/04-mar/o24tech_data.html
Topic : When to Use Table Compression
Bug
Reference : http://dba.ipbhost.com/lofiversion/index.php/t147.html
BUG:<2421054>
Affects: RDBMS (9-A0)
NB: FIXED
Abstract: ENH: Allow ALTER TABLE to ADD/DROP columns for tables using COMPRESS feature
Details:
This is an enhancement to allow "ALTER TABLE" to ADD/DROP
columns for tables using the COMPRESS feature.
In 9i errors are reported for ADD/DROP but the text may
be misleading:
eg:
ADD column fails with "ORA-22856: cannot add columns to object tables"
DROP column fails with "ORA-12996: cannot drop system-generated virtual column"
Note that a table which was previously marked as compress which has
now been altered to NOCOMPRESS also signals such errors as the
underlying table could still contain COMPRESS format datablocks.
As of 10i ADD/SET UNUSED is allowed provided the ADD has no default value.
Best Regards,
Muhammad Waseem Haroon
[email protected] -
How to show the filter and sort capabilities in adf dynamic table
hi
how to show the filter and sort capabilities in adf dynamic table..
Pls help meHi
Click on a colum in your table and go to the properties pallet
make true the sortable property then you can sort the table according to that column
Thanx
Padma -
How to find the number of columns in an internal table DYNAMICALLY ?
Hi,
How to find the number of columns in an internal table DYNAMICALLY ?
Thanks and Regards,
saleem.Hi,
you can find the number of columns and their order using
the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = sy-repid
changing
ct_fieldcat = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
now describe your fieldcat . and find no of columns.
and their order also..
regards
vijay -
How can I add a new column to an Attachments Table
How can I add a new column to an Attachments Table??
And I want to remove the usage column also!
Thanks!I tried to remove the usage column doing this:
OAAttachmentTableBean attachTable = (OAAttachmentTableBean)webBean.findChildRecursive("attachTable");
if (attachTable != null)
attachTable.findChildRecursive("UsageTypeColumn").setRendered(false);
but I'm getting null pointer exception on "UsageTypeColumn"...
:( -
Set the column name of a table in a list box
is there any code to set the column name of a table in a list box at oracle devloper 6i?
pls help.I dont want to go for pl/sql . It should work any table.You want Dynamic SQL without using PL/SQL? Tricky. I'm sure there's a possible way using some very complex and convoluted XML functionality of SQL but in reality you are asking for something that isn't natural to SQL queries, especially if you are expecting a dynamic number of columns to be produced for each row of data. SQL expects a table structure, including output formats, to be a defined number of columns with any number of rows, not a defined number of rows with any number of columns.
Perhaps if you explain why you need this sort of functionality then we may be able to offer a better solution.
;) -
How to copy FDM setting (import format, dimension mapping, control table)
Dear All,
How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
Thanks your helpIf you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
Sub MapExtractor()
'UpStream WebLink Custom Script:
'Created By: SatyaK
'Date Created: 12/08/09
'Purpose: This Script will produce a Account Map File for
' the current location.
'Execute the export
strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
End Sub
------------- -
To display the columns in a adf table dynamically
hi,
i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the according columns. i dont know how to do this. please help me.
parameswaranrepost
-
Issue with the last column stretching in ADF table
There is an issue wherein when I try stretching the last column of the ADF table to reduce its width it does stretch. But whenever I try stretching it back to this original position it doesn't despite having columnstretching attribute set to multiple and assign widths in percentages to columns . When I set the columnstretching attribute to none, the last column does stretch back and forth but on page load the table does not stretch to its full width despite having styleClass="AFStretchWidth". Now I dont want to be assigning fixed width in pixels to the columns. I would want the last column to stretch back and forth with columnstretching="multiple" and styleClass="AFStretchWidth". I see the same issue on components demo page as well. Tag Guide
If you are trying that each column gets equally stretched based on the browser, its not possible as adf doesn't supports that.
If your table is not stretching use styleClass="AFStretchWidth".
But if all your columns are not stretching you can only try setting column widths + columnStretching property (where you can specify which column to stretch to fill all the spaces)
Amit -
Search for any text in column filter on adf table
Hi,
I have column filter on adf table where I can search for any text starting with by default.
For e.g. you have data my name is sam you can search on table column filter by my and you get the results my name is sam
but I want to search by any word let's say sam and I want to display same result.
Thank you,
Savan Shah.You probably can use wildcards (% and _ )
for example %my%
Dario -
How to eliminate select message after Radio button in ADF tables
how to eliminate select message after Radio button in ADF tables
example <f:facet name="selection">
<af:tableSelectOne>
</af:tableSelectOne>
</f:facet>
output:
radobutton select
radiobutton select
please help me regarding this issue.Hi,
this usually has a text String in the header saying "Select and .." which can be changed through the property inspector for the TableSelectOne component
Frank -
How to set initial column widths for a table
What I'd like to do is to control the initial column widths for a table.
I'm building the table by using a class which extends AbstractTableModel. This class takes care of setting the headers and reading the data for the table.
If I do the following:
VarTableModel vtm = new VarTableModel(vi);
JTable jt = new JTable(vtm);
JScrollPane jsp = new JScrollPane(jt);
frame.getContentPane().add(jsp);
frame.setVisible(true);
I will see a table in my window. The widths of the columns are equal and are a function of the horizontal dimension of the window.
I have tried to set the width of a column by doing the following:
TableColumn aColumn;
aColumn = jt.getColumn(vtm.getColumnName(0));
aColumn.setWidth(40);
But this has no effect on what gets displayed. I can force the widths that I want by using 'setMaxWidth' but this has the unfortunate side effect of not allowing the user to make the column wider if they want.
What I'd like is a way to specify the widths of the columns when initially displayed and then let the user adjust to their liking.
I'm sure that there is a way to do this, but I don't seem to understand where to intervene in the process to produce the effect that I want.
Any help or suggestions will be greatly appreciated!Table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
add this line and try ur codeThanks for the suggestion! Unfortunately, it doesn't seem to do the trick. Here is an abbreviated segment of my code:
vtm = new VarTableModel(vi);
JTable jt = new JTable(vtm);
// we want a horizontal scrollbar, so turn resizing off
// and we want to control column widths
jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
aColumn = jt.getColumn(vtm.getColumnName(0));
aColumn.setWidth(40);
. // same kind of thing for each column
aColumn = jt.getColumn(vtm.getColumnName(4));
aColumn.setWidth(400);
JScrollPane jsp = new JScrollPane(jt);
frame.getContentPane().add(jsp);
frame.setVisible(true);
If I do the above, the table gets displayed with each of the five columns the exact same width. So, the sizing of the columns is happening somewhere else despite turning auto resizing off.
Where is that occurring and how can I intervene so that I can control the widths of the columns on initial display and still allow the user to adjust the widths if they so choose? -
How to show next instance of Recuring Event in Calendar List View
We have a calendar that we are using to display upcoming events. However we are unable to get a clean output of next instance date for recurring events such as paydays or monthly meetings. As opposed to showing next instance it shows the date
the event was originally put in the calendar.
I am guessing it will take a custom script, but I don't even know where to begin with that.Hi Swen,
According to your description, my understanding is that you want to display the recurring events as separated events in the calendar list view.
I recommend to create a Standard View, with Expanded Recurring Events for the calendar list,
and each instance of a recurring event will be showing in this view.
More reference:
http://office.microsoft.com/en-in/sharepoint-server-help/create-change-or-delete-a-view-of-a-list-or-library-HA102774516.aspx#_Toc337729214
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to Show Different set of Blob images in every page
Hi i am using Crystal Report Server XI RAS Embedded Edition to built Dynamic Reports.
Now i have two datasets
1. Main query with imageid field
2. list of image blobs.
this two datasets are linked with imageid field and binded to ReportClientDocument.
i have to show different image fields in every page of the report. this images are differ in width and heights.
i am able to show a single constant image field object from blob database field.
but i could not able to find the solution to show different set of multiple images in different pages of the report.
is there any formulas can be written or kindy give me a solution to achieve this.
Regards,
Padmanaban V
Edited by: Padmanaban Viswanathan on Mar 15, 2010 11:59 AMSee RAS samples [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples]. Look for "NET-CS2003_RAS-Managed_BE115_Add_Image" or "NET-VB2003_RAS-Managed_BE115_Add_Image-From-File".
Ludek -
How to set default sorting order in ADF Table
Hi,
I want to set the default sorting order as ascending in adf table. Please help me regarding how can we do it.
Using JDev 11.1.1.5.0Hi Frank,
Thanks for the quick reply.
I have done binding of table with list of pojos.
The Class for which Data control is created is as:-
public class DemoDC {
private List<TableEntity> tableList =
new ArrayList<TableEntity>();
public List<TableEntity> getTableList() {
return tableList;
public void setTableList(List<TableEntity> tableList) {
this.tableList = tableList;
where TableEntity is a pojo which has all the columns as its attributes.
Now when i do the above steps , after clicking on pencil icon and seecting the iterator name in the iterator tab (DemoDC-> tableList) , and selcting the 'sort criteria' tab when i select a column and try to set the sort order I get error as ' Iterator can not be created for the selected node ' .
Maybe you are looking for
-
Elements do not show up in edge file but they do in HTML file; no errors occured
I am a senior in college working on building a website for a fictional company for a year-long thesis graphic design project. In my class last semester, I learned how to use Edge Animate and created an 11 page website without any trouble. I had alway
-
"Storage is not configured" during failover - COH-1467 still not fixed?
I am runing a test program using two cache nodes and one "client JVM", all on the same machine (the first cache node is used as WKA). When I kill one of the cache nodes and the restart it again I get the following exceptions: In the surviving cache n
-
When am i going to get my iphone 6?
I ordered my iphone 6 on october 16 at the verizon store and havnet heard one thing. i checked my order status and it says that its in process and the ship date is not avalible at this time.Before it use to say that my ship date was on november 7.
-
MacPro keeps crashing... Unable to send Problem Reports to Apple.
In the ever-continuing saga of getting my MacPro to work under Leopard, this keeps happening.. Everytime I have to Force-Quit something and it generates a report I get this message. Safari crashes, System Profiler crashes, almost every application se
-
SQL query to fetch the catalog category for a PLM item
Hi All, Can anyone help me with a sql query of how we can fetch the catalog category for a PLM item. Regards, Shruti