Question on the number of rows in the table bean
HelloI have a table with the name of column to column, change the image...
I 100 columns like that, and I set the number of lines to display in the 30
Suppose that when I am in the 55th row in the table by clicking next... I clicked on the image for that particular line, it opens the new page. And now if I select Cancel button on this new page... I go to the previous screen that has table.
But what my problem is it shows lines from the opening of the table... not the page (55th place) where I went to the new page. Is it possible to go to previously visited set of rows in the table?
Please solve my problem.
Hello
When you browse the page, you can capture the index of the scope of the
current line selected in the object attached to the table view and store
the session
OAViewObject oaviewobject = (OAViewObject) oaapplicationmodule.findViewObject ("YourVOName")
int l = oaviewobject.getRangeStart ();
pageContext.putSessionValue ("range", l);
so when you return to the page and in process request you can reset the index of the range as previously selected.
Range of String = (String) pageContext.getSessionValue ("range");
int k = (int) Integer.parseInt (range);
oaviewobject.setRangeStart (k);
Thank you
Gerard
Tags: Oracle Applications
Similar Questions
-
Game max fixed the number of rows in a table
Hi all
I created a table that should contain only one line and avoid the possibility to add other lines to it, I used the following:
It works, but it seems a bit heavy for me... Is there a better way to define a fixed/maximum number of rows in a table?CREATE TABLE <table_name> ( <field_1> <field_type> unique, ... <field_2> <field_type> CONSTRAINT <field_1_ck> CHECK (<field_1> = <value>) );
See you soon,.
Valerio
PS: how to view the code snippets in mode 'IDE-like' (i.e. fixed fonts) spaced, showing dashes, etc.?
Published by: valerio75 on February 4, 2010 01:48 - now shows the code correctlyPS: how to view the code snippets in mode 'IDE-like' (i.e. fixed fonts) spaced, showing dashes, etc.?
Put the
tag before and after your snippets. See the [FAQ|http://forums.oracle.com/forums/help.jspa] for more information regarding tags (scroll down a bit there) .
-
Count the number of rows in each table
I have a list of table names, how to write a query to find out the number of rows in each table.
Select the table table_name from all_tables where owner = 'XXX' and num_row > 100
or
Select the table table_name from all_tables where owner = 'XXX' and sample_size > 100
isn't quite working.
Why?
Thanks in advance,
Published by: mpt_fz on January 12, 2010 12:06In recent versions of the db (11g):
SQL> select table_name, column_value cnt from user_tables, xmltable (('count(ora:view("'||table_name||'"))')) where table_name in ('EMP', 'DEPT', 'BONUS') / TABLE_NAME CNT ------------------------------ ----- BONUS 0 DEPT 5 EMP 14
-
query table name and number of rows in a table
Hello
I am trying to create a pl/sql to insert the results of all the tables in my database and the number of rows in a table, you guys are quick scripts to do this?
Thanks in advance,
BlaisMy file of old-gold of messages from this forum:
SQL> SELECT 2 table_name, 3 TO_NUMBER( 4 EXTRACTVALUE( 5 XMLTYPE( 6 DBMS_XMLGEN.getxml('SELECT COUNT(*) c FROM '||table_name)) 7 ,'/ROWSET/ROW/C')) cnt 8 FROM user_tables; TABLE_NAME CNT ------------------------------ ---------- TEST_LONG_RAW 1 TEST_LONG_RAW_TO_BLOB 1 DEPT 4 EMP 14 BONUS 0 SALGRADE 5 TEST_DBMS_ERROR_LOG2 4 TEST_DBMS_ERROR_LOG1 6 ERR$_TEST_DBMS_ERROR_LOG2 2 DR$CTX_INDX_MULTI$I 48 TEST_MULTI_COL_SRC 4 TABLE_NAME CNT ------------------------------ ---------- DR$CTX_INDX_MULTI$R 22 EMP_TEST 14 DR$CTX_INDX_MULTI$K 4 DR$CTX_INDX_MULTI$N 0 TEST_SQLLDR_UNICODE 4 16 rows selected. SQL>
-
Hello
How to find the number of rows in each table of a database just by using a SQL query.
and do not use the data dictionary tables also... is possible...?
Thank you
MJIt can be done in a single SQL like->
satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>SELECT table_name, 2 DBMS_XMLGEN.getxmltype ('SELECT Count(*) c FROM ' || table_name).EXTRACT ('//text()').ge tnumberval() tot_rows 3 FROM user_tables; TABLE_NAME TOT_ROWS ------------------------------ ---------- QUESTIONTYPE 0 SRGROUPTABLE 1 ST_TEST 4 REGISTER 0 DEB_1 2 EMP1 0 6 rows selected. Elapsed: 00:00:12.04
The credit goes to Michael. ;)
Kind regards.
LOULOU.
-
Count the number of rows in a table (s)
Hi all
I have a TKT_PRIORITY_LK table that I want to count the number of rows returned by a priority level... say Low, Medium, High, critical. I want to be able to count how many of each created are they, instead returning ID instead, if making any sense... Can you please help with this.
Example; Select count (*) in TKT_PRIORITY_LK
PRIORITY group
Kind regards
Sandrine
Try this
Select a.PRIORITY, count (*) from TKT_PRIORITY_LK a, TKT_TICKET_MAIN b
where a.id = b.PRIORITY_ID
A.PRIORITY group
-
Count the number of rows in a table
Hello
I have a requirement. I want to frame a SQL, which takes the name of schema as input and returns the tables belonging to this scheme and the number of lines in a particular table.
An example of output:
===========
Can someone help me to make a request for the same.Table No. of Rows ~~~~ ~~~~~~~~ A 123 B 126 C 234 . . .
Kind regardsIf you are not sure on the statistics collected, then you need dynamic sql...
DECLARE VNUM NUMBER:=0; VSQL VARCHAR2(4000); vcount number := 0; BEGIN DBMS_OUTPUT.ENABLE(NULL); DBMS_OUTPUT.PUT_LINE(RPAD('TABLE NAME',30,' ')||' '||RPAD('ROW COUNT',10,' ')); DBMS_OUTPUT.PUT_LINE(RPAD('-',30,'-')||' '||RPAD('-',10,'-')); FOR C1 IN (SELECT TABLE_NAME,OWNER FROM ALL_TABLES WHERE OWNER='SCOTT' ORDER BY OWNER,TABLE_NAME) LOOP VSQL := 'SELECT COUNT(*) FROM '||C1.OWNER||'.'||C1.TABLE_NAME; EXECUTE IMMEDIATE VSQL INTO VNUM; DBMS_OUTPUT.PUT_LINE(RPAD(C1.TABLE_NAME,30,' ')||' '||RPAD(VNUM,10,' ')); vcount := vcount +1; END LOOP; DBMS_OUTPUT.PUT_LINE(RPAD('-',length(vcount)+6,'-')); DBMS_OUTPUT.PUT_LINE(vcount||' Rows.'); DBMS_OUTPUT.PUT_LINE(RPAD('-',length(vcount)+6,'-')); END; / TABLE NAME ROW COUNT ------------------------------ ---------- BONUS 0 DEPT 4 EMP 14 SALGRADE 5 ------- 4 Rows. ------- PL/SQL procedure successfully completed. Elapsed: 00:00:00.44
Personally, I think this is a time to kill the process... ;)
HTH,
Prazy -
function should return the number of rows in a table
Hello world
I wrote an entry function is the name of the table and the function should return how many line in the table.
the table name can change.
It is possible
Published by: Balajiraam on March 18, 2011 05:33Hello
Try this
CREATE OR REPLACE FUNCTION GETCOUNT(TABLE_NAME IN VARCHAR2) RETURN NUMBER IS TMPCOUNT NUMBER; TMPSQL VARCHAR2(1000); BEGIN TMPSQL := 'SELECT COUNT(*) FROM ' || TABLE_NAME; EXECUTE IMMEDIATE TMPSQL INTO TMPCOUNT; RETURN TMPCOUNT; END;
see you soon
VT
-
Addition of high rank of the question from the table in OFA
Hi all
I have a customized page of the OPS with a table area advanced, under whom I add a line event, so when I select the Add button of the line box, I am able to insert a blank line in the table, but it is whenever it inserts the line to the top of the table, but I need the empty line must be added at the end so it is possible to implement this help please me.
I wrote a method like below in the AM to create a line.
Public Sub InsertRecord (String p_seq)
{
XXXVOImpl vo = getXXXVO1();
vo.setMaxFetchSize (0);
Line XXXVORowImpl = (XXXVORowImpl) vo.createRow ();
row.setAttribute ("xxId", p_seq);
vo.insertRow (row);
row.setNewRowState (rank. STATUS_INITIALIZED);
}
Thank you
Hello
Try using the code below:
public void InsertRecord (String p_seq) {}
XXXVOImpl vo = getXXXVO1();
vo.setMaxFetchSize (0);
Line XXXVORowImpl = (XXXVORowImpl) vo.createRow ();
row.setAttribute ("xxId", p_seq);
VO. Last();
VO. Next();
vo.insertRow (row);
row.setNewRowState (rank. STATUS_INITIALIZED);
}
Sushant-
-
compress the question from the table
My question is simple:
If I execute this SQL:
and the table is already compressed, Oracle jump or spend time re - compress?ALTER TABLE some_table_name MOVE COMPRESS;
Why I ask this is because I have a few nice PL/SQL that loops through all the tables
in my schema, I have about 1800 tables and it compresses, but it takes a long time, hours
and I would like to only compress Tables which are not already compressed, so compressed, jump, so
that's why I ask... try to determine whether or not PL/SQL needs a dry:-)Kodiak_Seattle wrote:
Thanks for all the help, space is always a big problem for us here, we always run out of it. On only 1/3 of all Tables is compressed, 2/3 is not.So just research in there, thanks!
on the 11G R2
To continue the question I found the following:
(a) have compression enabled for a table does not necessarily mean that the data is compressed. If compression is enabled with the statement:
ALTER TABLE tablename COMPRESS;
the existing data in the table remain uncompressed.
However the execution of the order
ALTER TABLE tablename MOVE COMPRESS;
Compress in the existing data in the table and it is caught in time.
Try to compress an already compressed or partially compressed table is taken on time. Oracle will analyze the data in the table again and try to compress.
I did a test on a table with half million records already compressed and time was almost the same as the initial compression.You can do a quick test on your environment to verify that.
Sorry for the misinformation, I provided before.
Kind regards.
Al -
Questions on the tables of materialized views and MV newspaper
Hi all
Have some questions about Materialized View.
(1) once the materialized view reads the records from the table MLOG, reviews the MLOG get purged. fix? or is that not the case? In some cases, I see still (old) records in the MLOG table even after updating MV.
(2) how the table MLOG distinguishes between a reading which comes from a MV and a reading that comes from a user? If I execute manually
"Select * < table MLOG > ' could get record of the table MLOG redacted all the same way as it does after a refresh of MV?
(3) one of our MV updates crashes intermittently. Based on the events of waiting I noticed that it was a 'db file sequential read' against the main table. Finally I had to put an end to the update. I don't know why it was sequential reading on the main table when she should be reading the table MLOG. Any ideas?
(4) I saw 'file db scattered read' (full table scan) usually on tables, but I was surprised to see 'db file sequential read' against the table. I thought sequential read occurs normally against the index. All the world has noticed this behavior?
Thanks for your time.(1) once all the registered materialized views have read a particular line in a trunk of materialized view, it is removed, Yes. If there are multiple materialized views that are based on the same newspaper, they would all need to refresh before it would be safe to delete the log entry for MV. If one of the materialized views is no incremental updating, there may be cases where the log purge automatically.
(2) No, your query does not cause anything be served (although you wouldn't see something interesting unless you get to implement a lot of code to analyze change vectors stored in the journal). I don't know the exact mechanism used by Oracle has been published, if you could go through and draw a session to get an idea of the moving parts. From a practical point of view, you just need to know that when you create an updatable materialized view fast, it will register as interested especially newspapers MV.
(3) it depends on what is stored in the log of MV. The update process may need to recover specific table columns if your log stores just the fact that the data for a particular key changed. You can specify when you create a materialized view that you want to store specific columns or include the new clause values (with the NEW VALUES INCLUDING). It is perhaps beneficial (or necessary) for the refreshment quick process, but it would tend to increase the storage space for the materialized view log and increase the cost of the maintianing the materialized view log.
(4) sequential reads on a table are perfectly normal - it just means that someone looking for a block of data in the table (i.e. looking a line in the table of ROWID based on the ROWID in an index or a materialized view log).
Justin
-
How to set Max number of rows in a table?
Hello
I'm working on a SCADA interface. In this application, there are different tables with vertical scroll bar.
I prefer to make it visible only initialized lines (I've initialized 40 empty rows in a table with an array of strings). Since the window contains all 40 lines, but only 20 rows, I put the number of lines in the "table properties window" at 20; So I added a vertical scroll bar.Now, when a user, do scroll the scroll bar, it can check not only the initializated 40 lines, but any number of lines.
There is a way to view only a limited number of lines?Thanks in advance!
-
Number of rows in multiple tables
Hello
Im trying to count the rows of multiple tables
for example I need the select statement to produce the following
County of table_name
Table1: 5
Table2 6
3 3 table
I came up with the following script, but it counts the number of tables that I
Select object_name, (select count (*) from user_tables where table_name = object_name) to object
where type_objet = 'TABLE '.Hello
Use this query
Select table_name, num_rows from user_tables
He he's useful to you.
-
Download sql % number of rows on a table
We have
REMOVE from X WHERE Y = "aaa";
Dbms_output.put_line (number of rows sql %);
The above shows the number of deleted rows.
You want to load the value of rowcount % sql on a table. Using the below
INSERT IN the AUDIT (COUNTY) VALUES (number of rows sql %);
-error.
Please let me know how to load this value in an audit table. Thank youStore it in a variable after remove it and insert the contents of the variable by using the insert statement later.
HTH
-
How to designate the table bean in the button action
Hello
I'm new to adf, but having good knowledge in the OPS.
In OAF I used to refer to a component using
Tbl OATableBean = (OATableBean) webBean.findChildRecursive ('< element id >');
now I can manage my table object tbl using.
As above how to manage a table in the ADF.
Thank you very much in advance,
Sundar>
public CommandButton cb1; is essential to give only the id of the component herenow the cb1's referring my button on the right?
>
If I understand you, not the bean name not necessarily be equal to the button Id.the button can be something like this
and bind you to a property of the bean like this.
public class MyClass { private RichCommandButton myFirstCommandButton; public MyClass() { } public void setMyFirstCommandButton(RichCommandButton myFirstCommandButton) { this.myFirstCommandButton = myFirstCommandButton; } public RichCommandButton getMyFirstCommandButton() { return myFirstCommandButton; } }
Note that the command button that has id = cb1 is bound to the myFirstCommandButton instance variable in the bean.
Maybe you are looking for
-
The shortcuts are the same - tools for web developers are now open for CTRL + SHIFT + T rather than reopen a closed tab, etc... It is very annoying. I can't delete web developer, but I never wanted to install it. Subject: config does not work, or rei
-
HP Compaq Presario C759LA: Compaq Presario C759LA power on password
My boss gave me a laptop Compaq Presario C759LA for the restoration of the factory a few days ago, I am working on Windows and make backups, then I restart and it asks me a power on password. I could reboot and enter the BIOS Setup, but I could not r
-
Update for Version.62.2.16.A953.Retail.en.GB
Juut I was wondering when the Version.62.2.16.A953.Retail.en.GB get the Gingerbread update? I am in New Zealand.
-
How to make a picture of a video?
A friend has an iPhone and can take a picture of her video. How can I do the same thing with video on my computer?
-
touchpad does not work... how to re-enable it?
Touchpad of my laptop does not allow me to use this way and I have a mouse on the side of the laptop so the arrow happens and I can use the laptop... What can I do to take care of this problem... Thank you