How to display Rank with specified columns.
Hi All,
I have three columns in my answers.
I want to develop the report mak –up looks like bellow.
Region Zone Amount Rank max(Amount Count(Amount)
010 010-11 10 2 15 3
010 010-12 5 3 15 3
010 010-13 15 1 15 3
011 011-14 30 1 30 2
011 011-15 25 2 30 2
- > Last count column is count of rows for Region.
Thanks,
Raja
In your repository create one amount logical column with the sum aggregation rule (SumAmount)
Then create a report with the following formules:
- Region
- Zone
- SumAmount
- Rank (SumAmount by Region)
- Max (SumAmount by Region)
- Count(Zone by Region)
Cheers
Nico
Similar Messages
-
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
-
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 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 string with XML content in 4.6?
Hi,
I`d like to know how to display string with XML content in it for 4.6.
4.6 has not method parse_string.
And example like this is not helpful:
DATA: lo_mxml TYPE REF TO cl_xml_document.
CREATE OBJECT lo_mxml.
CALL METHOD lo_mxml->parse_string
EXPORTING
stream = gv_xml_string.
CALL METHOD lo_mxml->display.
Thank you.Hi,
May be you can use fm SAP_CONVERT_TO_XML_FORMAT. But it have some issues with memory usage, the program consumed tons of memory during convert.
a® -
PPR Report ,How to display Label with TOTAl
Hi,
How Can i display PPR Report ,How to display Label with TOTAl like
[http://apex.oracle.com/pls/apex/f?p=267:30:]
Thanks
Edited by: 805629 on Jan 6, 2011 3:34 AMHi,
For PPR Report:
Select "Yes" in "Enable Partial Page Refresh" item of "Layout and Pagination" region in Report Attributes of that report.
For display Label with TOTAL:
Use "Break Formatting" region in Report Attributes of that report.
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
How to display horizontally to vertically column in oracle
Dear All
How to display horizontally to vertically column in oracle,Please give me Sol. ASAPSunil,
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 use INSERT with no column name specified?
I want to insert rows into a database table using JDBC's PreparedStatement. I want to specify all values for each row, so that in plain SQL I would not have to specify column names. I wonder if I can do same thing with JDBC in the same manner (it would save a lot of network traffic as far as I can understand)? The problem is:
I need to know the data types of the columns to use correct setXXX method on my PreparedStatement. For example: ps.setString() for CHAR data and ps.setBytes() for binary data. I can use Connection.getMetadata().getColumns(..,..,tableName,'%') to get column types for all columns in my table as a ResultSet. However but I am not sure if I get them in the right order, i.e. in the order in which the columns have been defined for the table in CREATE TABLE.
So it seems I have a tough choice: to get type information in order externally or to specify (and probably transfer via network) column names in each INSERT statement. :-(
Do I have a better choice? Any ideas will be highly appreciated.....if I get them in the right order, ....Only reason for that is if you are using a meta-data type solution. If you are then there is no solution. After all customer name and address are both just text. How could you tell which is first even if you had a way to handle the types?
But if your inserts are fixed then try using varchars (single ticked entries.) This depends on the database/driver. If is supported then you will have to use SimpleDateFormat to format dates/times in the correct format for the database or use a prepared statement with bind variables. -
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 -
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 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 display data with the same text and key in the drop down list?
Hi All,
Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
REPORT ZTESTING.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST,
c(20) type c.
* c = 'select any'.
data:begin of itab occurs 0,
kunnr like kna1-kunnr,
name1 like kna1-name1,
end of itab.
data:begin of jtab occurs 0,
kunnr like kna1-kunnr,
land1 like kna1-land1,
end of jtab.
PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
default 'SELECT'.
AT SELECTION-SCREEN OUTPUT.
NAME = 'p_list'.
VALUE-KEY = 'Name'. "---> Data for key is the same with text
VALUE-TEXT = 'Name'. "--> Data for text is the same with key
APPEND VALUE TO LIST.
VALUE-KEY = '2'.
VALUE-TEXT = 'Country'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
start-of-selection.
select kunnr name1 up to 20 rows from kna1 into table itab.
select kunnr land1 up to 20 rows from kna1 into table jtab.
case p_list.
when '1'.
loop at itab.
write:/ itab-kunnr,itab-name1.
endloop.
when '2'.
loop at jtab.
write:/ jtab-kunnr,jtab-land1.
endloop.
endcase.
<Added code tags>
Moderator Message: Please use the "code" tags to format your code snippet.
Edited by: Suhas Saha on Nov 17, 2011 11:19 AMshawnTan wrote:
Hi All,
>
> Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
>
>
REPORT ZTESTING.
>
> TYPE-POOLS: VRM.
>
> DATA: NAME TYPE VRM_ID,
> LIST TYPE VRM_VALUES,
> VALUE LIKE LINE OF LIST,
> c(20) type c.
>
> * c = 'select any'.
>
> data:begin of itab occurs 0,
> kunnr like kna1-kunnr,
> name1 like kna1-name1,
> end of itab.
>
> data:begin of jtab occurs 0,
> kunnr like kna1-kunnr,
> land1 like kna1-land1,
> end of jtab.
>
> PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
> default 'SELECT'.
>
> AT SELECTION-SCREEN OUTPUT.
>
> NAME = 'p_list'.
>
> VALUE-KEY = 'Name'. "---> Data for key is the same with text
> VALUE-TEXT = 'Name'. "--> Data for text is the same with key
> APPEND VALUE TO LIST.
>
> VALUE-KEY = '2'.
> VALUE-TEXT = 'Country'.
> APPEND VALUE TO LIST.
>
> CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
>
> start-of-selection.
> select kunnr name1 up to 20 rows from kna1 into table itab.
> select kunnr land1 up to 20 rows from kna1 into table jtab.
>
> case p_list.
> when '1'.
> loop at itab.
> write:/ itab-kunnr,itab-name1.
> endloop.
>
> when '2'.
> loop at jtab.
> write:/ jtab-kunnr,jtab-land1.
> endloop.
> endcase.
>
> <Added code tags>
>
> Moderator Message: Please use the "code" tags to format your code snippet.
>
> Edited by: Suhas Saha on Nov 17, 2011 11:19 AM
This surely seems to be a bug to me(if not by design), did you check for any SAP notes? Perhaps a front end trace can help(Note 407743) !
-Rajesh. -
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 rectangles with the following code in a JPanel?
I am trying to make a bunch of random rectangles appear inside a JPanel on a GUI form. Im not sire how to display the form and panel with random rectangles. I have in my package the MyRectangle class, a blank JForm class called RectGUI and the class for the panel RectGUIPanel. The following code is from my panel and it should create random rectangles okay but how do I display them inside of a Panel on my RectGUI form? Thanks for the assistance.
//Declare variables
private int x;
private int y;
private int width;
private int height;
private Color color;
Random rand = new Random();
public class RectanglePanel extends JPanel
public void displayRectangles()
// Declare an arraylist of MyRectangles
ArrayList<MyRectangle> myArray = new ArrayList<MyRectangle>();
int maxNumber = 300;
// Declare Frame and Panel
JFrame frame = new JFrame();
Container pane = frame.getContentPane();
RectanglePanel rect = new RectanglePanel();
// Set Frame attributes
frame.setSize(700, 500);
frame.setLocation(100,100);
frame.setAlwaysOnTop(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle(" Rectangle Program");
frame.setVisible(true);
for (int i = 0; i < maxNumber; i++)
MyRectangle rec = createRandomRec();
myArray.add(rec);
rect.repaint();
public MyRectangle createRandomRec()
x = rand.nextInt();
y = rand.nextInt();
width = rand.nextInt();
height = rand.nextInt();
color = new Color(rand.nextInt(256), rand.nextInt(256), rand.nextInt(256));
return new MyRectangle(x, y , width, height, color);
}I am trying to make a bunch of random rectangles appear inside a JPanel on a GUI form. Im not sire how to display the form and panel with random rectangles. I have in my package the MyRectangle class, a blank JForm class called RectGUI and the class for the panel RectGUIPanel. The following code is from my panel and it should create random rectangles okay but how do I display them inside of a Panel on my RectGUI form? Thanks for the assistance.
//Declare variables
private int x;
private int y;
private int width;
private int height;
private Color color;
Random rand = new Random();
public class RectanglePanel extends JPanel
public void displayRectangles()
// Declare an arraylist of MyRectangles
ArrayList<MyRectangle> myArray = new ArrayList<MyRectangle>();
int maxNumber = 300;
// Declare Frame and Panel
JFrame frame = new JFrame();
Container pane = frame.getContentPane();
RectanglePanel rect = new RectanglePanel();
// Set Frame attributes
frame.setSize(700, 500);
frame.setLocation(100,100);
frame.setAlwaysOnTop(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle(" Rectangle Program");
frame.setVisible(true);
for (int i = 0; i < maxNumber; i++)
MyRectangle rec = createRandomRec();
myArray.add(rec);
rect.repaint();
public MyRectangle createRandomRec()
x = rand.nextInt();
y = rand.nextInt();
width = rand.nextInt();
height = rand.nextInt();
color = new Color(rand.nextInt(256), rand.nextInt(256), rand.nextInt(256));
return new MyRectangle(x, y , width, height, color);
} -
How to reference Item with Table Column
Hi Community,
we want to reference Table Column with an Item. This Item is a Select-List wich includes a Date. Befor doing something, you have to select this date. After that we want to create a new row in with a date-column. This date should be the same as in this Item. We are using a tool which is called HTML-DB. We reached that there is shown the date, but there is no value. It is an updateable report row.
How can we copy this value from the Item in this new column?
I am sorry for my english, but I hope everyone understands our problem.
Greez RobI did it another way. We are using an old HTML DB version (v1.6). And I think it is a bug to reference a date with a column. I have this opinion because we copied the table but we changed the format. we are using varchar instead of date, and it is working without problems.
We also tried &px_name and it didn't work.
Thx anyway!
Maybe you are looking for
-
Windows 7 64 bit, iPod touch 2nd gen, iTunes sync issue
I have Windows 7 64 bit Home Premium and am frustrated to death. I have spent days wiping out my iPod trying something different an only to start all over again. I am not a n00b to computers and only ask because I only find a trail of tears and none
-
Separate Queries, Separate Group By's w/ Wizard
I used the wizard to create a report w/ two queries. Using the wizard, I set the first query to designate a specific field as a group field. When I added the second query via the wizard, the step to set a field as a group field was skipped over. I ne
-
Dear Sap Gurus, Material stock (m1)is=0, I have raised a sale order number(1)for the material (m1) qty=10 on 8/3/2011, system confirms qty 10 on 10/3/2011 as per RLT settings in the material master. Now i have raised stock as 20, now the total sto
-
Question about 1055T and 785G-E53 Board
I recently purchased a 1055T and 785G-E53 through a very good combo deal at a local computer store. I know that the motherboard requires BIOS version 3.5 in order to be compatible with the 6-core processors. However, from what I have read, it is li
-
Function module to monitor Job Status (SM37)
Is there a function module or a table that I can use to monitor JOB STATUS in BW? Thanks in advance! Cristina.