Incorrect display of table
Hey all,
I have a problem with the display of my table.
I have a category table with category id , name, and description.
The records for category id and name display perfect but in the description i have the categoryid,name, and description...here is what it looks like to make myself more clear
Categoryid name description
1 Health 1HealthTo maintain your dog's health
I dont know what part of my code is wrong for this..here it is---->
<TABLE align ="centre" border= "5">
<TR>
<% for(int i=1;i<=rs.getMetaData().getColumnCount();i++)
%>
<TD><FONT size=5 FACE="Arial"></FONT>
<%= rs.getMetaData().getColumnName(i) %>
</TD>
<% } %>
</TR>
<% while (rs.next())
{ %>
<TR BGCOLOR="#ffff00">
<% for(int i=1;i<=rs.getMetaData().getColumnCount();i++){ %>
<%if (i==4){ %>
<TD><a href="ProductList.jsp?categoryId=<%= rs.getString(categoryId")%">"><%=rs.getString("name")%> <%=rs.getString("description") %></a></td>
<% } else { %>
<TD><%= new String(rs.getString(i)) %></TD>
<% }
}%>
</TR>
<% } %>
</TABLE>
<%
rs.close();
st.close();
} catch (Exception e) {
throw (new ServletException(e));
%>
</BODY>
</HTML>
Also my description records are displaying as the hyperlinks but i want the records in the name column to display as the hyperlink instead.
I hope somebody can help me and i'd appreciate it very much.
Thanx</a>
code seems good.
To get the hyper link only for the name part put </a> after <%=rs.getString("name")%>.
Post the generated html source for this table part.
Similar Messages
-
Report in Crystal 10 incorrectly displays rows when it shouldn't
We have a problem in Crystal Reports 10 whereby the report incorrect displays 6 rows/records in the report but when we run the exact same SQL statement on its own (outside of Crystal) it does not bring back any results.
ClareThat didn't work either. I'm still getting the wrong timestamp.
But, I did try something else, with more unexpected results. Just for the heck of it, I exported my workbook to excel (the workbook showing the 12:00 AM timestamps). When I opened the Excel file, it has the Archive Date with the correct times. Very strange. I export the workbook with all 17-NOV-09 12:00 AM timestamps in every Archive Date row, and in Excel it opens with the correct dates (17-NOV-09 10:15, 10:18 and 10:23 AM). So weird.
That seems to reinforce that Discoverer can at least see the dates as they exist in the data warehouse, but for some reason, it insists on displaying 12:00 AM. And exporting the 12:00 AM results to Excel actually produces the correct times. Is this like some Java bug or something? I seem to get bit by Java problems more often than not.
***EDIT***
I shouldn't say your suggestion didn't work entirely. It worked in that I am no longer getting 17-NOV-09 12:00 AM. But, it's returning a timestamp that does not exist for the given record. For example, all 3 Nov 17th timestamps (in the Discoverer report) are now showing 17-NOV-09 10:11 AM. 10:11 AM isn't even a timestamp available in the database for any record in the table. Why did it arbitrarily pick 10:11? It seems like your suggestion to create a TO_CHAR calculation from the column is on the right track, but the 10:11 AM thing is odd.
Edited by: user527082 on Nov 17, 2009 4:29 PM -
Incorrectly defined logical table source (for fact table X
Hi!
Imagine the following Physical Diagram:
- Dim A
- Dim B
- Fact A
- Fact B
Joins:
- Dim A is parent of Dim B
- Fact B has a FK to Dim B
- Fact A has a FK to Dim A
Business Layer:
- Logical Table Dim A
- Logical Table Dim B
- Logical Table Fact A
- Logical Table Fact B
Joins:
- same joins (not FK Joins) that Physical Layer
When we build a report that only has one column of Dim A and one column of Dim B (A is parent of B), the following error appears:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table "Fact A") does not contain mapping for [Dim A.col1, Dim B.col1]. (HY000)
What is wrong?
Help!
Thanks.Hi,
The joins of dimensions go via a fact table. In your case there is no common fact table.
You can solve this by drag/drop a field from the physical table Dim B on the displayed logical table source of the logical table Dim A.
Now the BI Server knows that Dim A and B have a physical relationship.
Regards -
OBIEE: Incorrectly defined logical table source doesn't contain mapping
In OBIEE 10.1.3.2 I have a very simple thing but cannot get it to work. Hopefully someone can point out the mistake. I have the same schema on two different database that I want to compare data.
The schema is simple. Table (dimension) A has two columns: id and name. Table (Fact) B has two columns: id and value. Table B.id is a foreign key to A. I imported two database schema into the physical layer and for each database, I built the foreign key relationship between table A and B. In the logical layer, I have two logic tables, one to represent A (Dimension) and the other B (Fact) with a logical join. Each logical table has two data sources. For the dimension tables, both id and name columns have two sources. For the fact table, the id has two sources and for the value, I created two separate columns, one called value1 and the other value2 with one from one database's B table's value column and the other from another database's B table's value. They then were made available at presentation layer.
Now in the Anwser, I can build a query with id from dimension and value1 from fact; it displayed fine. Same with a query with id from dimension and value2 from fact, it displayed fine. However, if the query is id, value1 and value2, I got the following error
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table B) does not contain mapping for [B.value1 [ ] , B.value2 [ ] ]. (HY000)
Is there something I have to do additional to make both values appearing the same time.?
Thanks for your help
RalphHi, Siddhartha P
I don't think I understand your information. I couldn't find connection pool at the business mapping layer. I only see it in the physical layer. Do you mean to do the mapping at the logical source table? That's only places I see any mappings and I don't see complex join there (only inner join, left outer, right outer and full outer) What mappings should I need to create between table B (fact table) of database 1 and table B (fact table) of database 2. I thought they don't have any relationship other than join through a dimension table which has columns that map to both table A (dimension table) of database 1 and 2. Then the logical fact table has 3 columns, one is id (to join to Dimension table) with two mappings (one to table B of database 1 and one to table B of database 2) and one column value1 which maps only to table B's value of database 1 and another column value2 maps to table B's value of database 2. That seems to be done correctly because I can pick column id and value1 or column id and value2 and have them displayed correctly but not all 3. I thought if it can display the two separately correctly, they should be able to display all 3. no?
I am not getting any inconsistency error.
There must be something I still don't understand. If you don't mind give me a little more direction, that would be great.
Thanks
Ralph -
Automatic Payment program -line item cleared not displaying in table
automatic Payment program -line item cleared not displaying in table
i have re run the APP program DUSR1 same earlier it has run twice but table dose not show double payment to vendors how to resolve the issue.
Can some one please guide me on this.Hi Priyanka,
First, which table are you referring to. If your fist APP run clears the line item, it will no longer be available in the open item.
Please be more specific on the problem so that we can try to help you. If possible, please provide screenshots.
Regards,
Ganesh -
How to display a table after clicking on a chart in ssrs?
Hi all experts,
I need to display a table control after clicking on a chart.
I was looking for the visibility property of the table which can be set based upon click on the bar chart.
Please respond asap...Hi Manisha,
If I understand correctly, you want to control the table visibility through clicking the chart. In this case, please refer to the detailed steps below:
1. Create the parameter named Control, check the Boolean option in the drop-down list of the Data Type, and select Hidden in the parameter visibility tab.
2. Specify the default value of the parameter to True.
3. Click the series in the chart and select “Action” in the Properties pane and click the ellipsis as follows:
4. Select the “Go to report” tab, and select the self-report in the “Specify a report” tab.
5. Pass the parameter as bellows:
Name:Control Vaule:false
6. Right click the table control, select Tablix Properties and select the Visiblity property.
7. Select the tab of Show or hide based on an expression, and add the expression below:
=iif(Parameters!Control.Value=true,true,false)
If you need more assistance, please feel free to let me know.
Regards,
Heidi Duan -
How to display a table control in a report
hi
how to display a table control in a reportcreate a screen in your report.
Call that screen in your report.
While designing your screen, use Table control creation wizard to create table control on that screen.
http://www.planetsap.com/online_pgm_main_page.htm -
Error when displaying the table
hellow,
here i have to .htm pages, in first page i am entering the table name, and it has to display the table details in second page.
but in second page i am getting error like field catalog not found
plz help me.
with regards
babuhi babu rs
Please post the code of the two bsp page with the layout as well as abap code. Only than anybody can help you. -
Error message: when downloading data from 2nd display tag table
I am using disaply tag to display data in jsp page. I am using three different section to display the data with three display tag table. The data is displaying correctlly. The display tag downlod excel sheet is working for first display tag table. When i am trying to download data from 2nd and 3rd display tag table i am getting following error:
Exception: [.TableTag] Unable to reset response before returning exported data. You are not using an export filter. Be sure that no other jsp tags are used before display:table or refer to the displaytag documentation on how to configure the export filter (requires j2ee 1.3).
at org.displaytag.tags.TableTag.writeExport(TableTag.java:1438)
at org.displaytag.tags.TableTag.doExport(TableTag.java:1364)
at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1215)
at org.apache.jsp.InstalBase_005fReport_jsp._jspService(InstalBase_005fReport_jsp.java:974)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
As per the Exception i don't have any jsp tag before the display tag.
Please help me if any body has any solution for the above exception.
Thanks in advance.
Smruti..See also http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html
-
How to display a table data on Screen having a Table control
Hi ,
I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.Hi Gayatri,
After creating table control do the following steps.
1. In the flow logic section write the following code:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
MODULE ASSIGN_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
LOOP AT I_LIKP.
ENDLOOP.
I_LIKP is the internal table which is used to display table data in the table control.
2. In Process Before Output, in the module STATUS_0200 write the following code:
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
In Process After Input, in the module USER_COMMAND_0200 write the following code:
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
MOVE-CORRESPONDING I_LIKP TO LIKP.
So, Totally your flow logic code should be like this.
TABLES: LIKP, LIPS.
DATA: BEGIN OF I_LIKP OCCURS 0,
VBELN LIKE LIKP-VBELN,
ERNAM LIKE LIKP-ERNAM,
ERZET LIKE LIKP-ERZET,
ERDAT LIKE LIKP-ERDAT,
MARK TYPE C VALUE 'X',
END OF I_LIKP,
BEGIN OF I_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
WERKS LIKE LIPS-WERKS,
LGORT LIKE LIPS-LGORT,
END OF I_LIPS,
FILL TYPE I.
CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LIKP'.
SELECT VBELN
ERNAM
ERZET
ERDAT
FROM LIKP
INTO TABLE I_LIKP
WHERE VBELN = LIKP-VBELN.
IF I_LIKP[] IS INITIAL.
CALL SCREEN 200.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module assign_data OUTPUT
text
MODULE ASSIGN_DATA OUTPUT.
MOVE-CORRESPONDING I_LIKP TO LIKP.
ENDMODULE. " assign_data OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE STATUS_0200 OUTPUT.
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE USER_COMMAND_0200 INPUT.
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
Save and Activate the program along with the screen in which you have included table control.
Hope this will help you.
Regards
Haritha. -
What is the right way to display a table in Java web dynpro using a node.
Hi experts,
I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro. In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
Thanks and Regards.
Vaibhav Tiwari.Please refer to my post.. you will get the answer
Dynamic Table - same data repeating in all rows
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes.
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt. -
Need to display Internal table records on screen without using table contro
Hi Experts,
I have a requirement to display internal table on screen which is having three columns (Material no, Serial No and quantity).
But I can't use table control as it is not supported by hand held devices.
They are going to use this transaction on hand held devices.
Thanks In advance.
GauravYou should be able to use the good old STEP LOOP processing for this... create your three fields in the row then convert them to a STEP-LOOP.
You can look up in the help how to work with STEP-LOOPs if you are not familiar with it. It was the way to manage table-like information before the age of table controls -
How to display all tables residing in my database
i'm using 10g express edition.
i'm developing a .net application using oracle
i want display table infomation in a datagrid
for that i need to select tables fromthe database using the interface given by them
in that i found server name field.....what it actually means?
also how to create a new database in 10g and how to display all tables residing in the database?
pls help me
thanking u
chaitanyauser11359516 wrote:
i want display table infomation in a datagrid
select owner||'.'||table_name owner_table_name
from all_tables
user11359516 wrote:in that i found server name field.....what it actually means?i'm not sute what you mean by server name field? if you refer to table column name see this code below:
select owner||'.'||table_name||'.'||column_name table_column_name,
decode(data_type,'VARCHAR',data_type||'('||to_char(data_length)||')',
'VARCHAR2',data_type||'('||to_char(data_length)||')',
'NUMBER',decode(data_scale,0,data_type||'('||to_char(data_precision)||')',
null,data_type,
data_type||'('||to_char(data_precision)||','||to_char(data_scale)||')'),
data_type) type,
nullable
from all_tab_cols
order by table_name, column_id -
version 7.0 (and in 8.0) : FF is either hijacking on incorrectly displaying fonts on some sites,''' regardless of what is defined in the site's CSS'''. Example: in Safari, the informationweek.com homepage '''always''' displays the fonts correctly. Recently, it's '''RARELY''' correct in FF, but occasionally it will "suddenly" displays right. The CSS has NOT changed. Multiple users are experiencing this issue, on multiple platforms (FF7, in windows)
Example: in Safari, the informationweek.com homepage always displays the fonts correctly. Recently, it's RARELY correct in FF, but occasionally it will "suddenly" display right. The CSS has NOT changed, code has not changed (that I'm aware of).There are lots of CSS errors shown in the "Firefox/Tools > Web Developer > Error Console" (Shift+CtrL+J) on that website.
Can you attach a screenshot?
*http://en.wikipedia.org/wiki/Screenshot
Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
You can do a check for corrupted and duplicate fonts and other font issues:
*http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts
*http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html -
DISPLAY UNDEFINE TABLES IN SQL PLUS
i am using Oracle 10g
for last 1 week i seen unrecognized table names in my user while i issue following command
SQL > select * from tab;
table name like ......BIN$ and many other characters after it...
i cannot drop that table also
from DBA studio above table can't view but from SQL PLUS it display as table
what i have to do to drop such tables ? please give adviceThese are recyclebin tables. A normal 'drop table' command puts a table into the recyclebin, you can get it back through 'flashback drop' command. Use 'purge user_recyclebin' to delete the tables finally.
Werner
Maybe you are looking for
-
ShortDump in PCUI Sales Order Application
Hi, Installed BP for CRM on ep 6.0 sp12 , crm 4.0 sp9 and assigned a Interaction center manager role to an user. and 1. went to sales order application 2. selected a sales order 3. in the detail area, selected payment form tab 4. F4 help on card n
-
How do i get airport utility to recognize airport express?
Airport express does not show up on my list of devices when I start up Airport Utility. I'd love to use express with my stereo, but I cannot.
-
MacOS 10.9.4 and Firefox tabs
Hi; Just updated to MacOS 10.9.4. Can't seem to open new tabs (Command T, File > New tab, clicking the + on the tab area) but can open new windows. Anyone else experiencing this? Chris
-
you see in the red box its say plz contact iTunes Support. i try may times but it still like this happen
-
Version 1.0 - 3G possibility??
I'm guessing this has been asked and answered - probably a gazillion times - but is the supposed absence of 3G in the current iPhone reality?? There were a TON of rumors out there that said that the current iPhone DID have 3G in it - as just needed f