Create Column Heading and Mathematical Expressions?
Is their a way to create your own column heading to use later in a Smart Playlist? Also, can mathematical (+,-,*,/...) be used in it's creation?
I'm trying to create a column heading (variable) that would display (for each song) the ratio of Play Count / Skip Count. If that ratio is >1, then it's something I tend to listen more than skip. The reverse is true if it's <1. I can use this in a Smart Playlist to filter songs going to my iPod (by checking that playlist to be downloaded to my iPod) to those that I listen to most.
Any help would be appreciated.
Message was edited by: luke1012
As I said earlier, you have to use double-quotes when you create object :
SQL> create table emp( "Name" varchar2(20),"Age" number(2));
Table created.
SQL> desc emp
Name Null? Type
Name VARCHAR2(20 CHAR)
Age NUMBER(2)Once more, why wanted such thing ?
See here below the inconvenient :
SQL> select name, age from emp;
select name, age from emp
ERROR at line 1:
ORA-00904: "AGE": invalid identifier
SQL> select "Name","Age" from emp;
no rows selectedBetter to avoid it.
Nicolas.
Similar Messages
-
SSIS : How to create Column Header dynamically using expression in Flat File Source
Hi Team,
I need to keep configured Header Names for columns, Is there is any way to set each column name from expression? or is there is any other way?Nope
But you could add a dummy row to your source to include column headers and then use options column headers in first row in flat file connection manager.
So suppose you've three columns column0,coulmn1,column2 and you want to make it as ID,Name,Datethen make source query as
SELECT 'ID' AS Col1,'Name' AS Col2,'Date' AS Col3, 0 AS ord
UNION ALL
SELECT Column1,Column2,Column3,1
FROM YourTable
ORDER BY Ord
then choose column headers in first row option
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to create column header text while downloading file
How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
4.6c version.Hii,
Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
REPORT z_file_download.
DATA: w_name(90) TYPE c.
DATA:
BEGIN OF fs_flight,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
price LIKE sflight-price,
currency LIKE sflight-currency,
END OF fs_flight.
DATA:
BEGIN OF fs_head,
carrid(10) TYPE c,
connid(10) TYPE c,
fldate(10) TYPE c,
price(10) TYPE c,
curr(10) TYPE c,
END OF fs_head.
DATA:
t_head LIKE
TABLE OF
fs_head.
DATA:
t_flight LIKE
TABLE OF
fs_flight.
fs_head-carrid = 'CARRID'.
fs_head-connid = 'CONNID'.
fs_head-fldate = 'FLDATE'.
fs_head-price = 'PRICE'.
fs_head-curr = 'CURRENCY'.
APPEND fs_head TO t_head.
SELECT-OPTIONS:
s_carrid FOR fs_flight-carrid.
START-OF-SELECTION.
SELECT carrid
connid
fldate
price
currency
FROM sflight
INTO TABLE t_flight
WHERE carrid IN s_carrid.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\flight.xls'
FILETYPE = 'ASC'
* APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* IMPORTING
* FILELENGTH =
tables
data_tab = t_head
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'D:\flight.xls'
filetype = 'ASC'
append = 'X'
write_field_separator = 'X'
TABLES
data_tab = t_flight
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc EQ 0.
MESSAGE 'Download successful' TYPE 'I'.
ENDIF.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Abhijeet -
How to create Schema Header and footer with Pipe delimiter file..?
Hi all,
I have issue with creating Schema Header and footer with body file ..The file format is Pipe delimiter.. The follwing file below like is...
Adapters:File Adapter(Read)-11g.
1|000|2025|SDFG|54787
1|2055|244|9566|000|000|044|2577|361147|45554|wweqw|52555|564|000|647|464
1|2027|344|4566|000|000|044|8577|361147|45554|wweqw|82555|564|000|647|844
1|2024|444|6566|000|000|044|9577|361147|45554|wweqw|12555|564|000|647|544
1|2023|544|8566|000|000|044|5577|361147|45554|wweqw|52555|564|000|647|442
1|2022|644|3566|000|000|044|7577|361147|45554|wweqw|02555|564|000|647|448
1|0000|546|25544|454
If you have sollution for this, please help me out..Thank you.You mean how many rows or columns..?
If coloumns means 5 and rows only one(1). -
Changing the Column Header and Hiding the Column dynamically???
Hi friends..
I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
To dynamically change column headers without javascript, check this blog out...
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
Waited too long to publish this... Madan beat me to it, so there is some overlap here...
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
Edited by: LC143 on Oct 27, 2008 9:21 AM -
Download internal table data into excel sheet with column heading and data
Hi,
I am having one internal table with column headings and other table with data.
i want to download the data with these tables into an excel sheet.
It should ask the user for file name to save it on their own name. They should give the file name in runtime and it should be downloaded into an excel sheet.
Can anyone tell what is the right function module for downloading these two internal table data with column heading and data.
what we have to do for storing the file name in runtime.
Can anyone help me on this.
Thanks,
Rose.Hi Camila,
Try this
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = PATH2
FILETYPE = 'XLS'
TABLES
DATA_TAB = IT_DATA
FIELDNAMES = IT_HEADINGS
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22 -
How to avoid/hide column header and ---- in sql command output
Dear Friends,
I have a script to get the list and delete datafiles
script is : (del.sql)
spool d:\del.bat
select 'rm -r '||name from v$datafile;
spool off;
script output (del.bat)
'RM-R'||NAME
rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSTEM01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\UNDOTBS01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSAUX01.DBF
rm -r C:\ORACLE10GDB\ORADATA\TEST\USERS01.DBF
I don't want to have the column header and ---- which is present before the rm -r commands in my output spool file (del.bat)
how can i do it?Please suggest
Regards,
DBI have a script to get the list and delete datafiles Yikes, what are you doing here?
Can you use rm on Windows? -
Converting column header and a single record into rows
Lets suppose the table with only one record
col1 col2 col3-----Column Header
d1 d2 d3
i want it in following manner
column_name Column_data----Column Header
col1 d1
col2 d2
col3 d3
for this i have written the query as
select column_name,column_data from (select * from XXX where col1=123)
MODEL RETURN UPDATED ROWS
dimension by(col1)
measures (col1,0 column_name,0 column_data )
ignore nav
rules ITERATE(167)
column_name[iteration_number]=cast( iteration_number as varchar2(3)),
column_data[iteration_number]=cast( iteration_number as int)
here i am just assigning iteration_number but i want to assign name of the column and its value;
Note:--table contains nearly 200 columnsSomething like (using one of my own tables):
select column_name colname,
decode(column_name,'RUN_NO',to_char(run_no),
'SEARCH_ID',to_char(search_id),
'PROCESSING_START_DATE',to_char(processing_start_date,'DDMMYYYYHH24MISS'),
'PROCESSING_END_DATE',to_char(processing_end_date,'DDMMYYYYHH24MISS'),
'NO_OF_MATCHES',to_char(no_of_matches),
'ERROR_DETAILS',error_details,
'ADVREP_TIMESTAMP',to_char(advrep_timestamp,'DDMMYYYYHH24MISS')
) colvalue
from partial_search_history, (select rownum r, column_name
from user_tab_columns
where table_name = 'PARTIAL_SEARCH_HISTORY')
where run_no = 356You can build the decode by doing
SELECT ''''||COLUMN_NAME||''',TO_CHAR('||COLUMN_NAME||'),'
FROM user_tab_columns
where table_name = 'PARTIAL_SEARCH_HISTORY'A decode on DATA_TYPE field would allow you to add a format mask for DATE fields if necessary. -
How to fix the table column header and resize the width of a table column?
Hi all,
I have the following two requirements,
1) I need to wrap the table column header into two rows. I mean the header must be displayed in two rows.
2) I need to to able to resize the width of the column. i.e The user should be able to drag the column width according to his requirement.
Is this possible. Any help would be appreciated!
Regards
KishanHi Kishan,
Refer to these links.They may ne useful for you.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80d81237-b780-2a10-d398-cc33af6bd75c
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30291df2-b980-2a10-0884-839c4f7f147e
Regards,
Sumangala -
Cross Tab Column Header and Embedded or Calculated Member
Hello All
I am needing some help with a Cross Tab in CR2008.
My Cross Tab look as follows:
Rows______________Columns
......................................Fiscal Year
Account Number...........Summarized Field (Value Field)
The report spans three Fiscal Years but not all accounts have three Fiscal Years worth of data so some Cross tabs start 2009, 2008, 2007, Some report 2008 and 2007, Some just 2007 (and other variations). To get my cross tab working correctly I need to create a formula that get the CurrentColumnIndex based upon the Fiscal Year. e.g. If columnd header = 2009 column index = 0.
Can anyone advise how I would go about this?
Thanks
PhillipPhillip, go to your data source, and see if you can add a new connection,
one of those options should be (Command)
if you can add a Command, then you can put the SQL in the command section.
You will need to add the Command as a data source, and remove the old
data source once the command is added, you will be able to edit it if needed. -
Allow users to click on a Column Heading and sort
Hi All
I created a master Detail table using the BC4J tags, My users are able to search and return results to the DataTableQueryComponent but the would like to click on the column and sort by it.
How do I achieve that
Thank youWith JSF and the ADF Faces table it's easy and built-in, you can right click the table and in the properties on the third tab you can specify for each column if it is sortable.
In JSP I think you'll have to call a method that will set the order by for the view object and rexecute the query. -
I purchased Docs to GO Premium as it was suppose to work on IPAD 3. On loading a spreadsheet the columns under the header columns (ABC etc) started to blled into the next column. It does not work on IPad 3.
I swithced to Quick Office Pro HD. Absolutely fantastic App. I would love to get my money back for Docs to Go Prem (Rubbish)Send your complaints to the developer. This is not the venue for them.
-
How to create a header and footer
Hi,
i tried incorporating my company name and logo in each and
every slide but since it was .bmp in every slide it was flickering
for every slide. Is there a way to make my company name and logo
stay in the project without flickering as the video moves from
slide to slide???Hi rr336
Try inserting the name and logo only on slide 1 as an image.
Then configure the properties of the image to display for the rest
of the project.
Cheers... Rick -
Creating a Link on the Column Heading
Good afternoon,
I know with reports, you can create a link for each cell in the report attributes section. My question is it there's any way to create a link for the column header without hard coding it into the query that generating the results.
Thanks in advance,
IvanIvan,
If you are using the classical reports, you have the option of creating column header using pl-sql block which will be dynamic. Thanks
Regards,
Manish -
How do I create a header in the response table for a column I want to use that is not on the form it
Example: My form has 10 fillable questions. The Response table uses 10 columns to show the answers to those questions. I would like to use 3 more columns to record internal information. How do I insert the header titles?
Hi,
You can go to Responses view tab, focus on your last column header and then click menu Table->Add Column After. Or you click + button at the end of table - refer below image.
I am not clear your question "How do I insert the header titles?" Do you mean you want to use your form title as data value in each cell in the column? If yes, you can set formula in the column following below steps.
1. Click +Add a Row button
2. Focus on the cell on column L (I assume you want to set your formular on this column).
3. Input ="your form title" into the cell
Then after you received a submission, the form title would display in the related cell in each row.
Hope it will help you.
Thanks,
Ying
Maybe you are looking for
-
How Do I Get Rid Of Multiple Duplicates AND Relocate Numerous Files?
Basically I'm fed up of iTunes. A couple of months ago, i had a problem with my itunes library due to a message regarding the iCloud. This practically deleted my whole iTunes library and forced me to relocate every single track, which took a lot long
-
Application/vnd.ms-excel dropping leading 0's
I have a jsp page that successfully displays my data in an excel window on the browser. My user then will cut and paste the data from the screen to Excel running on their desktop. My problem now is the leading zeroes are dropping off. The data being
-
Hyperlink within Composition issue
In the attached page I have a PSD button hyperlinked to another page - see blue "FlatHat" button. It is placed inside a Composition. I cannot get this or any other hyperlink, when placed into a composition, to work on an iPad. Is there a way to fix t
-
The WindowsXP service pack2 is my operating system on the destop.
-
Order nUmber during production order create.
Hi All, Please tell me the setting that I need to do so that Production order number is generated during Order creation. right now the number is generated during order saving and not during order create.