Cannot select column or rows in a table
I've created two column document - but for some reason cannot select the columns so that I can format them. The selection menu items are grayed out. And when hovering with curser the curser does not convert to arrow to enable 'select'. I just want to add lines around the table columns but can't. Anyone know solution? Must be something simple I did when setting up the two column document . . . .
Rich,
Select one cell, then Right-Click or Control-Click, for the contextual menu:
or Choose Menu > Format > Table > Select Row / Column.
Regards,
Jerry
Similar Messages
-
Hi,
I have a problem with JTable. ...i have just started working with JTables and still have not got a complete hang of how they function.
I have a table whose model is "AbstractTableModel". I have different data in each row of the table therefore i have a celledtior and cell renderer per row. Each row is rendered as a combo box. There is only one column in that table. What i need to do is when the user clicks on any of these the rows in the table i need to evaluate what is the content in that row(in the combo box-It should be the values that have not been used up yet in the other rows...so basically as you add rows the combo box content will keep shrinking till all the possible vlaues are exhausted).
I added a celleditor listener for every row. When the user clicks on the cell the event get's captured but the row value that shows up is not row the user selected. The value is always the previous selected row. Each cell is rendered as a combo box.
For example if the user selected the first row in the table then the value of the row selected is -1. If the the user adds two more rows and selects the third row then the value selected is 0 (previos selected).
What i cannot figure out is how in the world is this value obtained.
Please help !! I tried everything i can think of to get the correct value of the row selected.
Thanks a lot for your time and patience.
ArchanaHello Suman,
Please, look at 'No First Select from Table' section of this blog: [/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks|/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks]
Good luck,
Ola -
How to get the current selected column and row
Hi,
A difficult one, how do i know which column (and row would also be nice) of a JTable is selected?
e.g.
I have a JButton which is called "Edit" when i select a cell in the JTable and click the button "Edit" a new window must be visible as a form where the user can edit the a part of a row.
Then the column which was selected in the JTable must be given (so i need to know current column) and then i want the TextField (the one needed to be edited) be active with requestFocus(). So it would be
pricetextfield.requestFocus();
Problem now is that i have to click every time in the window the JTextField which was selected in the JTable. I have chosen for this way of editing because my application is multi-user and it would be too difficult for me when everybody did editing directly (catch signals, reload data, etc.).
My question is how do I know the current column and the current row in a JTable?I'm not sure what your mean by the "current" row or column, but the following utility methods return
which row and column have focus within the JTable.
public static int getFocusRow(JTable table) {
return table.getSelectionModel().getLeadSelectionIndex();
public static int getFocusColumn(JTable table) {
return table.getColumnModel().getSelectionModel().getLeadSelectionIndex();
} -
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 select x numbered row from two tables
Hi,
I have one performance problem...
Here is sample scenario...
TableA
A1 A2 A3
a1 a12 a13
a2 a22 a23
a3 a32 a33
TableB
B1 B2 B3
b1 b12 b13
b2 b22 b23
I want result like
A1 B1 A2 B2
a1 b1 a12 b12
a2 b2 a22 b22
I have written it like
select
A1,
B1,
A2,
B2
from
(select A1, A2, rownum rnA from TableA) a,
(select B1, B2, rownum rnB from TableB) b
where rnA = rnB
but suppose TableA has 2500000 rows and
TableB has 500 rows then for 500 rows I have to
wait for all 2500000 rows scanning.
Is there any smart solution..?
I have created indexes for on columns A1, (A1,A2,A3), B1, (B1,B2,B3).
Curious:)
Rushang Kansara
Message was edited by:
Rushang KansaraHere is explain plan
SELECT STATEMENT, GOAL = FIRST_ROWS Cost=5 Cardinality=67 Bytes=3618
HASH JOIN Cost=5 Cardinality=67 Bytes=3618
VIEW Object owner=SFMFG Cost=2 Cardinality=82 Bytes=2214
COUNT
TABLE ACCESS FULL Object owner=SFMFG Object name=TABLEA Cost=2 Cardinality=82 Bytes=1148
VIEW Object owner=SFMFG Cost=2 Cardinality=82 Bytes=2214
COUNT
TABLE ACCESS FULL Object owner=SFMFG Object name=TABLEB Cost=2 Cardinality=82 Bytes=1148
New to sql tunning Here why cardinality goes to 67 and cost to 5???
Thank you for your time.. :) -
Adding 2 more rows to a select without inserting rows to base table
hello all,
i have a below simple select statement which is querying a table.
select * from STUDY_SCHED_INTERVAL_TEMP
where STUDY_KEY = 1063;
but here is the situations. As you can see its returning 7 rows. But i need to add
2 more rows..with everything else default value or what exist... except adding 2 more rows.
i cannot insert into base table. I want my end results to increment by 2 days in
measurement_date_Taken to 01-apr-09....so basically measurement_date_taken should
end at study_end_Date...
IS THAT EVEN POSSIBLE WITHOUT INSERTING ROWS INTO THE TABLE AND JUST PLAYIHY AROUND WITH
THE SELECT STATEMENT??
sorry if this is confusing...i am on 10.2.0.3
Edited by: S2K on Aug 13, 2009 2:19 PMWell, I'm not sure if this query looks as good as my lawn, but seems to work anyway ;)
I've used the 'simplified version', but the principle should work for your table to, S2K.
As Frank already pointed out (and I stumbled upon it while clunging): you just select your already existing rows and union them with the 'missing records', you calculate the number of days you're 'missing' based on the study_end_date:
MHO%xe> alter session set nls_date_language='AMERICAN';
Sessie is gewijzigd.
Verstreken: 00:00:00.01
MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn
2 select 1063 study_key
3 , to_date('01-MAR-09', 'dd-mon-rr') phase_start_date
4 , to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken
5 , to_date('01-APR-09', 'dd-mon-rr') study_end_date
6 from dual union all
7 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
8 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
9 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
10 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
11 select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
12 select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual
13 ) -- actual query:
14 select study_key
15 , phase_start_date
16 , measurement_date_taken
17 , study_end_date
18 from t
19 union all
20 select study_key
21 , phase_start_date
22 , measurement_date_taken + level -- or rownum
23 , study_end_date
24 from ( select study_key
25 , phase_start_date
26 , measurement_date_taken
27 , study_end_date
28 , add_up
29 from (
30 select study_key
31 , phase_start_date
32 , measurement_date_taken
33 , study_end_date
34 , study_end_date - max(measurement_date_taken) over (partition by study_key
35 order by measurement_date_taken ) add_up
36 , lead(measurement_date_taken) over (partition by study_key
37 order by measurement_date_taken ) last_rec
38 from t
39 )
40 where last_rec is null
41 )
42 where rownum <= add_up
43 connect by level <= add_up;
STUDY_KEY PHASE_START_DATE MEASUREMENT_DATE_TA STUDY_END_DATE
1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00
1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00
1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00
1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00
1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00
1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00
1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00
1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00
1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00
9 rijen zijn geselecteerd.If there's a simpler way (in SQL), I hope others will join and share their example/ideas/thoughts.
I have a feeling that this is using more resources than needed.
But I've got to cut the daisies first now, they interfere my 'lawn-green-ess' ;) -
I can select only one row in my table why?
hi.. i have just started cold fusion. i am trying to connect
my database. its ok. but i can see only one row? why?
ff4.cfm =>
<cfquery name = "myFirstSelect" datasource="calisma">
select * from fuat1
</cfquery>
ff5.cfm =>
<cfinclude template="ff4.cfm">
<table>
<cfoutput query="myFirstSelect">
<tr height="20" onMouseOver="this.bgColor='#colorlist#';"
onMouseOut="this.bgColor='#colorrow#';" bgcolor="#colorrow#">
<td>AD</td>
<td>SOYAD</td>
<td>NUMBER</td>
</tr>
<tr height="20" onMouseOver="this.bgColor='#colorlist#';"
onMouseOut="this.bgColor='#colorrow#';" bgcolor="#colorrow#">
<td>#AD#</td>
<td>#SOYAD#</td>
<td>#NUMBER#</td>
</tr>
</table>
</cfoutput>
i can retrieve only one row. Cannot access the second row of
table. What can I do? What can I reach the second row?
thankxok i solve this problem thanx
-
Interactive Report - Include Non-selected Column in Row Text Search
Hi,
We have an interactive report that contains many columns. NAME VARCHAR2(30), TYPE VARCHAR2(30) etc and DESCRIPTION VARCHAR2(4000).
Normally the DECRIPTION column would not be shown (avalilable for dispaly via 'Select Columns' but not selected), however we need the default Row Text Search (ie direct entry into the search field instead of creating a column filter) to search the DESCRIPTION field wether it is selected for display or not.
This will allow the user to enter a term that may be contained in the DESCRIPTION to find records without trying to display a 4000 character field in the report - which just looks horrible.
We are using ApEx 4.1.1.
Thanks,
Martin FiggHi Ray,
As I expected this has got us very close. We went with the code:
select
facility_id,
facility_name,
'<span title="' || facility_desc|| '">'||substr(facility_desc,0,50)||decode(sign(length( facility_desc)-50),1,' (More...)',NULL)||'</span>' facility_desc,
equipment_id,
equipment_name,
'<span title="' || equipment_desc|| '">'||substr(equipment_desc,0,50)||decode(sign(length( equipment_desc)-50),1,' (More...)',NULL)||'</span>' equipment_desc,
from
rf_full_item_list_vwhich works well. The only issue is that when you download to csv you get the html tags etc as well. Put I am a lot closer to a solution than we were.
Thanks again.
Martin -
Default selection of a row in the table
Dear all,
I have given output of one table as the input to an RFC and the output of this RFC is given to a table and the same scenario we followed for the graphs also. By default first row of the table is getting selected because of that the second table or graph is getting displayed without any user interaction. Please tell us how can we avoid the above. I tried by using guard condition of select but i am unable to control it. Please tell us detailed procedure by which directly i can follow the same.
Regards,
Suman.Hello Suman,
Please, look at 'No First Select from Table' section of this blog: [/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks|/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks]
Good luck,
Ola -
Reg Selection of Multiple Rows in a Table
Hi all,
I have to select multiple rows from a table and have to display those selected records in another table in the next screen.
The problem is, when I am selecting the records in a table, selection should not be allowed on some records based on a condition. Is it possible with the default selection mode of webdynpro. If so, Please tell me how can we disable the selection of certain records in a table(using the default selection mode provided by webdynpro)
Else, if we have to use check boxes for selection(in case of my problem), please do help me out in how to disable the selection of certain records in a table(using check boxes for selection).
Please help me out. Its urgent...
Reward points guranteed.
Regards,
Murthy.HI Narayana,
Multiple selection property is specific to a table, not for a tableElment(ie. for a row), so u cant set some of the rows as multi selected and some as node
U can use Checkbox for this purpose. Based on the condition u can make the check box as enabled and disabled
To achieve this, Create 2 boolean variables inside table node, one for checkbox value(Let it be <b>CBValue</b> .Bind this to checked property of Checkbox) and other for enabling and disabling Checkbox(Let it be <b>CBReadOnly</b>. Bind this to readonly property of CheckBox).
At the time of creation of table elements, as per the condition, u can control the selection as
IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>();
for(int i=0;i<5;i++)
IPrivate<View>.I<Table>Element tEl=tNode.create<Table>Element();
tNode.addElement(tEl);
tEl.setCBValue(false);//Unchecking Checkboxes initially
if(condition=non selectable)
tEl.setCBReadOnly(true);
else
tEl.setCBReadOnly(false)
Regards
Fahad Hamsa -
Add column with row number to table
Hi,
to a table view I'd like to add a new column that contains the row number for each row.
I have many data sources (twelve) and with the union operator I create one output dataset. The output data is sorted by the arrangement of the input ports of the union operator.
Is there a way to add a column with its corresponding entry number?
Regards, FTI have a similar question to the original post. It seems your answer will fill the new field in all rows with the same value. But, what if we want an actual row number?
I am simply looking to add a row number to a table. I only have one data source. The business scenario is that the output of the data service is sorted in descending order on value. I want to be able to select the first 10 (i.e. the top 10 items based on that value).
Even if I can solve my business scenario without using a row number field after the sort, it seems like a technique that would come in handy.
Any ideas? I'm pretty new to using Visual Composer so I may be missing something obvious. -
Transform columns in row for a table in Oracle 10g
Hi,
I am using Oracle 10g.
There is a table (example) EMPLOYEE, with following structure
IDUSER YEAR1 YEAR2 YEAR3
12345 value1 value2 value3
99999 value7 value6 value5
and I need display :
IDUSER YEAR
12345 value1
12345 value2
12345 value3
99999 value7
99999 value6
99999 value5
How can I do this with without unpivot?
ThanksHi,
Welcome to the forum!
One way to unpivot in any version of Orace is to cross-join your table with another table (or resut set, in ths case) that has as many rows as you need toroduce from each row of your original table.
Here's an example:
WITH cntr AS
SELECT LEVEL AS n
FROM dual
CONNECT BY LEVEL <= 3
SELECT e.iduser
, CASE c.n
WHEN 1 THEN year1
WHEN 2 THEN year2
WHEN 3 THEN year3
END AS uear
FROM cntr c
CROSS JOIN employee e
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ {message:id=9360002}
Edited by: Frank Kulash on Apr 11, 2013 6:47 AM -
SELECTing from multiple rows and different tables
Basically, I have a table with a primary key and some other columns of data. The second table has a foreign key that points to the first table then has a columns with related data. I want to write construct a SQL query where one of the columns is the primary key from the first table and the second column is a concatenation of all the rows in the second table that have the same foreign key.
I need this in the form of one SQL statement so that I can use it to create a report in Application ExpressJust in case my first post was a bit unclear.
My first table has a primary key, INTERACTION_ID, and several other columns of data.
My second table has a foreign key, INTERACTION_ID, and one extra column, USER_NAME.
There are several rows in the second table that share the same INTERACTION_ID as each interaction can have many user names. I want to construct a SQL query where I pull the interaction id in one column and concatenate all the relevant rows of USER_NAME as the second column. -
Cannot delete newly inserted row from a table
Dear all,
There is a table where I have just inserted a new record. I can do a select query on that record and even update it. However when I try to delete the record, my session hangs and the record does not gets deleted. I also do not get a error message.
Does anyone knows what the problem could be ?
Thanks in advance
LHow many rows are in that table?
from another session, what is that session waiting on?
select sid, event, total_waits, time_waited, round(average_wait,4) as average_wait
, (round( (time_waited/m_sum), 4)*100)|| '%' as pct_tot_wait
from v$session_event, (
select sum(time_waited) m_sum
from v$session_event
where sid = <sid_of_hanging_session>
) s
where sid = <sid_of_hanging_session>
order by 4 desc; -
How to calculate value from perticular column and row in pivot table
Hi all,
I am having following pivot table.
Country
A
B
C
D
F
G
H
J
K
L
M
Grand Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
13114
Now I want sum of Columns A, B, C, K, M where Country = India in one field.
and sum of D, F, g in another field. and sum of remainig columns in another field.
How can i get sum of values with some where condition in pivot table.
Thanks,Hi Michael,
Following is the representation which i want
CouRntry
ROW LABLES
A
B
C
Total of
ABC
F
G
Total
Of FG
J
K
L
TOTAL
of JL
Grand
Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
1
Also if i get sum how can i add a column in between of the fields.
Thanks
Maybe you are looking for
-
In iTunes I was having a problem with it hanging up trying to rip a CD into my library. I had to Force Quit the application twice before I could eventually eject the CD. It turns out that the CD was dirty, I stopped looking at them after about #30 I
-
How to Hide BP Functions - Points will be awarded
Dear Guru's, I would need to Block CRM Business Partner Functions which are not required to list out. I through with the following steps to block: (CRM 4.0) IMG --> CRM --> B.Functions --> Partner Processing --> Define Partner Functions. Here I Check
-
I am working with a application well knon gestion software and in my form I want that the cursor is positioned in a textfield into the form . I don't know how I can do this In my case is very important for that the user feel easy use . Thanks Miguel
-
Authorization issue with new hardware install
I recently had a motherboard go bad. I replaced the MB and processor and installed the original HD which had survived the failure. After setting up the machine with its new hardware, I turned on Itunes. It asked for a password to authorize the comput
-
Blue background when moving my macbook screen back and forth
When I move my screen past the 90 degree angle, at a certain point, the background on my safari windows will turn a light blue with very small striped lines. Under words or my mouse, however, the background is still white. Thanks for any help.