get the names of the columns dynamically
Hi gurus,I have the list item filled with lots of names of a table schema.
I did grid in oracle 10g and I want to fill in the grid with the data that should come at least four/more columns.
I want to get the trigger list change when whenever any name a table is selected/changed.
How can I get the names of the columns dynamically
Please give me the step by step process
for the filling of the grid...
Hello
If you want to get the details of the column, and then use the USER_TAB_COLUMNSview.
SELECT COLUMN_NAME, DATA_TYPE FROM USER_TAB_COLUMNS WHERE TABLE_NAME =
Kind regards
Manu.
Tags: Oracle Development
Similar Questions
-
Hi all,
I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!
Thus given mySelection = app.selection [0], how is possible to get the column's selection?
I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)
with x being app.selection [0] .index.
but then I'm stuck as if I add ".textColumns", I get an error
I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.
As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base
Any help would be appreciated
Thank you
Ed
Okay here goes,
For and only for the linked text frames.
// For and only for linked text frames. // Warning // The Good: This will PROBABLY work for you // The Bad :THIS IS A REALLY PRIMITIVE METHOD // The Ugly: It could fail in COUNTLESS cases // Here goes...... var mySelection, textFrame, parentPage, c; mySelection = app.selection[0]; textFrame = mySelection.parentTextFrames[0]; parentPage = textFrame.parentPage; c = 0; while(textFrame && textFrame.parentPage === parentPage){ textFrame = textFrame.previousTextFrame; c++; } alert('Column number: ' + c);
Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.
The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.
If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.
HTH
Trevor
-
Sort the columns dynamically built DataGrid...
Hi people...
usually, I'm building my DataGrid dynamically... with something like this:
... omissis...
SQLstatement.text = "SELECT name, address FROM myDBTable";
SQLstatement.execute ();
resultSQL = SQLstatement.getResult ();
MyArrayCollection.source = resultSQL.data;
myDataGrid.dataProvider = MyArrayCollection;
... omissis...
and it works perfectly... the problem is that resultSQL.data, by default, is a table sorted by "abc" (ehmmm... in English is alphabetical sorting?).
Could, I want the same sort of my query, where the NAME came before the ADDRESS...
Is there a solution?
I don't want to pre-build a datagrid with all columns... because it cancels my dynamic datagrid features...
Thanks for all help...
bye bye ^ _ ^.
Thanks for your advice ntsiii :))
but now I use a SQLite database... so I prefer using Flex function...
but I tried a solution (Pentecost of google of course help)the idea is the following:
Once completed this datagrid, I copy dg.colums to a temporaney tempArray...
can I swap the columns that are not in the right place... and in the end, I put dg.columns = tempArray...I tried this method time ago... but it did not work because I tried to change directly from db.columns [x]...
Now, I'm convinced!
Bye bye
-
How to get the column headers into an Excel report with variable width columns?
Hello:
I read this question before but I can´t open the link when I try to download the solution I get the following: status HTTP 404 the requested resource is not available.
Can someone help me with the solution? I want to just put a heading for each column (1 thermocouple, thermocouple 2, anemometer, etc.).
In advance, thank you for your help!
You may need to take some tutorials.
LabVIEW Introduction course - 3 hours
LabVIEW Introduction course - 6 hours -
Hallo,
I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:
- the column headings of the af: table
- Visible property (true/false) of the columns af:table
- the actual query of the VO instance used to create the af: table
- the values of real bind variables passed to the query of the instance of VO
I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.
I'm a little confused on who use the code to achieve this... you kindly help me?
I did a similar qustion here
but then I guessed that it was preferable to create a new thread.Thank you
Federico
For this, you can use this type of code
Context LocaleContext = _adfTableBinding.getLocaleContext ();
for (attr AttributeDef: attributeDef) {}
Label As String = attr.getUIHelper () .getLabel (context);
_logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)
"Name:"+ label);
}
which produces this output
Timo
-
How to get the column provided out of the Oracle Data Miner?
Hi all!
I use Oracle Data Miner provided with Oracle SQL Developer to predict the loss of customers. If I plan on the table column lets say X (as a target column) of table say T, so how can I get the corresponding values under my model?
Here is the simplified model for the reference.
Thanks in advance!
Hello
Simply connect a node that accepts data to the node to apply it.
For example, if you want to create a view or table table using the prediction of outputs generated by the node to apply it, and then add a Create Table node and connect the node to apply it.
For more information, try the Oracle by example tutorials for ODMr.
You must use the node apply Publisher to revise prediction outputs models to generate as well as the additional columns to include, for example columns id.
There are a set of predictor columns added by default that may be acceptable.
THX, mark
-
Get the columns returned by the query without running
I have a table that stores SELECT queries in a column. I developed a .net application where the interesting thing for the user is what columns of the following SELECT statement returns. Currently, I load the sql as an OracleCommand object CommandText and fill a DataTable using an OracleDataAdapter object. I then read the names of the columns of the table filled. The data is not fully used. Requests can take up to 15 seconds to run. Because I do not used the data, I was hoping to eliminate the actual recovery of data and reduce the time needed to retrieve the records. Is it possible to analyze the statement for the colunm names with it makes the request for enforcement? Thank you.I imagine that there is a way you can search in the data dictionary, but you can also try to add 'WHERE 1 = 0' If you want the metadata.
It will be useful,
Greg -
How to get the license dynamic foff key device rom Cascades/Native
Hello
In Java, you would do this after initialization the CoreModule;
String lc = group.getProperty ("RIM_APP_WORLD_LICENSE_KEY");
How to recover using C++?
If this is not possible then second best how can I get the device id?
A few months later, I thought again that and it close.
Dynamics of the license is no longer available for BB10, the options are to apply yourself or to manipulate through payments in application.
Feedback from BlackBerry can be found on JIRA here...
-
How can I get the columns-by-side?
http://www.Adobe.com/devnet/Dreamweaver/articles/first_website_pt2_08.html
In the creation of your first tutorial of Web site (see link) I can not understand how to recover the columns side by side are being stacked. I went on the indications of the tutorial at least five times. What I am doing wrong in coding? Here is a picture of my screen:
Here is a screenshot of how the columns should be stacked (from the tutorial):
Take a look at where you graduate #center_column in the html code of the page. You have this:
where it should be
Because a class called 'center_column' has not been defined (somehow), it belongs to the following line.
I saw your styles for all three columns, as IDs.
Beth
-
Get the column names with cursor or an alternative
Hi guys,.
What I currently have is an email with an attachment from PL/SQL. I need to display the query results in .txt attachment. What I've done now is to use a slider but it shows only the results I want column names & ideally the message "14 rows returned. How could I put this in a VARCHAR2?
MikeAdd a value to each sub selection order by...
for example
SQL> set heading off SQL> ed Wrote file afiedt.buf 1 select colA, colB, colC 2 from ( 3 select 1 as ord, cast('TABLE_NAME' as char(30)) colA,cast('GRANTEE' as char(30)) colB,cast('PRIVILEGE' as char(30)) colC from dual 4 union all 5 SELECT 2, rpad('-',30, '--') colA, rpad('-',30, '--') colB, rpad('-',30, '--') colC from dual 6 union all 7 select 3, cast(table_name as char(30)) colA,cast(grantee as char(30)) colB,cast(privilege as char(30)) colC from user_tab_privs where table_name like 'EMP' 8 ) 9* order by ord, colA SQL> / TABLE_NAME GRANTEE PRIVILEGE ------------------------------ ------------------------------ ------------------------------ EMP SCOTT SELECT SQL>
-
Add the columns dynamically publish
I can't pass the data to the new columns that are created in the datagrid.
Even if I refresh the dataprivoider properties.
I can't really judge that the problem is that data cannot move to columns
or columns point to the current data, which I use red lined.
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = "http://www.adobe.com/2006/mxml"
layout = "absolute".
minWidth = "955".
minHeight = "600" >
< mx:Script >
<! [CDATA]
Import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
Import mx.controls.advancedDataGridClasses.AdvancedDataGridColumnGroup;[Bindable]
public static var xmlData:XML = < data >
< rank Actual1 = "44985" Estimate1 = "45000" reelles2 = "44985" Estimate2 = "45000" Actual3 = "44985" estimate3 = "45000" / >
< / data >;protected function button1_clickHandler(event:MouseEvent):void
{var adgcg:AdvancedDataGridColumnGroup = new AdvancedDataGridColumnGroup ("Employee");
var adgc:AdvancedDataGridColumn;
var arr:Array = new Array();for each (var j: * in emp [0]. *)
{trace ("name of node of each child \n" + j.name ());
adgc = new AdvancedDataGridColumn (j.name ());
adgc.dataField = j.name ();
adgcg. Children.push (adgc); does not work
arr.push (adgc); doesn't work too ~
}adgcg. Children = arr;
dg.groupedColumns = [adgcg];
dg.dataProvider.refresh ();
}
[]] >
< / mx:Script >< mx:XMLList id = "emp" >
< employee >
< name > Christina Coenraets < / name >
555-219-2270 < phone > < / phone >
< Email > [email protected] < / email >
true < current > < / current >
images/arrow_icon_sm.png < image > < / image >
< / employee >
< employee >
< name > Joanne Wall < / name >
555-219-2012 < phone > < / phone >
< Email > [email protected] < / email >
true < current > < / current >
< / employee >
< employee >
< name > Maurice Smith < / name >
555-219-2012 < phone > < / phone >
< Email > [email protected] < / email >
< active > false < / current >
< / employee >
< employee >
< name > Mary Jones < / name >
555-219-2000 < phone > < / phone >
< Email > [email protected] < / email >
true < current > < / current >
< / employee >
< employee >
< name > Benoit Hoyee < / name >
525-220-2228 < phone > < / phone >
< Email > [email protected] < / email >
< active > false < / current >
< / employee >
< employee >
< name > Jack Jones < / name >
125-219-2000 < phone > < / phone >
< Email > [email protected] < / email >
true < current > < / current >
< / employee >
< employee >
< name > Luonce Jos < / name >
< Phone > 555 - 219 - 872 < / phone >
< Email > [email protected] < / email >
true < current > < / current >
< / employee >
< / mx:XMLList >< mx:VBox autoLayout = 'true '.
width = "1200".
height = "700" >
< mx:AdvancedDataGrid id = "dg".
dataProvider = "{emp}.
Width = "800".
Height = "400" >
< mx:groupedColumns >
< mx:AdvancedDataGridColumnGroup headerText = "Employee" >
< mx:AdvancedDataGridColumn headerText = "Name".
dataField = "name" / >
< / mx:AdvancedDataGridColumnGroup >
< / mx:groupedColumns >
< / mx:AdvancedDataGrid >
< mx:Button click = "button1_clickHandler (event)" "
label = "CreateGroup" / >
< / mx:VBox >< / mx:Application >
Hello
Here is the solution:
http://FlexMonkey.blogspot.com/2008/05/dynamic-grouping-on-Flex.html
Johnny
-
How to get the column and the row of winding of title in a custom section?
In default, the title of column and line's not winding print when the specification in the Chinese environment.
How to make them winding?
Thank you
Please change ExtendedAttributes$ xlate$ .xsl EASectionTable section of the file in the folder/reports/FO
as below: -
How to get the columns of the table based on different conditions in one column?
Hello
I have two sql queries-
Select sum (col1) sum1 Tab1
where join_date > (sysdate - 1).Select sum (col1) sum2 of Tab1
where join_date > (sysdate-4)I need to use a single query to get sum1 and sum2 data in a single line.
Can someone help please how?Like this? select sum(case when join_date > (sysdate - 1) then col1 else null end) sum1 , sum(col1) sum2 from tab1 where join_date > (sysdate - 4)
-
To get the name of the table the column
Hi I have an Html5 app, and I get the dataset from the database and bind the data based on the column name. but the answer of the oracle db column names as attr_1, attr_2 and so on. Here is the code and the result after execution.
create or replace PACKAGE SAYAM IS CURSOR cur IS SELECT CAST(0 AS NUMBER(5, 0)) "COMPID" , CAST(0 AS NUMBER(4, 0)) "FINYEARID" , EMPLOYEEID, CAST(0 AS NUMBER(5, 0))"MENUID" , CAST('' AS NVARCHAR2(10))"CALLBYPANEL", EmployeeName FROM EmployeeInfo; Type cur_tbl IS TABLE OF cur%rowtype; END SAYAM;
DECLARE v_GlobalParam Xmltype:=Xmltype( '<QueryParam> <CompID>1</CompID> <FinYearID>1</FinYearID> <MenuID>0</MenuID> <EmployeeID>-1</EmployeeID> <CallByPanel>APPWEB</CallByPanel> <EmployeeName>Ranjit</EmployeeName> </QueryParam>' ); tableglobal SAYAM.cur_tbl; rc sys_refcursor; BEGIN SELECT XT.CompID, XT.FinYearID, XT.MenuID, XT.EmployeeID, XT.CallByPanel, XT.EmployeName bulk collect INTO tableglobal FROM XMLTABLE('/QueryParam' PASSING v_GlobalParam COLUMNS CompID NUMBER(5) PATH 'CompID' , FinYearID NUMBER(4) PATH 'FinYearID' , MenuID NUMBER(5) PATH 'MenuID' , EmployeeID NUMBER(5) PATH 'EmployeeID' , CallByPanel VARCHAR2(10) PATH 'CallByPanel', EmployeeName Varchar2(200) Path 'EmployeeName' ) XT; OPEN rc FOR SELECT * FROM TABLE(tableglobal); SYS.DBMS_SQL.RETURN_RESULT(rc); END;
Now, I get the below result-
but the goal that is required is as below with the valid column name
Please let me know if there is any action to get the column names.
Thanks in advance.
Apologies - I have managed to reproduce the original problem in 12.1.0.2.
The problem with ATTR column names is that you use a local collection declared in a package.
You need a SQL type.
But does not change my position when it comes to a sensible direction to go.
SQL> l 1 create or replace type sayam_obj as object 2 (compid number(5,0) 3 ,finyearid number(4,0) 4 ,employeeid number 5 ,menuid number(5,0) 6 ,callbypanel nvarchar2(10) 7* ,employeename varchar2(100)); SQL> / Type created. SQL> create or replace type sayam_tbl as table of sayam_obj; 2 / Type created. SQL> get test3.sql 1 DECLARE 2 v_GlobalParam Xmltype:=Xmltype( 3 '
4 ' 11 ); 12 tableglobal sayam_tbl := sayam_tbl(); 13 rc sys_refcursor; 14 BEGIN 15 SELECT sayam_obj(XT.CompID, 16 XT.FinYearID, 17 XT.MenuID, 18 XT.EmployeeID, 19 XT.CallByPanel, 20 XT.EmployeeName) bulk collect 21 INTO tableglobal 22 FROM XMLTABLE('/QueryParam' PASSING v_GlobalParam COLUMNS 23 CompID NUMBER(5) PATH 'CompID' , 24 FinYearID NUMBER(4) PATH 'FinYearID' , 25 MenuID NUMBER(5) PATH 'MenuID' , 26 EmployeeID NUMBER(5) PATH 'EmployeeID' , 27 CallByPanel VARCHAR2(10) PATH 'CallByPanel', 28 EmployeeName Varchar2(200) Path 'EmployeeName' ) XT; 29 OPEN rc FOR SELECT * FROM TABLE(tableglobal); 30 SYS.DBMS_SQL.RETURN_RESULT(rc); 31* END; SQL> @test3.sql PL/SQL procedure successfully completed. ResultSet #1 COMPID FINYEARID EMPLOYEEID MENUID CALLBYPANE ---------- ---------- ---------- ---------- ---------- EMPLOYEENAME -------------------------------------------------------------------------------- 1 1 0 -1 APPWEB Ranjit1 51 60 7-1 8APPWEB 9Ranjit 10 -
Get the name of the column in the Select row
Hi guys,.
I paint a picture in which there is commandlink in a line for each Column.When I click af:commadLink I want to get the name of the column on which commandLink is clicked.
I tried to get currentRow Clicked from DCIteratorBinding but I want the column name or a column and index.
Thank you
RahulHello
I added a tag of f: attribute for the command link, give it a name and provide the column name as value. In the ActionListener method, access you the link to actionEvent.getUIComponent (). Here call you getProperties or get attributes (one of the two exists) which returns a map. On the plan that you call get ("the f_attribute name") to get the column name
Frank
Maybe you are looking for
-
ask administrator password power upward
stop the 70983992 code Help, please
-
Original title: Please help I HAVE A VERY OLD DELL LAPTOP THAT WILL NOT START ALL THE TIME, AND WHEN THAT HAPPENS IT LOOKS LIKE SA WORKS VERY HARD!
-
want to know what means locked OSD.
Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: osd locked mean? You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the
-
Smartphones blackBerry 9520 storm
Hello My storm is talk every time I charge £10 for the BIS, you need to have £5.30 on your phone the credit all went in the space of a few days and I did not use the phone y at - it thad apps are dateing and not to say help me! necessary
-
Routing of PIX VPN site to Site?
I just configured my PIX to establish VPN site to site with my Linksys (1710 to follow). Looks like my SA and IPSec are set up, but I get no routing. When I do a tracert, my PIX transmits all traffic to my internet router and not through the tunnel.