How to display horizontally to vertically column in oracle
Dear All
How to display horizontally to vertically column in oracle,Please give me Sol. ASAP
Sunil,
Which column is the sal column? I canât see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you canât build sums on string columns. If you want to build sums in an updateable report / tabular form, then donât use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
Regards,
Marc
Similar Messages
-
How to display subtotals in separate column in alv report?
hi,
I am displayed the subtotals for QUantity field BDMNG in Reuse_alv_grid_display in the same column.
but I want to display subtotal in separate column.
How to display subtotals in separate column in alv report?
thanks®ards.
samba.kHi
As far as i know you can't do this,the option you have is to create one more column (subtotal) and populate it by manual calculation at every subtotal (not alv subtotal but yours) .
Best Regards
Yossi -
How to display horizontal line in top-of-page by using object oriented ALV?
How to display horizontal line in top-of-page by using object oriented ALV.
I am created top-of-page in object oriented alv.
But not be successes in showing horizontal line in it.
Can any one pls give solution for this..
Thanks and regards..Hi
Try like this
data: gt_list_top_of_page type slis_t_listheader. " Top of page text.
Initialization.
perform comment_build using gt_list_top_of_page[].
form top_of_page.
* Note to self: the gif must be loaded into transaction OAOR with
* classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.
* I Loaded NOVALOGO2 into system.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
* I_LOGO = 'NOVALOGO2'
* i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = gt_list_top_of_page.
endform. " TOP_OF_PAGE
form comment_build using e04_lt_top_of_page type slis_t_listheader.
data: ls_line type slis_listheader.
clear ls_line.
ls_line-typ = 'A'.
ls_line-info = 'Special'(001).
fgrant = xgrant.
concatenate ls_line-info fgrant
'Stock Option Report to the board'(002)
into ls_line-info separated by space.
condense ls_line-info.
append ls_line to e04_lt_top_of_page.
endform. " COMMENT_BUILD
Use following syntex for footer print in alv:
* For End of Page
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
* For End of Report
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
check this link
http://abapprogramming.blogspot.com/
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5dc3e690-0201-0010-1ebf-b85b3bed962d
Changing width of a custom container dynamically
Display Page numbers in ALV
Insert picture in selection screen.
Logo in OO ALV Grid
Reward all helpfull answers
Regards
Pavan -
How to display more than one column with for each
Hi guys,
how to display more than one column with for each like below?
for each
Item1
Item2
Item3
Item4
Item5
Item6
Item7
Item8
Item9
Item10
End for each
for each
Item1 Item2 Item3
Item4 Item5 Item6
Item7 Item8 Item9
Item10
End for eachTake a look at this to see if the solution provided would work for you: https://blogs.oracle.com/xmlpublisher/entry/multi_column_row_woes
Won't you have more than 10 records in your data file ? If you are going to have only 10 items then you may be able to use position() function to limit it to 3 each..
Take a look at this: https://blogs.oracle.com/xmlpublisher/entry/turning_rows_into_columns
Thanks,
Bipuser -
How to display the the tablix column lines upto footer in rdlc report
How to display the the column lines upto footer in rdlc report.If data are less it should go upto bottom (footer) based on data.
For Example.I have 2 items.it should display 2 items and lines should continue upto footer.
| S.No| Name | Qty | Active | UNIT | Amount |
| 1 | A | 1 | 4 | 34 | 43 |
| 2 | B | 6 | 3 | 23 | 45 |
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
Footer
If I have 5 items.it should display 5 items and lines should continue upto footer.
| S.No| Name | Qty | Active | UNIT | Amount |
| 1 | A | 1 | 4 | 34 | 43 |
| 2 | B | 6 | 3 | 23 | 45 |
| 3 | C | | 4 | 47 | 56 |
| 4 | D | 3 | | 56 | 47 |
| 5 | E | 4 | 4 | 45 | 45 |
| | | | | |
|
| | | | | |
|
Footer
like that it should be adjust based on data length.
please help me how to do it in RDLC (asp.net and c#).....
Your help would be highly appreciated!
Thank you very much in advance!Hi M.S.GopalKrish,
According to your description, it seems that you want to make the tablix rows to fill page size? We can configure the text box height size to work around the issue.
Use this method, we need to calculate the average height size of the text box in the tablix. For more details, please see:
We can use
RowNumber() function to calculate the row number of the tablix.
Calculate the page height size of the tablix in Property windows.
Use the page height size divided by row number. We can get the average height size of the text box.
Hope this helps.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to display more than 60 columns in a report
I have a table defined as follows
id
column_name
column_value
data sample
id col_name column_value
1 col1 val1
1 col2 val2
1 col3 val3
2 col1 val1
2 col2 val2
2 col3 val3
now I want to display the data in a report as follows
id col1 col2 col3
1 val1 val2 val3
2 val1 val2 val3
I was able to generate output using pivots [http://technology.amis.nl/blog/1197/pivot-dynamic-data]
the problem is that I can have more that 60 columns retrieved in each row, the pivot solution will retrieve them correctly but I can't display more than 60 columns in apex reports, why this restriction in apex, any solutionHello:
In the Source section of the report definition choose 'Use Generic Column Names (parse query at runtime only)' and then specify a suitable value for 'Maximum number of generic report columns:'
Varad -
How to create an automatically increment column in Oracle DB Table?
Hi To All
Here I am trying to create a table in Oracle that creates an automatically increment column in Oracle DB Table. i searched almost all Forums.(Even in Oracle). They are saying that, that logic u must implement in Java Code.(*Takes Maximum no from table, add +1 to it, and store it back again)*. apart from this, while creating an table in Oracle, is there any facility like MySQL Database? please help me. Thanks in advance.Hi BalusC
Thanks for Your Response and clue. with that, i succeeded in my application. Thank you very much. here i am giving you the details which i did.
1. I Created a table named orders in Oracle like this.
CREATE TABLE ORDERS (ORDER_ID NUMBER, CUSTOMER_ID NUMBER, ISBN NUMBER,
DESCRIPTION NCHAR(5));
2. I created one sequence in Oracle like CREATE SEQUENCE SEQ01 INCREMENT BY 1 START WITH 1000 3. Then i have written jdbc program like this
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class SequenceTest {
public static void main(String[] args)throws Exception{
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
String cols[] = {"ORDER_ID", "DESCRIPTION"};
PreparedStatement pstmt = con.prepareStatement("INSERT INTO ORDERS (ORDER_ID, CUSTOMER_ID, ISBN,DESCRIPTION) VALUES (SEQ01.NEXTVAL, 104, 966431505,?)", cols);
pstmt.setString(1,"Desc3");
pstmt.executeUpdate();
ResultSet rs=pstmt.getGeneratedKeys();
System.out.println("---- One Row Inserted ----");
} catch (Exception e) {
System.out.println("---- Failed Due To "+e);
4. When i ran above program 5 times, i got the following Data into my Oracle Table (select * from orders)
ORDER_ID CUSTOMER_ID ISBN DESCR
1000 101 966431502 Desc0
1001 102 966431503 Desc1
1002 103 966431504 Desc2
1003 104 966431505 Desc3
1004 104 966431505 Desc3
1005 105 966431506 Desc4
6 rows selected.
But i dont know how to do this type of program with out using prepared statements. i tried, and i got exception *"Missing Expression"* .
Once again Thank You very much for your clue. -
How to display workitems values with Hyperlink in Oracle BPM workspace
Hi,
In Oracle BPM workspace , is there any way to display hyperlinks for work items i,e., I want to give a hyperlink to the values displayed in the default columns under the work items. So that if user clicks any hyperlink , a new information window will be displayed.
Thanks
Bharath.Hi,
If you create a derived table and pull the objects i guess it should work. Other wise this error will throw up.
There are some ideas to resolve this here, but not sure it will work - Error trying to modify SQL in Data Provider
Arun -
How to display a listView vertically with multi columns?
Hi,
Refer to the sample HTML
ListView item templates sample. If I want to display the listView (in scenario1.html) in three columns with vertical scroll bar, what should I do?
I try to change 'layout' property of listView from 'GridLayout' to 'ListLayout' in scenario1.html, like this:
<div id="listView"
class="win-selectionstylefilled"
data-win-control="WinJS.UI.ListView"
data-win-options="{
itemDataSource: myData.dataSource,
itemTemplate: regularListIconTextTemplate,
selectionMode: 'none',
tapBehavior: 'none',
swipeBehavior: 'none',
layout: { type: WinJS.UI.ListLayout }
}">
</div>
The listView will be vertical but with only one column.You should modify your Template to something like:
<table >
<tbody>
<tr data-win-control="WinJS.Binding.Template" id="regularListIconTextTemplate" >
<td data-win-bind="textContent:a"></td>
<td data-win-bind="textContent:b"></td>
<td data-win-bind="textContent:c"></td>
</tr>
</tbody>
</table>
And position that Table where you want the items to appear. I put some binding examples (attributes a,b and c) but you use whatever attributes and content you need in each column.
For a working example I used the following HTML on an empty "default.html":
<div id="listView" class="win-selectionstylefilled" data-win-control="WinJS.UI.ListView" data-win-options="{ layout: { type: WinJS.UI.ListLayout } }">
</div>
<table >
<tbody>
<tr data-win-control="WinJS.Binding.Template" id="regularListIconTextTemplate" >
<td data-win-bind="textContent:a"></td>
<td data-win-bind="textContent:b"></td>
<td data-win-bind="textContent:c"></td>
</tr>
</tbody>
</table>
Then on the default.js I used:
app.onactivated = function (args) {
if (args.detail.kind === activation.ActivationKind.launch) {
if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
// TODO: This application has been newly launched. Initialize
// your application here.
} else {
// TODO: This application has been reactivated from suspension.
// Restore application state here.
args.setPromise(WinJS.UI.processAll());
var chartlines = new Array();
chartlines.push({a: '1-1', b: '1-2', c: '1-3' });
chartlines.push({ a: '2-1', b: '2-2', c: '2-3' });
chartlines.push({a: '3-1', b: '3-2', c: '3-3' });
chartlines.push({a: '4-1', b: '4-2', c: '4-3' });
var listView = document.getElementById("listView").winControl;
listView.itemTemplate = document.getElementById("regularListIconTextTemplate");
listView.itemDataSource = (new WinJS.Binding.List(chartlines)).dataSource;
Hi,
Essentially, this method creates an one-column listView, too. My purpose is to create a vertical listView with three items in each row.
If I add a rotation style to the listView in 'scenario1.html' of the sample HTML
ListView item templates sample, like this:
<div style ="transform:rotate(90deg)" id="listView"
class="win-selectionstylefilled"
data-win-control="WinJS.UI.ListView"
data-win-options="{
itemDataSource: myData.dataSource,
itemTemplate: regularListIconTextTemplate,
selectionMode: 'none',
tapBehavior: 'none',
swipeBehavior: 'none',
layout: { type: WinJS.UI.GridLayout }
}">
</div>
The listView seems to 'vertical', and is like what I want. But, I do not change the listView essentially. The listView I want is that which layouts vertically and has three separated items in each row. -
How to display more than 30 columns in one line?
Hi,
I want to display some 30 columns in the report.
I dont want to split it into sub reports.
How can i do.
In that i have 3 groups.
For each group i need one total.
For example.
after group 3 i need sub-total
after group 2 i need total
after group 1 i need Grand-total.
Please help me to solve this issue.
Thanks in advance,
Saravanakumar.Sorry about that,
Ill tell you clearly.
Actualy I am having 12 columns, under each column, i have 5 sub-columns.
I couldn't accomodate all the columns in a single horizontal line(I tried in A2 paper size).
So i decided to have cross tab. Because top 5 columns can be dinamic.
How can have subtotals inside cross tab after each group.
Thanks ,
Saravanakumar -
How to display total for a column in updateble report
How can I display total on a report column?
the query is
select htmldb_item.checkbox(1,invoice_id) invoice_id,
htmldb_item.DISPLAY_AND_SAVE(2,invoice_no,15)invoice_no,
htmldb_item.DISPLAY_AND_SAVE(3,to_char(invoice_date, 'DD-MON-YYYY'),20) invoice_date,
htmldb_item.DISPLAY_AND_SAVE(4,net_amount,15) NET_AMOUNT,
htmldb_item.text(5,net_amount,null,10) amount_adj,
htmldb_item.text(6,net_amount,null,10) actual_amt
from INVOICE
where OWNER_TYPE = 'CUSTOMER'
and OWNER_ID = :P57_CUSTOMER_NAME
group by invoice_id,invoice_no, invoice_date,net_amount
In the report column attributes the sum column is checked for the sal field
When I run the report, I get a Sub-total of 0 and a Report Total of 0. What am I doing wrong?
thanksSunil,
Which column is the sal column? I canât see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you canât build sums on string columns. If you want to build sums in an updateable report / tabular form, then donât use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
Regards,
Marc -
How to display data with dynamic columns in JavaServerFaces?
I have a simple JSF application, where I click a button, it will display another page with data table of 2 columns and 3 rows of data. These data are �hard coded� for testing only.
In the jsp I will use like this:-
<h:dataTable
value="#{dataBean.users}"
var="record">
<h:column>
<h:outputText value="#{record.name}"/>
</h:column>
<h:column>
<h:outputText value="#{record.title}"/>
</h:column>
</h:dataTable>
Let�s say, if my data cannot be defined in advance in terms of quantity and names, how should I write my jsp and how should I define in java program?
For example, instead of the columns �name� and �title� as in above, I will know the column names and the number of columns at run time, how should I do?You need a custom component in this case. There afew out there, you may want to check what is out there before you write your own
-
hi
i am storing different values in a column like(A-RSTI1234/B-RSTUY1234)
using delimiter. now i want to display this stored value in different fields like(xfield=RSTI1234 and yfield=RSTUY1234) can any body help me in achieving this!!
thanks n regards
sunil
e-mail [email protected]How can I achieve this?
The solution should be more general for situation if many tabs are involved,....So do you expect a generalized SQL statement that handles are arbitrary number of tables with arbitrary column names?
It would be helpful if you provided DDL (CREATE TABLE ...) for tables involved.
It would be helpful if you provided DML (INSERT INTO ...) for test data.
It would be helpful if you provided expected/desired results & a detailed explanation how & why the test data gets transformed or organized. -
How to display images from BLOB column via APEX 4.0
Hello,
I did the following in order to display images of two Oracle records on the APEX page. I am using APEX Version : 4.0.1.00.03 , Oracle DB Version : 10.2.0.4.0.
1. Created An oracle table TEST_FORM
with 3 columns
( ID number, MIME_TYPE varchar2(255) , Image BLOB )
2. Inserted two records
10001, image/gif, ( actual image1)
10002, image/gif, ( actual image2)
3. created an Oracle procedure
CREATE OR REPLACE PROCEDURE show_my_form ( p_image_id IN test_form.id%type) AS
l_mime test_form.mime_type%type;
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc test_form.IMAGE%type;
BEGIN
SELECT mime_type, IMAGE
, DBMS_LOB.getlength (IMAGE)
INTO l_mime, lob_loc, l_length
FROM test_form
WHERE id = p_image_id;
owa_util.mime_header(l_mime, false);
htp.p ('Content-length: ' || l_length);
owa_util.http_header_close;
wpg_docload.download_file (lob_loc);
END show_my_form ;
4. In Apex 4.0
step1. Created an interactive report on a new APEX page
step2. Specified the following in the Region Source
select id, mime_type, '<img src="#OWNER#.show_my_form ?p_image_id=#ID#" />' photo
from TEST_FORM
The column result shows as <img src="CCS.show_my_form?p_image_id=#ID#" />
I am unable to display the column image as a link to a proper image photo.
Could you please advise me if I missed anything ?
Thanks a lot.
Regards
Susanna
Edited by: user10318332 on 13/12/2010 15:51
Edited by: user10318332 on 13/12/2010 20:10Maybe the space you have before the ? is causing issues. there shouldn't be any space.
Your procedure looks to be much the same of one that I have.
Have you granted execute on your procedure?
Also, what version DB are you running? This could be another issue: http://daust.blogspot.com/2006/04/xe-calling-stored-procedures.html
But anyway, you don't need to create your own procedure these days. You could do the following:
in your query, have a column: dbms_lob.getlength(blob) photo ; save, then in column attributes for that column, apply a format mask. There is usually a link below the text box for the format mask - BLOB Download Format Mask, which will help you build the format mask. But it is documented here: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/advnc.htm#BCGGJHEF
Ta,
Trent -
How to display records dynamically by columns of the table?
hi to all,
i'm trying to figure out quite a long time now. is it possible to populate html table with records via columns? (because most of us are familiar with rows up to the last record) i do have a pseudocode below:
print ('<table>');
while (!eof) {
if (cnt % 4 == 0)
// breakline w/c means let's have another row since
// we displayed the records 4x now so we need
// another row to continue
else
// continue column generation
cnt++
print ('</table>');
i don't know if this is quite clear... but i do hope you know what my goal is... i have an app that i need to display (like live.com in searching images) to display all the searched items (and then onmouseover it will get big some sort)... but since the records i have are the ff:
CREATE TABLE "ERA_DB"."PARTS"
( "PARTID" VARCHAR2(15 BYTE) NOT NULL ENABLE,
"PARTNAME" VARCHAR2(75 BYTE) NOT NULL ENABLE,
"RETAILPRICE" NUMBER NOT NULL ENABLE,
"COSTPRICE" NUMBER NOT NULL ENABLE,
"ACTIVE" NUMBER DEFAULT 1,
"CATEGORY" VARCHAR2(2 BYTE) DEFAULT 'NA',
"DESCRIPTION" VARCHAR2(255 BYTE),
"TYPE" NUMBER DEFAULT 1 NOT NULL ENABLE,
CONSTRAINT "PARTS_PK" PRIMARY KEY ("PARTID") ENABLE
i need to display like the ff:
partname
partid
image
description
price
these are inside a box w/ borders (the concept is like live.com in their image search)
thanks so much!This was written for pear::db but I think it should go pretty similar for ADODB.
$result = $db->query ("SELECT PRODUCT FROM INVENTORY WHERE COMPANY='$_SESSION[company]'");
while ($data1 = $result->fetchRow(DB_FETCHMODE_ASSOC))
$data2 = $result->fetchRow(DB_FETCHMODE_ASSOC);
$data3 = $result->fetchRow(DB_FETCHMODE_ASSOC);
$data4 = $result->fetchRow(DB_FETCHMODE_ASSOC);
$rows .= " <tr>\n";
$rows .= " <td width=150 align=right>".$data1[PRODUCT]."</td>\n";
$rows .= " <td width=150 align=right>".$data2[PRODUCT]."</td>\n";
$rows .= ' <td width=150 align=right>".$data3[PRODUCT]."</td>\n";
$rows .= " <td width=150 align=right>".$data4[PRODUCT]."</td>\n";
$rows .= " </td>\n";
$rows .= " </tr>\n";
}
Maybe you are looking for
-
How To See Away Status Gmail Chat Buddies In Messages?
Hi, I'm only seeing buddies shown from my google talk account who are online, the away ones don't show up. Is there a way to change this? Thanks
-
I've reinstalled more times than I care to count. Been on the phone with support people- no one seems to know how to install standard in my config. I have a fixed business class IP- it connects from their modem to my Apple Extreme basestation N gigab
-
Verity Unable to create collection
For some reason, our Verity indexer will no longer create new collections. ColdFusion 7.0.2 standard on W2k3. If you attempt to create a collection you're greeted with the following error: Unable to create collection AHEC. Unable to create collection
-
Anyone editing FCP on a 12" iBook or Powerbook?
I'm looking at writing an article about "micro" HD production on the road - HD in a backpack, that sort of thing. Now, when I say production, I'm not talking very high end. I know the hardware isn't there yet! Think news, documentary or magazine show
-
Simple 9 column table with a column header
I have looked for hours at the docs for creating a scrollable table. I think what I want is so simple, that the complexity of the docs overwhelms me. I need a jTable that once is fills over 8 rows, it begins to scroll. The table then is 9 columns wid