Database column alias problem
When joining the firstname and surname fields in my inital SQL query of my interactive report i.e
INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
When clicking through to the record detail page I am getting the following error from the page item where in the source I am specifying FULLNAME under Source value or expression
Column FULLNAME not found in table MYTABLENAME
How can I get around this?
Many Thanks
Hi Bas
Thanks - it will just be a view as basically I just want to print the data via jasper
In my IA report under column attributes there is one called FULLNAME which is derived from INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
So how can I get the data displayed in the FULLNAME column in the IA report into a single record view. At the moment my IA report the Link Column is currently linked to a 'Link to custom target'
the target is a 'Page in this Application' in this case page 9
and in Item1 under Name the value is P9_ROWID and the value is #ROWID#
Database column alias problem
Similar Messages
-
Hi all
I have a problem with the ColumnAlias action in version 12.0.6. I have a transaction running a SQL query, adding the contents to a MII Output Document and then adds some lines to this document. Thereafter, a ColumnAlias action block changes the name of a column. When I trace my output parameter in the transaction, all is fine. But, when I run my Xacute Query Template, I see the old column heading, and no data in that column.
Any reason for this?
Regards
AntoineHi
Suresh, I tried that, but it didn't work.
Pedro, I did use the output from the ColumnAlias block, and it still didn't work.
I use to have the ColumnAlias block and in the sequence after that, an Assign block to assign the output of the ColumnAlias to the Transaction.OutputXML. When I deleted this block, and made this assignment in the "Outgoing" tab of the ColumnAlias block, it worked. Strange, because the assignment block assigned the EXACT same result set to the outputXML as the ColumnAlias' output tab, yet it didn't work.
Thanks for the help.
Regards -
Problem with column alias: Unknown column 'avg_rating' in 'where clause'
Hello,
I have a basic sql statement as follows:
SELECT
e.establishment_id,
e.establishment_name,
avg(r.rating) avg_rating
FROM
establishment e,
rating r,
comment com,
establishment_country ec,
country_ref cou
where
etc...
and avg_rating >= 1
and 0=0
group by e.establishment_id
order by e.establishment_idI have used a column alias for "avg(r.rating)" and named it "avg_rating".
It works in my Mysql Query browser without problem but when I run it from Java I get this:
java.sql.SQLException: Unknown column 'avg_rating' in 'where clause'
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2988)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2917)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:824)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:145)
at arcoiris.SearchSessionBean.performSearch(SearchSessionBean.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
at $Proxy172.performSearch(Unknown Source)
at arcoiris.SearchManagedBean.performSearch(SearchManagedBean.java:171)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)Can anyone help please?
Thanks in advance,
Julien Martin.I am having the similiar problem, the query in java creator IDE works fine after i upgraded the J-connector and changed DataSource type for MySQL to mysql-connector-java-5.0.4-bin.jar. but still i cannot bind any control in the form to the aliased column. this is really frustrating. can anyone from Sun Developer explain?
THX -
All,
I am a new user of JSC and am hopefully running into a simple issue. I've searched the forums here but so far have not found any postings regarding my problem. Apologies if this has been asked and answered before.
I am building a webapp to display data from a MySQL database. There are several places in the schema where I need to join to the same table multiple times. I have setup the joins in the query builder and also setup a view in the database directly that does the joins. Either way, the query works fine and returns the expected data. The trouble is that the rowset underlying the dataprovider is not returning the metadata using either the table&column aliases from the query builder or the column names from the view, but rather in all cases returning the underlying table and column names. In my table component I am trying to display the data from each table.column alias distinctly but because the metadata visible to the dataprovider is the same (ie table.column), I end up with both table columns showing the same data. I've tried to track down the implementation of the metadata getter method but it is apparently in source that is not provided.
In case it matters, I'm using mysql-connector-java-5.0.3-bin.jar as the driver.
Is there something I'm missing or is there a workaround for this?
Thanks in advance,
ScottThanks,
I should have been more explicit in my description of the problem.
Example of what I have is as follows:
select table1.columnA, table2.columnA as columnX,....
from table_name as table1 join table_name as table2....
where there are other tables and columns in the select clause as well as the join conditions but where the base table and column (in the above table_name.columnA) are used twice with two different aliases. I have done this join directly in the query builder and also created a view, hiding the actual names of the columns. I can execute either query in the query builder and the columns in the result set "spreadsheet" are labeled with the base table column names, not the aliased names or the view's column names. This is causing a problem because the same thing happens when I try to bind the ui:table columns to the dataprovider. It uses the base tables' column names and I have no way to distinguish between the different aliases. If I try to manually change the jsp to refer to the aliased name or the view column name, I get an exception that the aliased tablename and or column is an invalid parameter.
Sorry if that was not clear in my original post. -
How do I null out an item based on a database column before display?
I am using Apex 3.2
I have an item that is based on database column. My customer wants me to "blank out" the item before it is displayed so the user will have to enter a new value in place of the one that is in the database.
I have tried using a "before region" calculation to set the item to NULL. I can see the value getting set in the debug after the row fetch has occurred, but when the item is displayed, it contains the value from the database, not my calculated valuie.
I also tried using an unsourced text field and then doing an after submit calculation to set the value of the database column item from there, but no luck that way either.
Also tried clearing the item cache, but I think that happens way too early.
There must be a simple way to do this..
Any suggestion?No problem user486652 (name?),
Yes, the $s function is one of ApEx's built-in's - see the ApEx documentation under API Reference, Javascript API's, and you'll find a wealth of built-in functions that do all sorts of things. For Javascript in general, take a look at www.w3schools.com for some really good tutorial and reference material - I use it constantly.
Ok, so you want to set the browser field to empty after the page loads. Since this is a page event, it isn't something that will fire for a form field element so you don't want the code there. In ApEx 3.2, edit the attributes for the page, and you'll see a setting called "HTML Body Attribute". You'll see a helpful bullet note below the setting saying this is the place to add onload events. The proper syntax will be:
onload="$s('P2_REMEDY_TICKET', '');"Once ApEx puts everything together and the page renders, this code will tell the browser to run that $s function after the page loads.
But be aware - if you take a look at the help for that setting, you'll see that it mentions that this will only work if your page template includes the #ONLOAD# substitution string. Not sure if all ApEx-supplied page templates already have #ONLOAD#, but every one I've used does. If your code still doesn't work, check your page tempate. In the Definition region, under Header, you should see a body tag with something like:
<body #ONLOAD#>...
...If that's there, your page template supports the HTML Body Attribute. If your body tag doesn't have an #ONLOAD#, add it.
Hope this helps,
John
If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.* -
Column alias error in a query of views
Hi
I was trying to workout this query
create view dept_sal as
select d.department_name,sum(e.salary)
from departments d left outer join employees e
on d.department_id= e.department_id
group by d.department_name;
and i recieved this error message .............
Error at Command Line:2 Column:25
Error report:
SQL Error: ORA-00998: must name this expression with a column alias
00998. 00000 - "must name this expression with a column alias"
*Cause:
*Action:
I tried to put an alias for sum(e.salary) function and it worked but i dont understand why it is required or is the problem somewhere else and why an alias is needed here ???
Actually the book hasnt specfied the need for an alias at this place ...so i wanted to know why am getting this error ..
create or replace view dept_sal as
select d.department_name,sum(e.salary) as d_sal
from departments d left outer join employees e
on d.department_id= e.department_id
group by d.department_name;
view DEPT_SAL created.
Also i wanted to know if i can start a thread each time i want have a problem or can i add my questions to somebody
else's thread ..
Thanks
JayshreeHi, Jayshree,
to_learn wrote:
Hi
I was trying to workout this query
create view dept_sal as
select d.department_name,sum(e.salary)
from departments d left outer join employees e
on d.department_id= e.department_id
group by d.department_name;
and i recieved this error message .............
Error at Command Line:2 Column:25
Error report:
SQL Error: ORA-00998: must name this expression with a column alias
00998. 00000 - "must name this expression with a column alias"
*Cause:
*Action:
I tried to put an alias for sum(e.salary) function and it worked but i dont understand why it is required or is the problem somewhere else and why an alias is needed here ???Every column in a table or view must have a unique name. If you don't explicitly specify a name for the output column, Oracle will try to generate one based on the input expression. If the name does not follow the normal rules for identifiers (one of which is that the name can't contain special symbols, like parentheses) then the name must be enclosed in double-quotes.
Notice that these rules are a little different from the rules about result sets. In the result set of a main query, for example, column names do not have to be unique, and a system-generated name like 'SUM(E.SALARY)" is acceptable.
Actually the book hasnt specfied the need for an alias at this place ...so i wanted to know why am getting this error ..I can't see which book you're reading. Post a quote. If the book is available on line, post a link, too.
create or replace view dept_sal as
select d.department_name,sum(e.salary) as d_sal
from departments d left outer join employees e
on d.department_id= e.department_id
group by d.department_name;
view DEPT_SAL created.That's the right way to do it.
Also i wanted to know if i can start a thread each time i want have a problem or can i add my questions to somebody
else's thread ..It's better to start your own thread. -
Issue with Column Alias Name in a SELECT statement
I am trying to run sql query(IN ORACLE) to get the data from a remote database(TERADATA). The query is
select (table1.exp_date - table1.setup_date) AS day_diff,
CASE
WHEN day_diff = '0'
THEN 'YES'
WHEN day_diff > '0'
THEN 'NO'
ELSE 'Unknown'
END AS alias_type
from table1@remote_database_name;
The query is running fine when I run it in TERADATA environment directly without the remote database link since it is not necessary. If I run the above query in Oracle I am getting an error ORA-00904: invalid identifier.(this error is pointing to day_diff alias name)
Can anyone help me with this?
ThanksThe Column alias can be used in the ORDER BY clause, but not other clauses,like WHERE clause, in the query.
Use..
select (table1.exp_date - table1.setup_date) AS day_diff,
CASE
WHEN (table1.exp_date - table1.setup_date) = '0'
THEN 'YES'
WHEN (table1.exp_date - table1.setup_date) > '0'
THEN 'NO'
ELSE 'Unknown'
END AS alias_type -
How to access a non-database column in a report?
Hi all,
I would like to populate a column in my report, which is not based (in Oracle Forms, it is a "non-database item").
But I don't know how to access it. Let's say the alias of the column is "column", I tried to do it with #column#, but it's not valid.
Does anyone know a solution here?
Thanks a lot,
DovikDovik
Where do you need to access the column value ? Are other columns of the report accessible from where you are trying to access the value of this 'non database' column ?
varad -
Hi,
I'm in the process of learning Oracle9i SQL and I don't
understand why column alias are not allowed in a where
and group by clause but are allowed in the order by
clause? To me this makes no sense and I have noticed that
that there are a lot of conditions in SQL that make no
sense (ie. this is allowed in a from clause but not the where clause unless using this function or that). Too
many conditions and restrictions are in place!Exactly. Database vendors make their own enhancements and additions, but if you don't like the core SQL language you should take it up with ANSI.
That FLAGGER switch is neat:
SQL> set flagger off
SQL> SELECT DECODE('x','y','z','Using default') AS example1 FROM dual;
EXAMPLE1
Using default
SQL> SELECT CASE 'x' WHEN 'y' THEN 'z' ELSE 'Using default' END AS example2 FROM dual;
EXAMPLE2
Using default
SQL> set flagger full
SQL> SELECT DECODE('x','y','z','Using default') AS example1 FROM dual;
SELECT DECODE('x','y','z','Using default') AS example1 FROM dual
ERROR at line 1:
ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
ORA-06550: line 2, column 8:
PLS-01416: Use of <id> (<value>...) here
SQL> SELECT CASE 'x' WHEN 'y' THEN 'z' ELSE 'Using default' END AS example2 FROM dual;
EXAMPLE2
Using default -
Column alias declaration in package.
Hi,
<br><br>
OS - XP
<br><br>
Version - Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
<br><br>
How do I declare a column alias in a cursor?
<br><br>
I have the following in a package procedure and get the following error
<br><br>
Error(107,35): PLS-00302: component 'EMAIL_FROM' must be declared
<br><br>
I have hilighted what I assume is the offending lines, but the error is pointing to the lines in bold italics towards end of code.
<br><br>
FOR c2 IN
(SELECT b.eml_id
, a.email "email_from"
, to_address.email "email_to"
, to_address.subject
, to_address.header
, to_address.footer
FROM mySchema.table_1 a
HTMLDB_MAIL.SEND(p_to => c2.email_from
, p_from => c2.email_to
...<br><br>
Thank You<br>
Ben
Message was edited by:
BentonYou dont need double quotes " "
(SELECT b.eml_id
, a.email email_from
, to_address.email email_to
, to_address.subject
, to_address.header
, to_address.footer
FROM mySchema.table_1 a
, mySchema.table_4 b
, mySchema.table_5 c
, (SELECT e.eml_id -
Use column alias in another calculation
Database:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
Is there a way to use a column alias in an another calculation within the
same query? Since I am using some long and complex logic to compute total1
and total2, I don't want to repeat the same logic to compute the ratio of
those two columns. do you have any suggestion other than nested sub-query or view?
select
total1 = sum(case(long complex logic)),
total2 = sum(case(another long complex logic)),
ratio = total1/total2
thanks in advanceJimmie_M wrote:
Database:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
Is there a way to use a column alias in an another calculation within the
same query? Since I am using some long and complex logic to compute total1
and total2, I don't want to repeat the same logic to compute the ratio of
those two columns. do you have any suggestion other than nested sub-query or view?
select
total1 = sum(case(long complex logic)),
total2 = sum(case(another long complex logic)),
ratio = total1/total2
thanks in advanceHi,
Use oracle's with clause
WITH test_data
AS
SELECT sum(case(long complex logic)) total1,
sum(case(another long complex logic)) total2
from your_table_name
SELECT total1/total2
from test_data
WHERE....Regards,
Achyut Kotekal -
Possible to have double quotes in a column alias in a SQL projection? Long story involving Apex, Anychart v5 and how Apex names data serie in XML generated for multiple Y axis.
This problem can be easily solved if I can add a double quote into a column alias. E.g.
select
some_col as "COL1"" param1=123"
from dualNo comment about Apex using column labels for generating XML tag name-values... {noformat} ;-) {noformat}
Of course, the SQL parser does not like the above format at all.
Had a look at the SQL Reference guide and it does not say much in this regard. Seems like there's no workaround - correct?Hi,
I can't think of any way to do that in SQL.
In SQL*Plus, you can use COLUMN ... HEADING, with doubled double-quotes:
COLUMN dummy FORMAT A20 HEADING "COL1"" param=123"
SELECT *
FROM dual;Output:
COL1" param=123
X
{code} -
Multiple entries in one database column
Hello.
I am a bit of a php/mysql newbie. I'm trying to figure out how to select multiple data entries from one database column.
For example, I have a column in one table called name_id. I want to assign multiple names to a specific entry in this table. Like, "1,4,12,18", for example. Each of these numbers are the primary keys for my name table. So, I'm trying to assign 4 people to one set of data in this example.
I have seen this done before, I just don't know how to select this data once it is in there. I think it may have something to do with arrays, but I'm not sure.
I hope this makes sense, any help would be much appreciated.That's a poor design plan as it violates the basic rules of normalization and will cause problems in the end. Just create another table to link to and store the one value in each row. If you need more details, then tell us exactly what you are trying to do.
-
I want to change the parameter of the title based on the results of the returned query by testing the value of a specific database column. If the value of that column = 'XXXXX' then parameter of title is assigned to 'This type of Report', else, That type of Report.
Can this be accomplished?Not exactly what I was looking for.Why not? What is the problem with that solution? It's very simple.
P_STATUS := 'value of status column after query runs'That is not possible: you cannot assign a value in the after parameter form like that, because the query hasn't run yet.
You can program (a part of) the query in the after parameter form to get p_status. If you have a complicated query, I wouldn't suggest that. Is there a simple way to get p_status without running the whole query that you defined in the data model?
Edited by: InoL on May 9, 2011 2:04 PM -
Re: [iPlanet-JATO] Finding the database column length
This is the technique I would recommend. If you'd like to wrap this
mechanism up in the model class itself, create a subclass of QueryModelBase
that provides such a method and use that as the base class for all your
QueryModels.
Todd
----- Original Message -----
From: "Craig V. Conover" <craig.conover@S...>
Sent: Friday, October 19, 2001 12:15 PM
Subject: Re: [iPlanet-JATO] Finding the database column length
Chidu,
The result set that you get back is a JDBC ResultSet, not a "JATO" resultset. In ND, everything was wrapped in a "spider" data
structure, and therefore, difficult to get to the underlying datastructure, in many cases. In some case ND made it easier to do
certain things, and in other ways, made it more difficult or impossible(like seeing the SQL for an insert, update, delete).
>
Anyway, looking at the java.sql package, you can do this.
java.sql.ResultSet rs = <jata-model>.getResultSet();
java.sql.ResultSetMetaData rsMeta = rs.getMetaData();
// not sure if this is what you need, but it was the closest thing I couldfind
int colSize = rsMeta.getColumnDisplaySize(int column);
There are numerous other methods in the ResultSetMetaData interface thatmay be of use as well.
>
c
chidusv@y... wrote:
Hi,
How do I find out the length of a database column in a data model? In
NetDynamics, we can do dataobject.getDataField(<field
name>).getColumnLength(). Is it possible to achieve this in JATO
without using a resultset?
Thanks,
Chidu.
For more information about JATO, please visit
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>>
>>
>>
>>
>
>
>
For more information about JATO, please visit
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>
>
>
>
>
>
>This is the technique I would recommend. If you'd like to wrap this
mechanism up in the model class itself, create a subclass of QueryModelBase
that provides such a method and use that as the base class for all your
QueryModels.
Todd
----- Original Message -----
From: "Craig V. Conover" <craig.conover@S...>
Sent: Friday, October 19, 2001 12:15 PM
Subject: Re: [iPlanet-JATO] Finding the database column length
Chidu,
The result set that you get back is a JDBC ResultSet, not a "JATO" resultset. In ND, everything was wrapped in a "spider" data
structure, and therefore, difficult to get to the underlying datastructure, in many cases. In some case ND made it easier to do
certain things, and in other ways, made it more difficult or impossible(like seeing the SQL for an insert, update, delete).
>
Anyway, looking at the java.sql package, you can do this.
java.sql.ResultSet rs = <jata-model>.getResultSet();
java.sql.ResultSetMetaData rsMeta = rs.getMetaData();
// not sure if this is what you need, but it was the closest thing I couldfind
int colSize = rsMeta.getColumnDisplaySize(int column);
There are numerous other methods in the ResultSetMetaData interface thatmay be of use as well.
>
c
chidusv@y... wrote:
Hi,
How do I find out the length of a database column in a data model? In
NetDynamics, we can do dataobject.getDataField(<field
name>).getColumnLength(). Is it possible to achieve this in JATO
without using a resultset?
Thanks,
Chidu.
For more information about JATO, please visit
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>>
>>
>>
>>
>
>
>
For more information about JATO, please visit
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>
>
>
>
>
>
>
Maybe you are looking for
-
Set results of Report1 as filters/prompts for Query3
Hi everybody. Unfortunately I tried to find a solution to my problem in this forum, but I couldn't find anything similar. Therefore I'd like to post the problem as a new thread. Here it is: I have a Query1, which leads to a Report1, that contains let
-
[CS2 AS] Export as Jpeg... image missing in the output.
Hi, I'm using alot the export as jpeg feature as a validation helper while doing batch processing (for quality output, i have used export as pdf and rasterisation in photoshop... require more processing, but it give more reliable output). So with the
-
Connecting Apple TV to Bluetooth speakers
Loving Apple TV; but my TV built in speakers are poor. Currently I've plugged in some external speakers; but I'd like to connect my Bluetooth enabled Creative externals to the Apple TV; but Bluetooth in settings can't seem to find anyting. Creative j
-
User Exit name for Vendor Master
Hi ABAPers, What is the name of User-Exit that changing the Vendor master data? Thanks. MunurEBCIOGLU
-
[SOLVED]Error opening PCM device hw:0,0
I am trying to use Jesusonic, but I get the following error: mmanu > Desktop/jesusonic-0.991-linux-x86/jesusonic -mode ALSA -nbufs 2 Jesusonic v0.991 - Copyright (C) 2004-2005 Cockos Incorporated Using output mode: 'ALSA' Opening ALSA 'hw:0,0' for re