Parametrization of Tables Name before retrieveing the Rows.
Hi all,
I have more then one tables with same number and types of attributes,
I want to create a single form to view only as per the parameter table name.
further more I want the same in Reports. i.e
Table Name : Test1, Test2.
Application ask the table name and retrieve thre rows as per parameteized name
Thanks, if any one could help
Abdul,
I don't think that you can change the table for a block in Forms at runtime. You may want to experiment with basing a block on a stored procedure so that the datasource for Forms doesn't change.
In reports you can use ref cursors to build a query on. In a before Report trigger you can determine the table name by a custom parameter.
Don't ask for example codes as I don't have some. Refer to teh Forms and Reporst documentation on how to use the techniques mentioned.
Frank
Similar Messages
-
Get the Table name by providing the Sequence name
Hello,
I wish to retrieve the table name to which the sequence is related.
I understand that when the sequence was created, no reference is mentioned to any table. The sequence may be used across many tables.
But the DB definitely knows internally how many tables are referencing the particular sequence.
So, can anyone help me in finding the table (or all tables) referencing one particular sequence.
Thanks and Regards
(Please treat this as urgent as i am desperately in need of such a query)I share Adrian's scepticism. Using the data dictionary we could find all the program units - TRIGGERS, TYPES, PROCEDURES, etc - which use the sequence. From there we can find all the TABLES that are also referenced by those programs. And that's as good as it gets in Oracle. We cannot definitely say which tables use which sequences (although a good naming convention helps).
Of course, your DBA may have access to some accurate and up-to-date documentation. But that is maintained externally to the database and not derived from it.
Cheers, APC -
Retrieving the row number where a certain value exists
Hi,
I wanted to find out if there is a way to retrieve the row number of a row where a certain value exists. For example, if I had a query
Create or replace Procedure p1
IS
v_Stmt varchar2(100);
BEGIN
v_Stmt := 'Select * from emp where lname = 'Davis'';
Execute Immediate v_Stmt;
END;
SQL> exec p1;
Then, I would like to find out that this name is on row 3.
Can anyone tell me how this can be done?
Thanks in advance.
Sincerely,
Nikhil Kulkarnitheres is no rownum related to a particular row. A rownum is a pseudocolumn which value may be different for the same row depending on the query you do. What you can use is the rowid which is the row's address.
HTH
Maurice -
OAM logs backend table name to retrieve log files
Hi All,
What's OAM(Oracle Applications Manager) logs backend table name to retrieve log files?
We are using:
DB:11.1.0.7.0
Oracle Apps:12.1.1
OS:Red hat linux 4 86x64
Thanks for your time!
Regards,Hi,
You can find the list of tables in (Note: 332103.1 - Purge Debug Log And System Alerts Performance Issues).
Thanks,
Hussein -
Table name to get the test equipment details
Hi all
The table name in which the test equopment assign to each inspection characteristics in the inspection plan in qp03.
thanks
v brajPLFH - this table will give you the PRT's /TE's assigned to a insp.char in a task list.
-
Table name which contains the email addresses maintained in address area of SCOT
HI,
I would like to know the table name which contains the email addresses maintained in address area of SCOT.
I know how to see through SCOT, but I want to see as a list through SAP table.
I am not able to see email list through SXNODE AND SXADDRTYPE tables.
Thanks,
Nagaraju RavuriHi Nagaraju,
You may use ADR6 table and field SMTP to get email address of respective users.
Regards,
Deepak Kori -
Table name where all the SAP Script names are stored
Hi Gurus,
Can i know the table name where all the SAP Script names are stored in SAP Database.
Thanks in advance,
Shyam.Yes TNAPR is the table which contains sapscipts name and print program names.
Step:1: Goto to the Table TNAPR using SE11
Step:2: Get the Contents of the Table(CNTRLSHIFTF10)
Step:3: On the Table Content Selection Screen, Type the driver program name in the field PGNAM and execute(F8).
Step:4: FONAM field of the result display contains the SAPScript Name for our driver program.
Regards,
Lalit Mohan Gupta. -
Query for retreiving table names that have the same data
Hi,
Does anybody know how to retreive all the table names that have the same data in their respective tables but i dont know the table names or its fields. Is there any possible query to perform this action???
Thanks in Advance,
Balaji.What about...
WITH manager_list AS
SELECT name,
LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
FROM (SELECT m.name,
e.id,
ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
FROM manager m,
join_table jt,
employee e
WHERE m.id = jt.manager_id
AND jt.employee_id = e.id
AND m.name = :P_MANAGER)
GROUP BY name
CONNECT BY prev = PRIOR curr AND name = PRIOR name
START WITH curr = 1
), all_list AS
SELECT name,
LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
FROM (SELECT m.name,
e.id,
ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
FROM manager m,
join_table jt,
employee e
WHERE m.id = jt.manager_id
AND jt.employee_id = e.id)
GROUP BY name
CONNECT BY prev = PRIOR curr AND name = PRIOR name
START WITH curr = 1
SELECT a.*
FROM manager_list m,
all_list a
WHERE m.employees = a.employeesWould be easier in 11g, but I don't have an installation here so this is based on 10g.
Cheers
Ben -
I like to know the table name where all the Interface name ( Data Type and
Dear Friends,
I like to know the table name where all the Interface name ( Data Type and Message Type in IR ) is stored.
Thanks.Hi,
Please find the repository APIs in the SE24 class builder that can be used for accessing repository objects from the ABAP stack of SAP XI. Check CL_SRAPI* in the SE24 transactions for digging further.
location of interface objects
CL_SRAPI_DATA_TYPE---data type
CL_SRAPI_DATA_TYPE_ENH---data type enhancement
CL_SRAPI_FAULT_MESSAEG_TYPE--fault message type
CL_SRAPI_MESSAGE_TYPE--message type
CL_SRAPI_INTEGRATION_SCENARIO--integration scenario
have a look at the table SXMSPMAST, SXMSCLUP & SXMSCLUR
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4fbe7b8e-0a01-0010-b69b-b7e717378f22#search=%22SXMSPMAST%20%2B%20XI%22
That document has references to lot of tables maybe it can be of use to u.
Look at the below thread for SXMB_MONI tables and Function module:
In Which Database Table the Messages are Stored in XI
Message Monitoring --> corresponding tables?
Edited by: Dharamveer Gaur on Oct 8, 2008 10:40 AM -
Retrieving the row number of a specific record from the results of a MySQL query
I want to create a MySQL query that will return a list of
records, and then retrieve the row number of a record with a
specific ID. How can I do this?
*server-side script: PHP<?php
$i = 0;
do {
$i++;
} while (mysql_fetch_assoc($rsWhatever) &&
$row_rsWhatever['ID'] !=57);
echo "TADA -" . $i;
?>
(assuming that ID is numeric, and that the test value
actually exists in the
database)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"AngryCloud" <[email protected]> wrote in
message
news:g4e6ck$hrb$[email protected]..
>I will use this scenario for an example:
>
> I want to know how far down the list I will find the ID,
'57'.
>
> So I manually look at the list of results and see it is
the 25th record
> down
> on the list.
>
> How do I get my PHP script to get this number (25)
automatically?
> -
Table Name to see the Document Flow for Service Order - T. Code IW33?
Hi,
can u advise the Table Name to see the Document Flow for Service Order - T. Code IW33?
Ravi.Hi,
From SERVICE ORDER you cant get the INVOCIE NUMBER,
You will get the SALES ORDER number for that Service order in QMEL table and fetch the Sales order and then goto VBFA to get the Invoice number for the sales order with the DOCUMENT CATEGORY M.
hope it will serve you.
thanks,
santosh -
Hi all...
I have a issue where i am able to retrieve the row in TOAD
but when I try to do the same by creating VO and passing parameters using setWhereClauseParams()
I am able to execute the VO but the rowcount is 0.....
any sort of help is appreciated....
the query in my VO is
SELECT NVL(WB.VEHICLE_NO,0) VEH_NO
FROM WAYBILL_TBL WB,
SERVICE_MASTER_TBL SER
WHERE WB.SERVICE_ID = SER.SERVICE_ID
AND WB.DEPOT_CODE = SER.DEPOT_CODE
AND WB.VEHICLE_NO=:1
AND WB.SERVICE_DATE=:2
the code in my controller is
OAViewObject vo=(OAViewObject)am.findViewObject("PopUpFieldsDataLOVVO1");
vo.setWhereClauseParams(null);
vo.setWhereClause(null);
System.out.println("vehicle_number"+vehicle_no);
System.out.println("service_date"+service_date);
vo.setWhereClauseParam(0,vehicle_no);
vo.setWhereClauseParam(1,service_date);
vo.getQuery();
int rowcount=vo.getRowCount();
System.out.println("No.of.rows.returned"+rowcount);
here i am getting rowcount 0
i checked the values that are passed to the VO by using SOP even they are working correctly.......
can any one help me here.
thanks in advance
DEVHi Sushant
I used the code vo.executeQuery();
sorry I forgot to mention previously
even though i am getting the same rowcount that is 0
thanx and regards
DEV -
Unable to edit the cells of tables after dinamically adding the rows
below is the code that dynamically add the rows to a table.But when i try to edit the table otherthan boolean cell are throwing ClassCastException.
please correct the code
//code is this
public RowTable()
colname.addElement("Name");
colname.addElement("Education");
colname.addElement("Age");
colname.addElement("Pass");
Vector v1=new Vector();
v1.addElement("Nagaraju");
v1.addElement("MS");
v1.addElement(new Integer(24));
v1.addElement(new Boolean(true));
Vector v2=new Vector();
v2.addElement("Mahesh");
v2.addElement("MS");
v2.addElement(new Integer(24));
v2.addElement(new Boolean(true));
data.addElement(v1);
data.addElement(v2);
tm=new TabModel();
JTable table=new JTable(tm);
table.setPreferredScrollableViewportSize(new Dimension(500,70));
JScrollPane jpane=new JScrollPane(table);
jb.addActionListener(this);
getContentPane().add(jpane,BorderLayout.CENTER);
getContentPane().add(jb,BorderLayout.WEST);
class TabModel extends AbstractTableModel
public void addrow()
Vector v1=new Vector();
v1.add("Hari");
v1.add("BHMS");
v1.add(new Integer(24));
v1.add(new Boolean(true));
data.addElement(v1);
fireTableDataChanged();
public int getColumnCount()throws ClassCastException
return ((Vector)data.elementAt(0)).size();
public int getRowCount() {
return data.size();
public Object getValueAt(int row,int col)
return ((Vector)data.elementAt(row)).elementAt(col);
public Class getColumnClass(int c)
return getValueAt(0,c).getClass();
public boolean isCellEditable(int row,int col)
//Class columnClass=getColumnClass(col);
// return columnClass!=String.class && columnClass!=Integer.class;
return true;
public void setValueAt(Object value, int row, int col)
((Vector)data.elementAt(row)).add(col,value);
fireTableCellUpdated(row,col);
public void actionPerformed(ActionEvent ae)
tm.addrow();The problem here is that you are using the same column for multiple different kinds of Objects. JTable expects that all Objects in a column are of the same Class the since the default CellRenderer is based on JLabel the default column class is String (I believe).
One way to fix this problem is to convert the Object to a string before displaying them. This would be done in your getValueAt() method...
return ((Vector)data.elementAt(row)).elementAt(col).toString();
I believe that you can also designate the column class (in getColumnClass() of your TableModel) as Object and build a custom cell editor to translate for you but in the end this would probably be the same as the solution above only with more work and obfuscation. -
Return the column names for which the row values are not null.
Hi i m a new guy to db admin, and i need a sql script which should return column names of the particular table. and the returned column should have value (fyi - if the column has null value column name should not come in the sql o/p).
Exmple:
table name - A
s.no name mark status fee
1 aa 45 p null
2 bb 30 null paid
3 cc 35 p paid
fyi -1) if i give the table name(A) and s.no (2) the o/p should be -- name,mark.
2) if i give the tablename(A) and s.no (1) the o/p should be --- name,mark,status.
Thanks
Krishna.
Edited by: user13294228 on Jun 14, 2010 10:54 PMBTW,
The previous solution is for all values of the column, if you want a specific row, you can add it in where clause.
I mean in your example, it you look like:
SET serveroutput on;
DECLARE
l_cnt NUMBER;
l_str VARCHAR2 (255) := '';
l_table_name VARCHAR2 (255) := 'YOUR_TABLE_NAME';
l_col_cond VARCHAR2 (255) := 'S_NO';
l_val NUMBER := 1;
CURSOR c_col
IS
SELECT column_name
FROM user_tab_columns
WHERE table_name = l_table_name;
BEGIN
FOR i IN c_col
LOOP
EXECUTE IMMEDIATE 'SELECT COUNT ('
|| i.column_name
|| ') FROM '
|| l_table_name
|| ' WHERE '
|| l_col_cond
|| ' = '
|| l_val
INTO l_cnt;
l_str := l_str || CASE
WHEN l_cnt = 0
THEN ''
ELSE i.column_name
END || ',';
END LOOP;
l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
DBMS_OUTPUT.put_line (l_str);
END;Saad,
Edited by: S.Nayef on Jun 15, 2010 11:54 AM -
Table name to store the Condition of service number in ML81N
Hi All,
Is anyone can advise where does the condition values stored for each service number in ML81n.
Can you please provide the table name. Thanks,Hi,
I required to get the item conditions values for each services in ML81N. Is these conditions value are stored in KONV table and what are the Key data i need to pass in to KONV to retrieve those data? Appreciate your advise. Thanks.
Maybe you are looking for
-
Serious trouble installing itunes.....HELP!!
I recently purchased an iphone, and needed to install itunes to successfully activate the phone. When I click on "download" on the itunes page, instead of it giving me the usual prompt of "run or save".....I'm getting this odd window at the top left
-
Photoshop CS5 Install Help Please !!!!!!!!!!!
Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 52 error(s), 51 warning(s) WARNING: OS requirements not met for {667C8B6C-3EAF-4646-A8EC-D85CCC4D3D84} WARNING: Payload cannot b
-
I have discovered that we have lost the ability to print to our HP 5500s and 5550s after upgrading from 10.5.6 to 10.5.7. Everything was printing just fine until I installed the 10.5.7 Combo Update. Now, when you print the job just gets hung in the p
-
Access Network Camera with JavaFX is possible?
hi, i have IP Camera Foscam 8910W and it have the access via http for see mpeg movie via network if i access in firefox http://myipcamera/videostream.asf?user=xx&pwd=yy i see the direct movie of this network camera i have create a application swing+j
-
Hi, I am using MC OS Yosemite 10.10.3 and I can't update my PhotoshopCC because of error code U43M1D204. How can I fix it. please help.