Get the arrow on column header data table
<t:commandSortHeader columnName="spclMngmtAreaNm" arrow="true"
immediate="true">i am using <t:commandSortHeader with t:dataTable ,
when form intialize this arrow on datatable not showing.
when i click on column header only showing arrow .
how to show arrow on datatable column by form inilize.
thanks
siva
The easiest way to do this: set a default value for the sort column in your backing bean.
Example:
private String sortColumn="firstName";
public String getSortColumn() {
return sortColumn;
<t:dataTable sortColumn="#{yourBean.sortColumn}" ... />On page load, the arrow is set by default to the firstname column.
Best Regards,
Dimi
Similar Messages
-
Need Get the count of Columns Of a Table!!!
hi every one just simple question need help regarding the way to get the row count of a particular column and place the number of rows for Ex:if we have 5 rows then I have to place this 5 in a JList means having order as 1,2,3,.. one by one,anybody please help me out how it can be done
JList list = new JList();
String[] arr;
int columnCount;
while(rs.next()){
// what should I have to write here
list.add(arr);// Is this the correct way to add to the JList
i think it is a bit wrong but do help me out how it can be done
thanking you,
with regardsi think using getmetadata content may help
-
Join query to get the constraint type ,column type and table name
Hi ,This is my query
select
table_name , column_name from user_cons_columns where table_name='EMP_CLASS'
table_name column_name
emp_class empno
emp_class deptno
select constraint_type,table_name from user_constraints where table_name='EMP_CLASS'
constraint_type table_name
p emp_class
u emp_class
I need query for this out put combining above two query.
constraint_type column_name table_name
p empno emp_class
u deptno emp_classThanks,
Deekay.Hi,
Try this:
select a.table_name , a.column_name ,b.constraint_type from user_cons_columns a, user_constraints b
where a.table_name=b.table_name and a.table_name='EMP_CLASS'How about reading the JOIN documentation??
http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/queries006.htm#SQLRF30046
Cheers,
Avinash -
Hiding the columns in data table in jsf
Hi Guys,
I have stuck one situation in my project . i.e i want to hide the columns in Data table in jsf.
Please response this mail.
Thanks
NarneSee this...
[http://forum.java.sun.com/thread.jspa?threadID=5119514&messageID=9938606] -
How to get the last inserted record from a table ?
:-) Hiee E'body
I work on Oracle 8i and need to get the last
record inserted in a table.
I have tried using rownum and rowid pseudo-columns
but that doesn't work.
Can you please help me out ?
:-) Have a nice time
Vivek Kapoor.
IT, Atul Ltd.,
India.I'm not sure about 8i features.
I assume here that you don't have 'Date-Time' stamp columns on the table which is the easiest way to determine the last inserted row in the table.
If not try the following :-
select address, piece, SQL_TEXT
from V$SQLTEXT
where upper(sql_text) like '%INSERT INTO TABLE_NAME%'
Substiute the TABLE_NAME with the name of the actual table.
Have fun.
Regards,
Shailender
:-) Hiee E'body
I work on Oracle 8i and need to get the last
record inserted in a table.
I have tried using rownum and rowid pseudo-columns
but that doesn't work.
Can you please help me out ?
:-) Have a nice time
Vivek Kapoor.
IT, Atul Ltd.,
India. -
How to get the previous state of my data after issuing coomit method
How to get the previous state of some date after issuing commit method in entity bean (It should not use any offline storage )
>
Is there any way to get the state apart from using
offline storage ?As I said the caller keeps a copy in memory.
Naturally if it is no longer in memory then that is a problem.
>
and also what do you mean by auditlog?
You keep track of every change to the database by keeping the old data. There are three ways:
1. Each table has a version number/delete flag for each record. A record is never updated nor deleted. Instead a new record is created with a new version number and with the new data.
2. Each table has a duplicate table which has all of the same columns. When the first table is modified the old data is moved to the duplicate table.
3. A single table is used which has columns for 'table', 'field', 'data' and 'activity' (update, delete). When a change is made in any table then this table is updated. This is generally of limited useability due to the difficulty in recovering the data.
All of the above can have a user id, timestamp, and/or additional information which is relevant to the data being changed.
Note that ALL of this is persisted storage.
I am not sure what this really has to do with "offline storage" unless you are using that term to refer to backed up data which is not readily available. -
Can you programmatically change the width of columns in a table control\indicator
Is it possible to programmatically change the width of columns in a table control\indicator ie to fit to width of the data or in my case the header information.
Create a property node (or reference) and use the 'Active Cell' property to select which column you want to change and then use the 'Cell size'--> 'Width' property to change the size.
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Attachments:
table.vi 33 KB -
Get Total of a Column of Advanced Table and use it in Controller in OAF
I have an advanced table on my custom page. I am calculating total of a column in my footer. I am acheiving this using the standard functionality of advanced table by setting total value property of my column to "TRUE" and displaying the total in the tablefooter components.
In addition to this I want to retreive the total value from my footer and use it in my Controller for further validations but I am not able to acheive this.
I tried some code already present in the Community for the same but nothing turned out right for me.
Can anyone please help me on this.Hi there ,
You can manually add the values of each row of a column and make use of the value obtained in your controller .
Here is the logic ,
1) get the vo instnace attached to that table .
2) Loop through every single row in the table .
3) get the value and sum up the value and use it in your controller .
int fetchRowCount = vo.getFetchRowCount();
voRowImpl row = null;
int count =0;
if (fetchRowCount > 0) {
RowSetIterator iter = vo.createRowSetIterator("Iter");
iter.setRangeStart(0);
iter.setRangeSize(fetchBidderRowCount);
for (int i = 0; i < fetchBidderRowCount; i++) {
row = voRowImpl iter.getRowAtRangeIndex(i);
//use RowImpl getters 10.
Number personId = row.getPersonId();
count =personId+count; // add each and every value and have in variable
iter.closeRowSetIterator();
Regards ,
Keerthi -
How to get the last record of an internall table ....
Hi All..
i want to get the last record of an internal table itab, and i want the the value of the last record.Hi,
Use describe statment.
data: lv_line type i.
Describe table itab lines lv_line.
read table itab into wa_itab index lv_line.
regards,
Santosh Thorat -
Logic to build report to get the stock on a particular date
Dear Guru's,
We are trying to build a report for getting the stock on a particular date. It is not possible to copy MB5B that option is ruled out. We have also tried to get the data from MBEWH but that is also not helping as the table is not updated for all the periods.
Please advice
Thanks,
SamDear Sameer,
You can copy MB5B report and can modify as per your reuirement.
If you want get stock a paticular date.It is hard to get, why because you have to fetch all the Material documents
and you have to use MBEW table to get the current date stock and you have to do add/subtract from calculated stock.
Due to this there will performance issues also.
So try to copy MB5B and change as per your requirement.
regards
Subhash -
How to get the number of columns in a result set???
hi everyone..
i am trying to establish a servlet applet communication....
my applet send the sql query to the servlet as serialised string and then the servlet executes the query...
Since i need to pass the result back to the applet, i thaught of passing the whole reult set to the applet..but that seems to be not possible..
so i thaught of storing my result set data in a vector and then pass the vector,but the first problem that i came across is that how to get the number of colums in a result set....
so is there a way to get the number of columns in a result set...???
and also i would like to know if it possible to send my whole result set to the applet bye serialization or by any method...???
thanx in advanceYou shouldn't do. It expenses resources (you should always close the ResultSet and the Statement as fast as possible). Simply gently process it into a Collection or Map of DTO's. Those are serializable.
-
How to get the field name of an internal table during runtime?
How to get the field name of an internal table during runtime?
Hi Sudhir,
Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
Example Code:
<b> DATA: v_field(60). " Insert this code.
GET CURSOR FIELD v_field. " Insert this code.</b>
<b>CHECK v_field = 'ITAB-KUNNR'. " Insert this code. (or)
Write: v_field.</b>
Regards,
Ramganesan K. -
Project cost plan Header Data table ( PS module - T.code CJR2)
Hi,
I am working on PS module where we have to build a integration between PS Cost plan (At WBS Element level) to SD Quotation. I have to use transaction CJR2 for this. we will add the custom field 'Indicator' on the initial screen of transaction CJR2 for this. I want to know what is the HEADER DATA table for Project Cost Plan, so i can add this custom field in that table and letter on use in CJR2.
If someone have done any kind of modification for work on CJR2 transaction, please provide me some information on this since i am first time working on PS module. I need some information on modifying the initial screen on transaction CJR2.
Any inputs will be appreciated.
Thanks,Hi,
you'll find Project cost plan in tables RPSCO / COSP
regards Andreas -
Column Header In Table Control
Hi all,
how to mentain the column header in table control,
in case of manually table control( not with wizard).
Thanks.Hi,
First just drag and drop all the fields that are to be a part of the table control. Then drag the label on the column header. Give name and text to the label.
Regards,
Nikhil -
How to increase text size of a Column header of table in webdypro
Hi All,
Can anybody suggest me how to increase the text size of a column header of table in webdyrpo. I didnt find any option anywhere. can anybody help me out to solve this issue?
Regards
RavikumarHi Ravikumar,
As Sukanta has suggested create a Simpletype of String Type and Length 40.
Then create a context for the column header and for its type, instead of choosing
from the drop down, choose the 3 dots.
In the window that appears, select Local Dictionary, and Select the Simpletype
that you have created, from the respective package name. And click OK.
This will make the text of ColumnHeader of type String and Length 40.
Hope it helps.
Regards,
Alka.
Maybe you are looking for
-
Wireless and Ethernet Network Do Not Work Other Than SpeedTest
I have been having major problems with my Mac's Internet. Whenever I connect to my Wireless or Ethernet Connection, the signal start out strong and dies down to almost nothing (around .4 kbps) immediatly. I have been having this problem for a coupl
-
I updated my ipod touch, then a while later it said waiting for update then shut off. then started turning on and off, what do i do ?
-
I can only send or recieve mms messages if I have my mobile data turned on. It will not work if my secure wifi is on. Anyone know how to fix this?
-
JDBC - Definging a Unique Constraint
Hi, I have the following fields "time_slot", "weekdays" and "room_number" in a table called "modules". I am trying to check for the following constraint before inserting a new record into the table. . If a record already exists with a "time_slot" on
-
Displaying Report in Web layout
Hello All, Can anyone please tell me how to display reports in web layout during runtime. I've created a report in month_report.jsp, having both Web Layout & Paper Layouts. At runtime when I call the report the Paper Layout version is getting display