Column Help
Dreamweaver hangs when I attempt to center text in a column within a table. The table has 4000+ rows, after opening the file, I switch to design view, slect the column, then in the properties window click on the horizontal box and slect center. Dreamweaver then hangs and becomes non-responsive. Help!
I do believe I have found a work-around. Find and replace is our friend. Since the first column in a table is defined by the <tr><td> tags use find and replace with <tr><td align="center"> and it worked for all 4684 rows. Thanks for your assistance Murray.
Similar Messages
-
Formula Column help please - URGENT
I'm trying to create a formula column as follows:
function NO_REPLIESFormula return Number is
NOREPLY number;
begin
SELECT COUNT(reply) INTO NOREPLY
FROM letters
WHERE reply = 'N'
GROUP BY ltrtype, batch;
RETURN (NOREPLY);
end;
This PL/SQL compiles fine, but when I run the report, I get the following messages:
REP-1401 no_repliesformula FATAL PL/SQL error occured. ORA-01422 exact fetch returns more than requested number of rows.
If I remove the GROUP BY ltrtype, batch, I don't get the error messages, but the result I get is the total no_replies instead of the total no_replies for each ltrtype/batch grouping.
Could someone please help me with this?
Thank you.Hi irish,
I think i am not sure about what you are trying to say, but let me guess, You want the values to be return on the bases of "ltrtype, batch". Which mea that you want more then one values, i mean there can be more then one Groups based on ltrtype and batch. and you want to display these values with repective record???
If i am right, then there is a fault in your code, and that is , you are not specifing in your code that which value is to be diplayed with which record in this report. For that there must be ltrtype, batch colums displayed in the report, you must add those values in your Code in the query, i.e.
function NO_REPLIESFormula return Number is
NOREPLY number;
begin
SELECT COUNT(reply) INTO NOREPLY
FROM letters
WHERE reply = 'N' and ltrtype= :V_ltrtype and batch=:v_batch;
RETURN (NOREPLY);
end;
Where :V_ltrtype and :v_batch are the run time values of each records displayed in the report.
Remember that if you don't sepecify this then your code will return as many records as many distich values of ltrtype, batch. and your variable NOREPLY can hold only one value at a time. I hope you understand both, Solution and the logic behind the error.
Please correct me if i am wrong.
Thanks.
Mohib ur Rehman -
Convert date value in 1 column help
Am on 10g.
I have a column: STAMP_DATE with these values:
I need to leave LEGACY as it is, but everything else, I need to convert it to: MMYYYY as in: 092010 for example.
So 9-Sep stands for Sep-2009. The digit is the year, I am trying to fix this.
Any SQL help would be appreciated, thank you!
STAMP_DATE
"LEGACY"
"9-Sep"
"9-Oct"
"9-Nov"
"9-May"
"9-Mar"
"9-Jun"
"9-Jul"
"9-Dec"
"9-Aug"
"9-Apr"
"10-May"
"10-Mar"
"10-Jan"
"10-Feb"
"10-Apr"
These values were imported from Excel using SQLLDR, so it kinda made them like that.maybe this might help.
SQL> select to_char(to_date(lg.stamp_date||'-'||to_char(sysdate,'yyyy'),'dd-mon-yyyy'),'mmyyyy') STAMP_DATE
2 from (select 'LEGACY' STAMP_DATE from dual union all
3 select '9-Sep' STAMP_DATE from dual union all
4 select '9-Oct' STAMP_DATE from dual union all
5 select '9-Nov' STAMP_DATE from dual union all
6 select '9-May' STAMP_DATE from dual union all
7 select '9-Mar' STAMP_DATE from dual union all
8 select '9-Jun' STAMP_DATE from dual union all
9 select '9-Jul' STAMP_DATE from dual union all
10 select '9-Dec' STAMP_DATE from dual union all
11 select '9-Aug' STAMP_DATE from dual union all
12 select '9-Apr' STAMP_DATE from dual union all
13 select '10-May' STAMP_DATE from dual union all
14 select '10-Mar' STAMP_DATE from dual union all
15 select '10-Jan' STAMP_DATE from dual union all
16 select '10-Feb' STAMP_DATE from dual union all
17 select '10-Apr' STAMP_DATE from dual) lg
18 where lg.stamp_date != 'LEGACY'
19 union all
20 select lg.stamp_date STAMP_DATE
21 from (select 'LEGACY' STAMP_DATE from dual union all
22 select '9-Sep' STAMP_DATE from dual union all
23 select '9-Oct' STAMP_DATE from dual union all
24 select '9-Nov' STAMP_DATE from dual union all
25 select '9-May' STAMP_DATE from dual union all
26 select '9-Mar' STAMP_DATE from dual union all
27 select '9-Jun' STAMP_DATE from dual union all
28 select '9-Jul' STAMP_DATE from dual union all
29 select '9-Dec' STAMP_DATE from dual union all
30 select '9-Aug' STAMP_DATE from dual union all
31 select '9-Apr' STAMP_DATE from dual union all
32 select '10-May' STAMP_DATE from dual union all
33 select '10-Mar' STAMP_DATE from dual union all
34 select '10-Jan' STAMP_DATE from dual union all
35 select '10-Feb' STAMP_DATE from dual union all
36 select '10-Apr' STAMP_DATE from dual) lg
37 where lg.stamp_date = 'LEGACY';
STAMP_DATE
092010
102010
112010
052010
032010
062010
072010
122010
082010
042010
052010
032010
012010
022010
042010
LEGACY
16 rows selected
SQL> -
SQL Report with 1 updatable column - help urgent
Hi,
I have a SQL report. I am using collection to store value of selected record by link column.
I have a updatable text item (NULL) in the column. I am able to store that value in the collection.
Any clue?
Code
1. Creating a collection in parent page:
apex_collection.create_or_truncate_collection
(p_collection_name => 'ORDER');
2. Query to populate item rows with option to key 'QTY' before pressing 'Add to Order' link.
select
itemcode,
description,
NULL AS qty,
'Add to Order' add_to_order
from itemtab
3. Made 'QTY' to Text item -- to allow users to key value
4. Created 'hidden & protected' items P1_ITEMCODE, P1_QTY
5. Set values of itemcode, qty in add_to_order link
6. Created a process to add values into collection:
for x in (select * from itemtab where itemcode = :P1_ITEMCODE)
loop
apex_collection.add_member(p_collection_name => 'ORDER',
p_c001 => x.ITEMCODE,
p_c002 => x.DESCRIPTION,
p_c003 => :P1_QTY
end loop;
7. Display value of itemcode, description, qty in report region
select c001, c002, c003
from apex_collections
where collection_name = 'ORDER'
Probem: The value of qty is not being stored in the collection and not appearing in the #7 report. itemcode and description values are fine.
Thanks,
DipDip,
I'm guessing here as I can't see your application, I think your missing the page process to collect the data from your QTY field.
I created a quick demo of what i think your trying to achieve on apex.oracle.com
http://apex.oracle.com/pls/apex/f?p=19923:2
I added this to the html expression on the report Field add to:
<input type="button" onclick="doSubmit(#RANDOM_ID#)" value="Add To" />
Then the page process to collect and set the page item:
DECLARE
l_qty number;
BEGIN
FOR i in 1..APEX_APPLICATION.G_F03.COUNT LOOP
l_qty := nvl(APEX_APPLICATION.G_F03(i),0);
IF l_qty > 0
THEN
:P2_QTY := l_qty;
:P2_RANDOM_ID := :REQUEST;
EXIT;
END IF;
END LOOP;
END;
Let me know if this helps
Mark
Don't forget to mark reply as helpful or correct as this may help others reading this thread in the future!
Edited by: cptbutcher on Mar 25, 2010 10:40 PM -
I looked over the posts on CFChart but did not find anything
that addresses my specific problem with the cfchart. So if you can
help, I'd appreciate it very much!
What I want to do is take the dynamic name of the column
derived from the first query and use that name in the Legend. E.G.
A_R1_DIS is the first dataset, A_R1_J is the second dataset, and
A_R1_PPLI is the third dataset. Then show a line graph with each
dataset based on the first query. The X Axis displays the Date/Time
value and the Y Axis displays the number of points for each record
of time for each dataset individually. I was able yesterday to get
all three datasets to display individually but when I tried to show
the legend it either displayed only the first Dataset name
"A_R1_DIS" or it displayed "NONE". Currently the code will not
display any line on the chart and the legend repeats the A_R1_DIS
as many times as there are records in the table (60+).
I use the following query to get the dynamic column name
"SelectedDatasetColName" from the MasterDataList table.
<CFQUERY name="getSelectedDatasetColName"
datasource="#getcfdbname.EventCFDBName#">
SELECT MDL_TestName + '_' + MDL_DatasetID + '_' +
MDL_MeaningfulName as SelectedDatasetColName
FROM MasterDataList
</CFQUERY>
Here is where I'm using the "SelectedDatasetColName" value:
******************************************* queries
<CFQUERY name="DatasetHistogramQry"
datasource="#getcfdbname.EventCFDBName#">
SELECT
<cfset i = 1>
<cfloop query="getSelectedDatasetColName">
#SelectedDatasetColName# as col#i#,
<cfset i = i + 1>
</cfloop>
JDay, TheHour, TheMinute,
convert(varchar(12), JDay, 114) + ' ' + convert(varchar(12),
TheHour, 114) + ':' + convert(varchar(12), TheMinute, 114) as
DateTime
FROM vPositionHistogram
ORDER BY JDay, TheHour, TheMinute
</CFQUERY>
Here is the code for the table; which works correct:
**************************** Report Code
<TABLE>
<TR>
<TH>Day</TH>
<TH>Hour</TH>
<TH>Minute</TH>
<CFOUTPUT QUERY="getSelectedDatasetColName">
<TH>#SelectedDatasetColName# Message Count</TH>
</CFOUTPUT>
</TR>
<CFOUTPUT QUERY="DatasetHistogramQry">
<TR BGCOLOR="###IIF(DatasetHistogramQry.currentrow MOD 2,
DE('DCDCDC'), DE('FFFFFF'))#">
<TD ALIGN="center">#JDay#</TD>
<TD ALIGN="center">#TheHour#</TD>
<TD ALIGN="center">#TheMinute#</TD>
<CFSET i = 1>
<CFLOOP INDEX="X" FROM="1"
TO="#getSelectedDatasetColName.recordcount#">
<TD ALIGN="center">#evaluate("col#i#")#</TD>
<CFSET i = i + 1>
</CFLOOP>
</TR>
</CFOUTPUT>
</TABLE>
Here is the output for the table; Dynamic Column Name used to
repeat counts for each dataset.
********************************* output
Day Hour Minute A_R1_DIS Message Count A_R1_J Message Count
A_R1_PPLI Message Count
37 17 36 0 2 35
37 17 37 19 6 32
37 17 38 28 30 33
37 17 39 40 27 27
37 17 40 66 64 32
Here is the problem code. I have tried several variations on
this code but currently all it does is display a blank chart.
**************************** Chart Code
<CFCHART FORMAT="flash" CHARTHEIGHT="340" CHARTWIDTH="600"
SHOWXGRIDLINES="yes" SHOWYGRIDLINES="yes" SHOWBORDER="no"
FONTBOLD="no" FONTITALIC="no" XAXISTITLE="Timeline (Day
Hour:Minute)" YAXISTITLE="Message Counts" SHOW3D="no" ROTATED="no"
SORTXAXIS="no" SHOWLEGEND="yes" TIPSTYLE="MouseOver"
SHOWMARKERS="no">
<CFOUTPUT QUERY="DatasetHistogramQry">
<CFSET i = 1>
<CFLOOP INDEX="X" FROM="1"
TO="#getSelectedDatasetColName.recordcount#">
<CFCHARTSERIES QUERY="DatasetHistogramQry" TYPE="line"
ITEMCOLUMN="#DateTime#" VALUECOLUMN="#evaluate("col#i#")#"
SERIESLABEL="#getSelectedDatasetColName.SelectedDatasetColName#">
<CFSET i = i + 1>
</CFLOOP>
</CFOUTPUT>
</CFCHART>
Please let me know if you need any additional info on my
problem and if you can help, it is greatly appreciated!!!!
- DebraDateTime is a column in the vPositionHistogram (View). Col#i#
is the variable used to loop through the column names derived from
the getSelectedDatasetColName query. The view is populated
dynamically and the columns in it vary depending on the dataset
used to populate the view. The view can have 1 to many columns.
That is why I pull the column names from the MasterDataList table
and use a variable to get the values from each column. My column
names end up being Col1, Col2, Col3, and so on. I use that variable
in the loop to get the data from vPositionHistogram for each column
in the report/chart. I made some headway on Friday before I called
it a day, but I will try the last suggestion and post my findings
in a little while. Thanks! -
Export Column help, ntext data doesn't export as a usable file
Hello, I'm failing at exporting what appears to be blob data in a database. I setup a data flow task that is pretty simple,
OLEDB SOURCE
|
DERIVED COLUMN
|
EXPORT COLUMN
Source is sql server 2000 db in 2005 instance with mode (80)
Derived column is simple expression that parses a path and filename together
Export column uses the blob column (which is unicode text stream plus new filename), Truncate and BOM are checked
This process seems to work successfully, but the resulting files are garbage. For example, one is a .txt file when opened, it contains exactly the contents of the database column for this row which looks like this excerpt:
begin 660 Call # 8114 Modules for METRO1 CU.txt
M34544DaQ($-5("`-"D1!5$$N0U4Q*#$I.E)53
Obviously I would expect real text here. Can someone help me understand what I am not doing correctly?
Let me know if you need more information.I just went through the list, and tried several files, they are all garbage. a .jpg opened in paint can't open, a .doc file in word doesn't open, and .xls in excel doesn't open.
Contrast the two databases:
Adventure works Document column contains entries that look like this:
0xD0CF11E0A1B11AE1000000000000000000000000000000003E000
The magic database has entries that look like this:
begin 660 so60680.xls MT,a1X*&Q&N$`````````````````````/@`#`/[_"0`&
once exported through SSIS, the adventure works files look like this:
ÐÏࡱá > þÿ 5 7
The magic database files look like this:
begin 660 so60680.xls
MT,a1X*&Q&N$`````````````````````/@`#`/[_"0`&
I used the same 2 files for each databases both times.
From what I can tell sql server doesn't know what the magic db blob data is. So how is the magic user interface making the attachments available to the end user? -
Place holder and formula columns help
Hi All
Can any one help for me.. how to create placeholder column variable, then how can i assign the variable in formula column to populate.
As report Output Requirement :
I have two columns col1 and col2 . based on report parameter (selection type )
Ex :
1. select 1 means its need to display col1 , hide the col2
2. select 2 means its need to display col2 , hide the col1
3. if they non of selection means need to display both col1 and col2
can you guide me , how to do task in oracle reports
Regards
SanjayHi Rohit,
Thanx for ur reply ..
But when i try to open that link it gives me the following error
Sorry. This page does not exist.
The URL you requested could not be found on this server. Please check the spelling in the URL or use our search to find what your are looking for. Thank you.
Can u suggest me some other place which gives me a precise explanation with some EXAMPLE too ...?
Thanx again in advance -
Hello Thanks for taking the time reading this everyone,
I have 1 Table with 3 Columns
Column 1 - Quantity
Column 2 - Unit Cost
Column 3 - Total Amount
I have the user entering the Quantity, and Unit Cost
is it possible to create a function that mutiplyes both on an SQL Report, that shows me a result.
I tried to use Report Attributes>Column Attributes TOTAL_AMOUNT
HTML Expression: #R_QUANTITY# * #UNIT_COST# (Am I Close?)
is there another way of doning this?
Thanks in advance.
Jo3yIf you're talking about a report, then I assume that the user has already entered the data into a form and it has been saved to the database.
In which case, it would be easiest to do this in the SQL statement that retrieves the data
SELECT QUANTITY, UNIT_COST, QUANTITY * UNIT_COST AS TOTAL_AMT FROM TABLE_AThe HTML EXPRESSION isn't able to do any arithmetic as it's purely an HTML string with some substitution variable ability.
Hope That Helps,
- Doug -
http://sumnertech.com/ -
I have written a small program that creates a column of random numbers and another of stars which represent the value of each random number. I managed to get the program to work but i cannot align the columns as you can see if you run through my code. One column starts a row below another. i have no clue how to solve this so any help would be appreciated.
import java.util.Random;
public class BarGraph
public static void main(String args[])
Random randomNumbers = new Random();
int face;
for(int counter = 0; counter <10; counter ++)
face = 1 + randomNumbers.nextInt(10);
System.out.printf("%d\n",face);
for ( int stars = 0; stars < face ; stars++ )
System.out.print( "*" );
System.out.println();Read this tutorial about formatting output. It explains how to use the printf instruction correctly:
http://java.sun.com/docs/books/tutorial/java/data/numberformat.html -
Is there a way to have Pages number columns as pages in a document. Lets say I have a doc that is landscape, I have two columns but I want each column to be a page - if this is possible (I think I see it in the inspector)
1. Where do you start the page #s
2. How do I get it to do this (no Duh)
Thanks for any help, RinoHi Rino,
There isn't any way for Pages to number columns as it does page numbering that I can find. What you saw may have been facing pages but I don't see a way to do it in one page.
A possible work-around is having your two column landscape page then manually add a table at the bottom over the footer.
This table will be one row two columns. You'll now again manually add the page numbers to this table. It will look as though your two columns have page numbering. Of course you'll need to do this for each subsequent page
Hope this helps, do let us know how this goes.
Sincerely,
RicD -
Formula column help needed(urgent)
Hi ,
I am using the data template for generating XML data.
BIP provided functions like SUM(), AVG(), COUNT(), MAX(), etc to use as
below
<group name="G_DEPT" source="Q1">
<element name="DEPT_NUMBER" value="DEPTNO" />
<element name="DEPTSAL" value="G_EMP.SALARY" function="SUM()"/>
<group name="G_EMP" source="Q2">
<element name="EMPLOYEE_NUMBER" value="EMPNO" />
<element name="NAME" value="ENAME"/>
<element name="JOB" value="JOB" />
<element name="SALARY" value="SAL"/>
</group>
</group>
but suppose if I want to do a sum like
Sum(ALLdebits - All credits - All refunds).
We use to have formula good old formula column. like in ORACLE Reports...
below is my query in the data template....can someone please suggest?
<dataTemplate name="R007" dataSourceRef="xyz">
<properties>
<property name="include_rowsettag" value="false"/>
<property name="include_rowtag" value="false"/>
<property name="xml_tag_case" value="as_are"/>
</properties>
<parameters include_in_output="false">
<parameter name="DATE_FROM" dataType="varchar2" include_in_output="false"/>
<parameter name="DATE_TO" dataType="varchar2" include_in_output="false"/>
<parameter name="BANK_GIRO_NUMBER" dataType="varchar2" include_in_output="false"/>
</parameters>
<dataQuery>
<sqlstatement name="Q1">
<![CDATA[SELECT
DISTINCT
SYSDATE todayDate
,substr(trim(CR_BG_NO),3,8) creditorBGNumber
,CREDITOR_SHORT_NAME creditorName
,COUNT(*) itemCount
FROM
R00777_REPORT R1
WHERE
R1.TXN_DATE BETWEEN TO_DATE(:DATE_FROM,'YYYY-MM-DD') AND TO_DATE(:DATE_TO,'YYYY-MM-DD') AND
R1.CR_BG_NO = :BANK_GIRO_NUMBER
GROUP BY
substr(trim(CR_BG_NO),3,8)
,CREDITOR_SHORT_NAME]]>
</sqlstatement>
<sqlstatement name="Q2">
<![CDATA[
SELECT
TXN_DATE
,substr(trim(CR_BG_NO),3,8)
,PAYMENT_TYPE
,TXN_SERIAL_NO
,decode(PAYMENT_TYPE,'AGDEBIT_TRANSFER',DR_TXN_AMOUNT,'AG_REFUND',-RE_TXN_AMOUNT,'AGCREDIT_TRANSFER',-CR_TXN_AMOUNT)
SIGN_AMOUNT
FROM
R00777_REPORT R2
WHERE
R2.TXN_DATE BETWEEN TO_DATE(:DATE_FROM,'YYYY-MM-DD') AND TO_DATE(:DATE_TO,'YYYY-MM-DD')
AND R2.CR_BG_NO = :BANK_GIRO_NUMBER
]]>
</sqlstatement>
</dataQuery>
<dataStructure>
<group name="response" source="Q1">
<group name="head" source="Q1">
<element name="itemCount" value="itemCount"/>
<element name="todayDate" value="todayDate"/>
<element name="creditorBGNumber" value="creditorBGNumber"/>
<element name="creditorName" value="creditorName"/>
</group>
<group name="list" source="Q2">
<group name="listItem" source="Q2">
<element name="transactionDate" value="TXN_DATE"/>
<group name="transactions" source="Q2">
<group name="transaction" source="Q2">
<element name="transactionType" value="PAYMENT_TYPE"/>
<element name="serialNumber" value="TXN_SERIAL_NO"/>
<element name="amount" value="SIGN_AMOUNT"/>
</group>
</group>
<element name="netSum" value="transaction.SIGN_AMOUNT" function="SUM()"/>
</group>
</group>
</group>
</dataStructure>
</dataTemplate>Hi Rainer,
Many Thanks for your reply
I had done all the calculations in the report view earlier
and when i accessed it in the data template as follows
<element name="netSum" value="netSum" />
the xml output that i got was like
<R007>
<response>
<head>
<itemCount>8</itemCount>
<todayDate>2009-02-05T15:50:12.000+01:00</todayDate>
<creditorBGNumber>01829209</creditorBGNumber>
<creditorName>ANDROMEDA</creditorName>
</head>
<list>
<listItem>
<transactionDate>2008-09-03T00:00:00.000+02:00</transactionDate>
<netSum>-6647999</netSum>
<transactions>
<transaction>
<transactionType>AGCREDIT_TRANSFER</transactionType>
<serialNumber>5</serialNumber>
<amount>-1687200</amount>
</transaction>
</transactions>
</listItem>
</list>
</response>
</R007>
But the output that i want is something like this
<R007>
<response>
<head>
<itemCount>8</itemCount>
<todayDate>2009-02-05T15:50:12.000+01:00</todayDate>
<creditorBGNumber>01829209</creditorBGNumber>
<creditorName>ANDROMEDA</creditorName>
</head>
<list>
<listItem>
<transactionDate>2008-09-03T00:00:00.000+02:00</transactionDate>
<transactions>
<transaction>
<transactionType>AGCREDIT_TRANSFER</transactionType>
<serialNumber>5</serialNumber>
<amount>-1687200</amount>
</transaction>
</transactions>
<netSum>-6647999</netSum>
</listItem>
</list>
</response>
</R007>
Hence I used the BIP built in template function like this
<element name="netSum" value="transaction.SIGN_AMOUNT" function="SUM()"/>
but the sum() function is adding up all amounts as expexted,I want
the above newsum value as
Sum(AGdebit-AGCREDIT-AG_refund). -
HTML link in report column -- help!!
I have a report generated from a sql statment. I load an image into a column using the following statement:
select
decode(processed,
-1,'img src="#WORKSPACE_IMAGES#process_fail.gif" border="0" alt="Processing Failed"',
0,'href=#OWNER#.PROC_FUEL_ANN_REP?pk_seq_id=#PK_SEQ# img src="#WORKSPACE_IMAGES#process_form.gif" border="0" alt="Process Form"',
1,'img src="#WORKSPACE_IMAGES#processed.gif" border="0" alt="Form Processed"') "Processed",
"PK_SEQ",......select...from...
What is happening is that the image shows up just fine, and the link appears to work, but the #PK_SEQ# variable is not working. It shows up in the link as "...=#PK_SEQ" SHould be "...=1" The owner field gets populated correctly. The pk_seq field works with my blob download procedure (i.e. xxx.xxxxx?f_file=#PK_SEQ#).
Any clues or suggestions on how to get the #PK_SEQ# var to properly work in the link?
Thanks alot
brux2dc
ps. I had to remove the '< >' characters to make the post appear correctly.You'll need to do string concatenation to get the primary key column from your table to appear in the href. Something like:
'href=#OWNER#.PROC_FUEL_ANN_REP?pk_seq_id=' || PK_SEQ || ' img src=....'
Earl -
Interactive Report Link Column HELP FROM GURUS requested
Hi,
I have an interactive report the data of which returns a file name for an image. I would like to use the Link Column (Link to Custom Target) option. The column in my underlying query has the image file name #ILINK#.
The Target URL is correctly formed using the #ILINK# bind variable http://myserver.mycompany.com/cgi-bin/oracle/img.cgi?img_file=#ILINK#;size=full
However, for the Link Icon (which I wanted to be a dynamic thumbnail of the linked image). The #ILINK# bind variable is not read. Is this because the Link Icon cannot be dynamically determined and must always be the same image?
I can get this working as a regular report using HTML expression, but I really wanted to harness the power of an interactive report.
ThanksHi,
in this case you could build the required html-tags in your SELECT statement, like this:
SELECT EMPNO
, ENAME
, '<a href="blablabla/index"><img src="'||ENAME||'.gif">'||ENAME||'</a>' AS ENAME_LINK
FROM EMP
;brgds,
Peter
Blog: http://www.oracle-and-apex.com -
I have a DropDown box on a jsp form page which gets populated from a resultset connected to a postgresql db. I would like to know how I can add a second column on the drop down.
Here's the snippet of code I'm using:
query= "SELECT prjname FROM projects";
ResultSet rs = stmt.executeQuery(query); %>
Project S/O:
<SELECT NAME=projso>
<option value="dummy">Choose one...</option>
<% while (rs.next() ) { %>
<OPTION VALUE="<%=rs.getString("prjname") %>">
<%=rs.getString("prjname")%>
</OPTION>
<% } %>
</SELECT>
<% stmt.close();
I would like to include prjid as another column in the dropdown.
Thanks in advance!
SmileyRP :)Hi,
If you want to add an extra column to the dropdown box then follow this:
query= "SELECT prjid,prjname FROM projects";
ResultSet rs = stmt.executeQuery(query); %>
Project S/O:
<SELECT NAME=projso>
<option value="dummy">Choose one...</option>
<% while (rs.next() ) { %>
<OPTION VALUE="<%=rs.getString("prjname") %>">
<%=rs.getString("prjname")%>,<%=rs.getString("prjid")%>
</OPTION>
<% } %>
</SELECT>
<% stmt.close();
2. If you want to pass projectid as an input parameter to the next page, then follow this:
query= "SELECT prjid,prjname FROM projects";
ResultSet rs = stmt.executeQuery(query); %>
Project S/O:
<SELECT NAME=projso>
<option value="dummy">Choose one...</option>
<% while (rs.next() ) { %>
<OPTION VALUE="<%=rs.getString("prjid") %>">
<%=rs.getString("prjname")%>
</OPTION>
<% } %>
</SELECT>
<% stmt.close();
Now cheers,Have a nice time.
Thanks,
Rkanth -
RPD Merging 'Decision' column help
Hi,
I’m new to RPD merging; I’m merging very big RPD from the two different repositories.
While merging, we are changing some attributes as ‘Modified or Current ‘in the ‘Decision’. I’ve changed few things in the modified RPD as a part of requirement. Rest of the things as ‘Current’. Here I’m in the position of change 1000 of attributes as ‘Current’ in ‘Decision’ columns :'( . It’s bugging me. Are there any short cuts to do this very simple? Any guide will be much appreciated
Thanks in advance.
ViruuUnfortunately, this is a manual process. When you are merging and there are conflicts you have to go through them one by one.
Maybe you are looking for
-
Send mail to a specific user group when an Inbound Idoc processing fails
I am using standard Message type DEBMAS, but the process code is customed (say ZDEBM as the function module is customed). Can you tell me what configurations are required to activate the error notification message to a user when the inbound idoc fail
-
I was running with Oracle9i and than my computer was slowing and slowing and finally shut down.I tried to restart several times but today I decide to uninstall Oracle. It is so big and I think I should be more patience but I don't have time. So I sta
-
MacBook Blowing Hot Air onto Display
Hi - I just received my new Core 2 Duo 2GHz MacBook (Black). I transferred all the data from my old PowerBook to the MB using Firewire. I noticed that the machine was getting quite hot and the fan turned on. Then as I was installing Windows XP using
-
ITunes wont recognize sansa mp3 player
iTunes wont recognize sansa mp3 player
-
Migration from SAP BC To SAP P.I
HI Experts , I am required to do migration from SAP BC to SAP P.I. I would require the following Info/Help from you as i have not worked on such scenario before this! 1) What kind of challenges can be faced during migration from BC to XI? 2) What is