Display totals on varying number of columns
Have a query that returns the following results:
Employee Expense Amount
1111111 TAXI 10.00
1111111 HOTELS 200.00
1111111 MISCELLANEOUS 50.00
2222222 FOOD 25.00
2222222 HOTELS 135.00
2222222 TAXI 20.00
2222222 AIR 500.00
3333333 HOTELS 300.00
3333333 MISCELLANEOUS 25.00
How can I query those results and format it so the output comes out something like below. There will be new Expense types in the future, so I don't want to hard code them into the query.
Employee TAXI HOTELS MISC FOOD AIR
1111111 10.00 200.00 50.00
2222222 20.00 135.00 0.00 25.00 500.00
3333333 0.00 300.00 25.00
Would like any new future expense types that are found in the first query to appear with their totals as well.
I'm able to do it when I hard code the expense types and use a sum(amount) along with a decode. But I'd like to be able to do it dynamically without having to hard code.
Thanks for any help or suggestions.
Welcome to the forum!
The following thread discusses several options:
Re: Report count and sum from many rows into many columns
I recommned the string aggregation approach.
Similar Messages
-
Displaying tables with dynamic number of columns
Hello,
I'm pretty new to JSF. Currently I'm working on a project where I have to select a table from a list, and then make it browsable/editable. The problem I have is that the different tables also have a different number of columns.
I have no problem displaying different tables if the number of coulumns stays the same (using h:datatable) but when it's dynamic, I don't know how I can have my JSP to adjust to support the varying number of columns.
Has anyone got an example of dynamic datatable or maybe someone can point me in the right direction.
BrimborianHi daniel,
1. There is an INDEPENDENT FORM
whose inputs are FIELD LIST
and from those, it consructs dynamic table.
2. Here is the program.
the dynamic table name will be
<DYNTABLE>.
3. U can use this program (FORM in this program)
to generate any kind of internal table
by specifying some inputs (ie. field list)
4.
REPORT abc.
COMPULSORY
FIELD-SYMBOLS: <dyntable> TYPE ANY TABLE.
FIELD-SYMBOLS: <dynline> TYPE ANY.
DATA: lt TYPE lvc_t_fcat.
DATA: ls TYPE lvc_s_fcat.
FIELD-SYMBOLS: <fld> TYPE ANY.
DATA : fldname(50) TYPE c.
PARAMETERS : infty(4) TYPE c OBLIGATORY.
DATA : iname LIKE dd02l-tabname.
START-OF-SELECTION.
GET INFO
CONCATENATE 'P' infty INTO iname.
DATA : ddfields LIKE ddfield OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'DD_NAMETAB_TO_DDFIELDS'
EXPORTING
tabname = iname
TABLES
ddfields = ddfields.
CONSTRUCT FIELD LIST
LOOP AT ddfields.
ls-fieldname = ddfields-fieldname.
APPEND ls TO lt.
ENDLOOP.
PERFORM
PERFORM mydyntable USING lt.
BREAK-POINT.
INDEPENDENT FORM
FORM mydyntable USING lt TYPE lvc_t_fcat .
Create Dyn Table From FC
FIELD-SYMBOLS: <fs_data> TYPE REF TO data.
FIELD-SYMBOLS: <fs_1>.
FIELD-SYMBOLS: <fs_2> TYPE ANY TABLE.
DATA: lt_data TYPE REF TO data.
ASSIGN lt_data TO <fs_data>.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt
IMPORTING
ep_table = <fs_data>
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
Assign Dyn Table To Field Sumbol
ASSIGN <fs_data>->* TO <fs_1>.
ASSIGN <fs_1> TO <fs_2>.
ASSIGN <fs_1> TO <dyntable>.
ENDFORM. "MYDYNTABLE
regards,
amit m. -
How to create a table with varied number of columns?
I am trying to create a balance table. The colunms should include years between the start year and end year the user will input at run time. The rows will be the customers with outstanding balance in those years.
If the user input years 2000 and 2002, the table should have columns 2000, 2001, 2002. But if the user input 2000 and 2001, the table will only have columns 2000 and 2001.
Can I do it? How? Thanka a lot.Why did you create a new thread for this?
How to create a table with varied number of columns? -
Table with varying number of columns
Hello experts,
my issue:
I need to print a table with varying number of columns. Depending on if all cells of a certain column are initial the
whole column should disappear. Hiding is not enough.
If this columns is in the middle of the table the following columns should move left to fill the gap.
my approach: (maybe there is an easier one)
There are 4 different possible situations. My approach was to create 4 different tables with different amount of
columns. In the interface I fill the table that is really needed from the source table data and fill a flag that characteristics
the situation, possible values (1,2,3,4).
In the form I'd like to print the appropriate table depending on the situations.
my problem:
How to place all 4 possible tables lying upon each other in the form and print only the needed one depending on the flag value?
my question:
Is my approach ok? Or is there an easier one?
If it is ok. How can I solve the problem regarding printing the right table.
Thanks in advance!
HeinzHi Heinz,
You can handle it with FormCalc Script at initialization.
Suppose you have a table with name TABLE having a header HEADER and data row DATA:
TABLE-->HEADER(Cell1...Cell2...Cell3...Cell4)
--->DATA(Cell1...Cell2...Cell3...Cell4)
Suppose you want to hide Cell3 for null values, then write below code at initialization of DATA:
if(DATA[*].Cell3.rawValue eq null)
then
DATA[*].Cell3.presence = "hidden"
HEADER.Cell3.presence = "hidden"
else
DATA[*].Cell3.presence = "visible"
HEADER.Cell3.presence = "visible"
endif
Hope it would help.
Regards,
Vaibhav -
Can we create JTable with multiple rows with varying number of columns ?
Hi All,
I came across a very typical problem related to JTable. My requirement is that cells should be added dynamically to the JTable. I create a JTable with initial size of 1,7 (row, columns) size. Once the 7 columns are filled with data, a new row should be created. But the requirement is, the new row i.e. second row should have only one cell in it initially. The number of cells should increase dynamically as the data is entered. The table is automatically taking the size of its previous row when new row is added. I tried by using setColumnCount() to change the number of columns to '1' for the second row but the same is getting applied to the first row also.
So can you please help me out in this regard ? Is it possible to create a JTable of uneven size i.e. multiple rows with varying number of columns in each row ?
Thanks in Advance.Well a JTable is always going to paint the same number of columns for each row. Anything is possible if you want to rewrite the JTable UI to do this, but I wouldn't recommend it. (I certainly don't know how to do it).
A simpler solution might be to override the isCellEditable(...) method of JTable and prevent editing of column 2 until data in column 1 has been entered etc., etc. You may also want to provide a custom renderer that renderers the empty column differently, maybe with a grey color instead of a white color. -
Alv report with varying number of columns
hi all,
I am new to abap. I am writing this to get a brief idea of what i wanted to do in system.
I have to do a report using alv. The format of the report looks like this.
acc no acc. name amt_sum_april amt_sum_may amt_sum_june. ............. total_months
the colum amt_sum_ depends on user input period(month interval).
if the user selects 4 to 6 = 3 columns ,if the user selects 4 to 10 = 7 columns
so on.......
Anyone have idea how to do it, because in the
initial structure or itab, the number of columns depends on the user input.. i am stucking here ...
pls help.
thanks and regards
joseHi friend,
It's very complicated to do that, I'm sure there's a way to do it but I really don't know it. Once I had a similar requirement and I did something else that solved my problem without making a fussy complicated code. I added a colum MONTH or PERIOD (depending on your requirement) and then I make a subtotal by that column. So you need:
acc no acc. name amt_sum_april amt_sum_may amt_sum_june. ............. total_months
Now you would have:
acc no acc. name month amount
In the SORT table, in the sorting condition by MONTH you specify SUBTOTAL = 'X'. So the output will be:
acc no acc. name month amount
123123 John 2 100.00
123124 Paul 2 200.00
Month 2 300.00
123123 John 3 300.00
123124 Paul 3 400.00
123125 Jane 3 100.00
Month 3 800.00
123123 John 4 123.54
Month 4 123.54
Total 1223.54
You can change the subtotal text for a more adequate one (if you want). Also if you only need the subtotals you can specify in the layout that only those lines are to be output.
I hope I've helped, I you have any question let me know!
Regards,
Pablo -
Varying number of columns within same text box
I am reposting this here as suggested. This has been submitted to the feature request. If you are also interested in this feature, please also submit it there.
here is original posting with replies:
http://www.adobeforums.com/webx?224@@[email protected]
One feature still missing (correct me if I am wrong) is to have number of columns applied to paragraphs not text boxes.
This is a constant hassal having to interupt the text box with a new text box and then another one after that just because you want a paragraph to be in muliple columns to save space for instance, or using some other work around like inline text boxes.
This is useful when trying to save space on a page, if you have short bullets, such as a list of items which if just left in a single column would leave a lot of white space to the right side of the column. Use this paragraph as an example. Pretend this is the lead in paragraph referring to the followng list. Include these items in your recycling:
-plastic bottles
-paper cups
-styrofoam
-tires
-fruit
-vegetables
-glass jars
-batteries
-cans
-drink boxes
-bones
-dairy products
-pet hair
-newspapers
-magazines
As you can see the list can get very long, and so breaking the list across a number of columns would really save space, as the bullets are just single words.
I have this situation everyday in the work I do and it is a real pain to have to redraw a new text box for each instance, and then another one to follow it.
And of course there is the whole headings that span multiple columns issue too.
I could forsee a feature where you would simply select the number of paragraphs and then change the number of columns. If it went to another page, then the number of comumns would still be applied as it is applied now to a text box.Thanks for your suggestions, Eugene. That's what users helping users is all
about!
However, we build the document (a book with hundreds of pages)
automatically, importing and autoflowing tagged text. Manual intervention
doesn't meet the need.
It's silly that a title or introduction should have to be in a different
frame from the rest of the text, just because the title/intro is
single-column and the text is multi-column. Ventura Publisher supported
paragraphs spanning columns 20 years ago. Adobe, get with the times!
Darrel Eppler
Global Publishing Services
SIL International
Eugene Tyson
<[email protected]
> To
DARREL EPPLER
05/21/2009 03:18 <[email protected]>
AM cc
Subject
Please respond to varying
clearspace-118700 number of columns within same text
4112-1NVP-2-8iM2@ box
mail.forums.adobe
.com
If you need to make it go from 1 column into multiple columns in a layout
then it stands to reason that you also need the content to remain in the
multiple columns.
There are various ways to do this.
1. Using Tables: You can have as many columns and rows as you like. The con
about this is that tables cannot break over pages, so you have to manually
split the cell so that the content fits.
2. Use Tabs: This can be awkward if your text is already in a list format,
it involves cut and paste and isn't "that" easy to implement. If the text
is already in a layout format that suits then putting in tabs would work
fine. The advantage is that this can break easily over pages/columns etc.
It's flexible to adjust the spacing etc. But it can be awkward to setup,
especially if there is a long list that needs to be in 2 or columns...
so then you have this option:
3. Use an anchored text frame: If you cut the content from your text frame
and paste it into a new text frame: Then anchor the new text frame into the
layout. You can specify the amount of columns in the anchored text frame.
The frame will move with the text, but just like tables, they won't split
over pages.
I've used all 3 on many occasions depending on what scenario came up -
different layouts need different workarounds.
But they shouldn't be work arounds, it should be just select this text and
put it into x amount of columns, and it should all flow without having to
do much else. -
Display table with variable number of columns
Hello Forum,
I'm trying to build an export view of User Management Engine data. I would like to output a table with one row for every user with yes / no fields indicating membership in each of the available groups. Because the number of available groups might change in the future, I can't hardcode the column names for the groups.
That is, I call a webservice to compute a table, and I get back a table with a variable number of columns.
When I try to insert the webservice into my VC model, it complains:
"Port 'Response' was omitted because it includes nested tables, which are not presently supported by Visual Composer"
You might be interested to know that the business method of my webservice (for testing purposes) looks as follows:
public String[][] getVariableSizeArray() {
String[][] ret = new String[10][];
for (int i = 1; i <= 10; i++) {
ret<i> = new String[10];
for (int j = 1; j <= 10; j++) {
ret<i>[j] = Integer.toString(i * j);
return ret;
Any help is appreciated, and points will be awarded for helpful answers,
Sincerely,
Florian
Message was edited by:
Florian SomethingHi Florian,
dynamic data structures are not supported. You can do this with a workaround. If you know the maximum count of your columns then you can add them to the table and hide/unhide them dynamicly via a formula in the hidden condition. Of course in your WS you als need a fix structure of your columns.
This is not the best solution, I know so far, but it works. This is just one limit of VC.
Best Regards,
Marcel -
Varying number of columns in ALV report
Hi Experts,
I have N lines (only 1 column) in itab, now i want to generate a list with N no of columns showing these N values of itab. means column in report may vary depending on the content in itab. its urgent
Regards
NikhilThis is the code..
TABLES : ekpo,MAKT, t001w.
TYPE-POOLS: slis.
DATA : thread LIKE thead.
DATA : l_index LIKE sy-tabix.
DATA : p_index TYPE n.
DATA: BEGIN OF INT_OUT OCCURS 0,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
TDLINE1 LIKE TLINE-TDLINE,
TDLINE2 LIKE TLINE-TDLINE,
TDLINE3 LIKE TLINE-TDLINE,
TDLINE4 LIKE TLINE-TDLINE,
TDLINE5 LIKE TLINE-TDLINE,
TDLINE6 LIKE TLINE-TDLINE,
TDLINE7 LIKE TLINE-TDLINE,
TDLINE8 LIKE TLINE-TDLINE,
TDLINE9 LIKE TLINE-TDLINE,
TDLINE10 LIKE TLINE-TDLINE,
WERKS LIKE EKPO-WERKS,
END OF INT_OUT.
DATA: BEGIN OF INT_OUT_new OCCURS 0,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
TDLINE1 LIKE TLINE-TDLINE,
TDLINE2 LIKE TLINE-TDLINE,
TDLINE3 LIKE TLINE-TDLINE,
TDLINE4 LIKE TLINE-TDLINE,
TDLINE5 LIKE TLINE-TDLINE,
TDLINE6 LIKE TLINE-TDLINE,
TDLINE7 LIKE TLINE-TDLINE,
TDLINE8 LIKE TLINE-TDLINE,
TDLINE9 LIKE TLINE-TDLINE,
TDLINE10 LIKE TLINE-TDLINE,
tline like tline occurs 0,
WERKS LIKE EKPO-WERKS,
END OF INT_OUT_new.
DATA: it_tlines LIKE tline OCCURS 10 WITH HEADER LINE.
****ALV list definintion
DATA: ws_cat TYPE slis_fieldcat_alv ,
int_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
g_custom_container TYPE REF TO cl_gui_custom_container.
DATA : it_heading TYPE slis_t_listheader WITH HEADER LINE.
*DATA : it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA : lay TYPE slis_layout_alv.
DATA : it_sort_subtotal TYPE slis_t_sortinfo_alv WITH HEADER LINE.
DATA : it_event TYPE slis_t_event WITH HEADER LINE.
DATA: v_repid LIKE sy-repid.
DATA : v_fieldname LIKE int_fcat-fieldname.
FIELD-SYMBOLS: <fs> TYPE ANY.
*selection-screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: S_WERKS FOR EKPO-WERKS OBLIGATORY .
SELECT-OPTIONS: S_MATNR FOR MAKT-MATNR OBLIGATORY .
SELECTION-SCREEN END OF BLOCK b1.
*SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
*PARAMETERS : r1 RADIOBUTTON GROUP g1 DEFAULT 'X' .
*PARAMETERS : r2 RADIOBUTTON GROUP g1 .
*PARAMETERS : r3 RADIOBUTTON GROUP g1 .
*SELECTION-SCREEN END OF BLOCK b2.
INITIALIZATION.
AT SELECTION-SCREEN.
SELECT SINGLE * FROM t001w WHERE werks IN S_WERKS.
IF sy-subrc NE 0.
MESSAGE e001(319) WITH 'Plant does not Exist!'.
ENDIF.
SELECT SINGLE * FROM makt WHERE matnr IN s_matnr.
IF sy-subrc <> 0.
MESSAGE e001(319) WITH 'Material does not Exist!'.
ENDIF.
START-OF-SELECTION.
BREAK-POINT.
PERFORM get_data.
PERFORM field_catalog.
PERFORM display_data.
END-OF-SELECTION.
*FORM GET_DATA.
form get_data.
DATA: l_index LIKE sy-tabix.
*To Fetch Data From Makt.
SELECT b~werks a~MATNR a~MAKTX
INTO CORRESPONDING FIELDS OF TABLE int_out
FROM MAKT AS a INNER JOIN marc AS b ON a~matnr = b~matnr
WHERE a~MATNR IN S_MATNR
AND b~werks IN S_WERKS.
LOOP AT int_out.
l_index = sy-tabix.
read table int_out_new with key matnr = int_out-matnr.
int_out_new-werks = int_out-werks.
int_out_new-matnr = int_out-matnr.
int_out_new-maktx = int_out-maktx.
thread-tdname = int_out-matnr.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'BEST'
language = sy-langu
name = thread-tdname
object = 'MATERIAL'
TABLES
lines = it_tlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
*Loop on it_tlines where long text is coming .
loop at it_tlines.
IF sy-subrc = 0.
p_index = sy-tabix.
concatenate 'int_out_new-tdline' p_index into v_fieldname.
condense v_fieldname.
v_fieldname = it_tlines-tdline.
endloop.
ENDLOOP. -
UiXML tables - variable number of columns?
I'm trying to define a <table> in a UIX page which will be generated from a set of parameters. This set of parameters will result in a varying number of columns so I'm looking at providing a DataObjectList which has DataObjects with keys for each of the columns attributes (header text, name of control, value of control etc.). I want to do something similar to <contents data:childData=...> on the <table> contents but this doesn't seem to work. It seems that <table> needs you to know how many columns will be present - is that so or is there some way I can do this?
Cheers
IanIan,
That is correct, the uiMXL <table> element cannot currently support
a variable number of columns (using something akin to the
childData support in other contexts). But there are two approaches
to get what you want.
If you know the range of possible columns, then you can add a <column>
element for each possible column in the <table>'s contents and then
databind the rendered flag of the column element to hide/show the
column as necessary.
However, the real solution to your scenario, where the number of columns
is completely unknown when you're designing the page, is our canonical
example of a time you should write Java code for a portion of your page.
Specifically, you can use the XML <include> element to refer to a
DataProvider that will programatically create a TableBean. This
technique is discussed in the Dynamic Structure for UIX pages
portion of the UIX Developer's Guide. -
How to find number of columns used in a ALV variant
I need to know how many column is active ( will be shown in the ALV report ) related to a specific ALV Variant.
Example :
The structure of my internal table has 147 columns.
The user in a specific ALV variant has chosen 25 columns of those 147 colums, so I need to know that this ALV variant will show 25 columns.
Thanks! JoHi Max,
Thanks for hints.
Finnally I did the verification at the beginning of my process.
Because I need the information before getting the data, so I called the METHOD with a "dummy" table,
and I received the info of what I need, the number of column related to a specific ALV Variant.
I used :
ls_variant-report = sy-repid.
ls_variant-variant = p_alvvar. "<<< Select-option field for AVL Variant
ls_variant-log_group = 'L01'.
CALL METHOD lo_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'MY_STRUCTURE'
is_variant = ls_variant
is_layout = ls_layout
i_save = 'A'
i_default = 'X'
I_BYPASSING_BUFFER = 'X'
CHANGING
it_fieldcatalog = LT_FIELDCATALOG
it_outtab = lt_dummy[].
CALL METHOD lo_grid1->GET_FRONTEND_FIELDCATALOG
IMPORTING
ET_FIELDCATALOG = LT_FIELDCATALOG.
loop at LT_FIELDCATALOG into ls_FIELDCATALOG where no_out = space.
add 1 to LV_NB_COLUMNS.
endloop.
Jo -
I want to display total count on the top of a Column in business graphics
Hi All ,
How can I display total count of the column say for example no. of employees in a series of column chart type in business graphics.
Any type of help would be much appreciated.
Thanks
UdayHi Vishweshwara,
following is the code i wrote. please check the correctness of the code.
int seriescount = 0;
for(int i=0;i<nodesize;i++){
IGraphDataElement catele = gdNode.createGraphDataElement();
switch(i){
case 0:
if(wdContext.currentContextElement().getQ().equals("Q1")){
catele.setCategory("Q1");
catele.setKRA_Series1(Q1_KRA);
catele.setApp_Pln_Series2(Q1_AP);
catele.setRev_App_Series3(Q1_RA);
catele.setEnd_Rev_Series4(Q1_ERP);
catele.setApp_Procss_Series5(Q1_AIP);
catele.setApp_overall_Series6(Q1_AOP);
seriescount = seriescount+1; break;}
break;
case 1:
if(wdContext.currentContextElement().getQ().equals("Q2")){
catele.setCategory("Q2");
catele.setKRA_Series1(Q2_KRA);
catele.setApp_Pln_Series2(Q2_AP);
catele.setRev_App_Series3(Q2_RA);
catele.setEnd_Rev_Series4(Q2_ERP);
catele.setApp_Procss_Series5(Q2_AIP);
catele.setApp_overall_Series6(Q2_AOP);
seriescount = seriescount+1; break; }
break;
case 2:
if(wdContext.currentContextElement().getQ().equals("Q3")){
catele.setCategory("Q3");
catele.setKRA_Series1(Q3_KRA);
catele.setApp_Pln_Series2(Q3_AP);
catele.setRev_App_Series3(Q3_RA);
catele.setEnd_Rev_Series4(Q3_ERP);
catele.setApp_Procss_Series5(Q3_AIP);
catele.setApp_overall_Series6(Q3_AOP);
seriescount = seriescount+1; break;}
break;
case 3:
if(wdContext.currentContextElement().getQ().equals("Q4")){
catele.setCategory("Q4");
catele.setKRA_Series1(Q4_KRA);
catele.setApp_Pln_Series2(Q4_AP);
catele.setRev_App_Series3(Q4_RA);
catele.setEnd_Rev_Series4(Q4_ERP);
catele.setApp_Procss_Series5(Q4_AIP);
catele.setApp_overall_Series6(Q4_AOP);
seriescount = seriescount+1; break;}
break;
case 4: if(wdContext.currentContextElement().getQ().equals("All")){
wdContext.nodeGraphData().invalidate();
wdContext.currentContextElement().setGraphVisibility(WDVisibility.NONE);
wdThis.onActiondropdownaction(wdEvent);
}default:
wdContext.nodeGraphData().addElement(catele);
Thanks
Uday -
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 -
Can I know the name, type, total number of column in Record Group?
I created a record group with query dynamically.
And then populated it.
I don't know the column' count, type, name befause I get the query from user at runtime.
Can I know the name, type, total number of column in Record Group?Unfortunately, there is no way to query the record group (RG) to get the metadata you are looking for. RGs are best used as data sources to an LOV or List Item rather than as an Array to hold the resultset of a dynamic query. For this, I would recommend you use a Collection type of construct (PL/SQL Table of Records, VArray, etc).
Craig... -
What is the maximum number of columns that can be displayed by sqlplus?
Hello,
Questions:
Is there a limit on what sqlplus can display?
What is the maximum number of columns that can be displayed by sqlplus?
I cannot find anything on this in my search. I checked the limits page:
http://docs.oracle.com/cd/B19306_01/server.102/b14357/apa.htm#sthref3658
http://docs.oracle.com/cd/E11882_01/server.112/e16604/apa.htm#i635278
It does not specify any column limits; however, I'm thinking it is tied to LINESIZE which is system dependent.
Please confirm if true.
Thanks!Received answer directly from SQL*Plus Development:
"sqlplus does not have a limit on the number of columns it displays."
They created a table with more than 256 columns with data and had no problem retrieving the data.
Maybe you are looking for
-
Share 2 itunes account 1 database
Hi, I'm looking for help on how to share 2 apple accounts. Its hard to describe in 1 sentence so lets break it down. Me - 3 kids - Share 1 itunes account (4 apple id) for apps and music - 4 computers (still windows ), 1 ipad, 1 iphone, 3 ipods usin
-
Is it possible to repurchase the OS X Mountain Lion after erasing Mac HD?
I had thought I already purchased the OS X Mountain Lion before on this apple account, but it appears not. I am trying to reboot my mac and already erased the Hard Drive and found out I do not have it on this account. I then asked my parents if I pur
-
JVM 1.5.0_05 crash.
Hello! I have some problem with Java Virtual Machine. I have runned my program many times and there was the same JVM error after a few minutes of execution. My programs is listening to the network interface, captures packets using JPCap and stores so
-
I have been having trouble using the mask option in speedgrade, any advice you can give will be helpful. I follow the tutorials to the T but get nowhere. I am able to make adjustments to the clip that affect the entire clip, but when using the mask f
-
Hi, I'm a beginner. I've used createJs on flashCC for creating some content for web. It's a simple game of one question, you select the correct answer which is ''Fatuo''. The problem I have is that it doesn't play on Chrome of a Mac. In my Pc it work