Customize Which Column to Display from UDT in UDF when Linked to UDT
Problem:
I have a UDF that links to a UDT. The problem is that when I select the UDF, it only displayes the columns from the UDT Code & Name. And for our purposes Code & Name are meaningless data points.
Question:
Can I choose which column is displayed from the UDT in the UDF?
Please see the attached image. THANKS!
Hi,
This is SAP B1 standard behavior, But you can change name as terminal code. Other wise you can detach the UDT from UDF and then assign one FMS in the UDF for serach terminal code instead of code and name.
Hope this will work.
Regards
Sridharan
Similar Messages
-
TS2755 how do I see which apps are downloaded from a certain device when you have multiple devices
how do I see which apps are downloaded from a certain device when you have multiple devices
you can't.
-
How to customize blob column text displayed in a report
Hi All,
I have a table with column File_name (varchar2) and file_content (blob).
Report generated by the APEX allows me to show report with two different column
File Name || File Content
aaaa Download (link)
bbbb Download (link)
I would like to show the report in such a way the File name column is hyperlinked to download the blob content.
I tried to change the link using the BLOB format mask, but seems it only takes up text value and not column name as #FIELD_NAME#
Any idea how to achieve this ?
I am using Application Express 3.1.2.00.02
Thanks
bala
Edited by: Balamurugan Natarajan on Jun 3, 2009 2:16 AMI got this online:
create or replace PROCEDURE download_my_file_sp(p_file in number) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
BEGIN
-- Assuming your application's numeric ID is 100, set g_flow_id to
-- that value, otherwise change the value as required.
--***APEX_APPLICATION.G_FLOW_ID := 100;
--***IF NOT wwv_flow_custom_auth_std.is_session_valid then
-- display this message or a custom message.
--***htp.p('Unauthorized access - file will not be retrieved.');
-- You can do whatever else you need to here to log the
-- unauthorized access attempt, get the requestor's
-- IP address, send email, etc.
--*** RETURN;
--***END IF;
SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
INTO v_mime,lob_loc,v_file_name,v_length
FROM document_tb
WHERE id = p_file;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
end download_my_file_sp;Change the link of the PK: Page 3, Item 1: P3_ID, Value: #ID#
create a branch on a different page: Branch to PL/SQL Procedure, Onload Before Header, and Branch Action: download_my_file_sp(:P3_ID) -
How to check which column data differs from master table and archive table
Hi All,
i have two tables, table a (a1 number,a2 varchar2,a3 varchar2) and table b (b1 number,b2 varchar2,b3 varchar2).
how to check the data in both the table are same( including all columns).
data in a.a1 is same as b.b1 and a.a2 is same as b.b2 like that.
if they not same , i need to know which field differs.
Kindly Share ur ideas.887268 wrote:
thanks Sven W. ,
above reply clearly shows what my question is.
one column must be primary key, based on that key i need to find out which are the fields having different data..
im strugling with this, i tried the following already, but not able to get.
select the columns from a MINUS select the columns from b.
-- from this i can find whether the difference occurred or not.
but i cant able to get which are the fields value changed.Good. Then you would match the rows using the PK column and need to compare the columns
Instead of a MINUS + UNION ALL + MINUS we can now use a FULL OUTER JOIN
It is a little task to write out all column names, but 40 columns can be handled.
This statement would show you both tables with matching rows on the same line.
select a.*, b.*
from a
FULL OUTER JOIN b on a.id = b.idNow filter/check for mismatches
select case when a.col1 != b.col1 then 'COL1 value changed'
when a.col2 != b.col2 then 'COL2 value changed'
when a.col3 != b.col3 then 'COL3 value changed'
end as compare_result
,a.*, b.*
from a
FULL OUTER JOIN b on a.id = b.id
/* return only non matching columns */
where (a.col1,a.col2,a.col3) != (b.col1,b.col2,b.col3) You might need to add nvls to take care of null values. Test this!
Another way could be to group upon the primary key
select *
from (
select id
,count(distinct col1)-1 cnt_col1
,count(distinct col2)-1 cnt_col2
,count(distinct col3)-1 cnt_col3
from
select 'A' source, a.*
from a
UNION ALL
select 'B' source, b.*
from b)
group by ID
/* only records with differences */
where 1 in (cnt_col1, cnt_col2, cnt_col3)
;The count columns will hold either 1 or 0. If it is 1 then this column has a difference. -
ADF - How to create table which column header come from query result
I would like to create table that show the summary of task for each month, the query result such as
Status MonthofYear Total Task
03 2007/06 9
03 2007/05 12
03 2007/04 10
03 2007/03 7
05 2007/06 6
05 2007/05 3
06 2007/06 1
09 2007/06 1
And the table that I would like to show in jdeveloper is
Status 2007/06 | 2007/05 | 2007/04 | 2007/03 | ......... | 2006/05
03 9 | 12 | 10 | 0 | .......
05 6 | 3 | 0 | 0 | .......
06 1 | 0 | 0 | 0 | .......
09 1 | 0 | 0 | 0 | .......Lucas worked out a solution for this:
http://technology.amis.nl/blog/?p=2070 -
Issue playing movies downloaded from iTunes on TV when linked to computer via HDMI cable.
Recently I purchased the advance digital copy of "Star Trek Into Darkness" as it was it was released just in time for moving some people into another state; we planned to watch it when we rested for the day. After hooking my windows 7 laptop up to a Samsung flatscreen TV using an HDMI cable, iTunes refused to play the movie. It would play when the computer was disconnected from the TV, and the same error would appear when reconnected. The error stated that I had to be connected to an "HDCP compatible device."
Is this some way of iTunes forbidding me from watching movies downloaded from their service when connected to an exterior device? My computer has no issues playing other content, such as netflix, when connected to a TV.
For me it's pointless to buy movies now from iTunes; I feel like I've wasted $20. Why on earth would I want to sit in front of a computer to watch it when there's a TV five times the size available?Hello happylilvampyr,
Unfortunately, this is due to a lack of HDCP support provided by the TV in use. More information regarding HDCP can be found in the following article.
iTunes for Windows: Unable to view or play HD video content that requires HDCP
http://support.apple.com/kb/TS3354
As an alternative, you can always download the movie in standard definition, which will allow for viewing on non-HDCP devices.
When you purchase an HD video on a supported device or computer, only HD video will be downloaded. To download the SD version, you need to download the video again from your Purchased page. Conversely, if you purchase an HD video on an unsupported device, the SD version will be downloaded. Then, you will need to download the HD version from your Purchased page. Learn more about downloading previous purchases.
iTunes: Purchasing and viewing HD videos
http://support.apple.com/kb/HT3209
Cheers,
Allen -
Schedule an Oracle Job in DB 2 from DB 1 using db link
Hi,
I am getting insufficient privileges when i try to schedule a job in target db ( DB 2) from source DB (DB 1).Version 10.2.0.1.0.
BEGIN
DBMS_SCHEDULER.create_job@dbl_audit.regress.rdbms.dev.us.oracle.com
(job_name => 'SYNC_AUDIT_DB',
job_type => 'STORED_PROCEDURE',
job_action => 'execute_audit_data_defn',
start_date => SYSDATE,
repeat_interval => NULL,
enabled => TRUE,
comments => 'Sync Audit db with Live db'
END;
ORA-27486: insufficient privileges
ORA-06512: at "SYS.DBMS_ISCHED", line 99
ORA-06512: at "SYS.DBMS_SCHEDULER", line 262
ORA-06512: at "CTS_VSD01.SCHEDULE_SYNC_JOB", line 5
ORA-06512: at line 2
'execute_audit_data_defn' procedure runs in DB 2 which I am accessing from DB 1 thru db link dbl_audit.regress.rdbms.dev.us.oracle.com
Any help is appreciated
SSNHi ,
The user has following privileges
SQL> select PRIVILEGE from USER_SYS_PRIVS;
PRIVILEGE
CREATE SEQUENCE
CREATE ANY JOB
CREATE CLUSTER
CREATE ROLE
CREATE SESSION
DROP ANY ROLE
CREATE INDEXTYPE
CREATE OPERATOR
CREATE TYPE
CREATE PROCEDURE
CREATE DATABASE LINK
PRIVILEGE
CREATE VIEW
ALTER SESSION
DROP PUBLIC SYNONYM
SELECT ANY TRANSACTION
CREATE TRIGGER
CREATE PUBLIC SYNONYM
CREATE SYNONYM
SELECT ANY TABLE
CREATE TABLE -
Can I filter by value which is not displayed in grid columns?
In excel it is possible to filter by value of measure which is not displayed in the report.
How can I possibly do this in Performance Point Grid? (in filter by value there I only see the measures in columns).
Please advise
NamnamiI found it is possible to filter by value by changing the MDX in the query tab.
(I filtered by certain existing value in design, then switched to Query and changed to the measure which is not displayed). I shows up correctly.
The problem is, once I change the query, I get an error when tring to connect a filter on a grid column:
"consumer parameter no-longer exists in the consumer webpart"
The grid looks "frozen"- cannot drill up / down etc.
How can I filter by value which is not displayed without loosing the ability to attach a filter to the grid?
Namnami -
[solved] To display Processes which are not running from constant process
i have constant processes prostat1,prostat2,prostat3,prosta4,prostat6,prostat8,prostat9 (6 processes) runs to support the application
Now my problem is
i want to display the process which is not running (from the above 6 processes)
Thanks in advanceTry this
echo "Constant processes not running"
echo
for PROC in prostat1 prostat2 prostat3 prostat4 prostat6 prostat8 prostat9
do
if [ ! "`ps -ef | grep $PROC | grep -v grep`" ]; then
echo $PROC
fi
doneBTW, those are 7....:-) -
Displaying other columns/tables apart from a cross tab
Hi,
I designed an RTF template. This contains 3 tables. First table contains the invoice information. 2nd table is the cross tab and 3rd table contains the aging details. My requirement is to print the other tables in all pages if the cross tab goes to multiple pages. Presently all the tables are displayed in the 1st page only. If the cross tab output goes to next page then the 1st and 2nd tables are not being displayed in other pages.
Can anyone suggest me how to display the other columns/tables apart from cross tab columns if the cross tab output goes to multiple pages.Can u plz send me the sample xml and the template so tat i can help u frm my side...
-
ESS Error- Data source contains no columns which can be displayed
Hi
After the application of support packs, an error is observed in ESS applications where the data/content has to be displayed in tabular format.
On accessing Personal Data application, error message is displayed -
Error Occured
Data source contains no columns which can be displayed
Screenshot is also attached for reference.
Please help in resolving the issue.
Regards
ShailyHi all!
I have the same problem, any ideas how to analyze and solve the problem?
Regards
Peter Meyer -
Solution to allow users to specify which columns of a sql report to search
Starting Point:
1) You have an existing SQL Report.
2) You want to provide functionality to search through the result set.
Start -----
1) add a text_item for searching PX_search where X is page number
2) add a button which resubmits the page. Go
3) You modify your query by adding the following to the end of the where clause.
and (PX_SEARCH is null or instr(column_name1,PX_SEARCH) > 0 )
4) So far so good but it only allows searches on 1 column, so you add a few other columns
and (PX_SEARCH is null or instr(column_name1,PX_SEARCH) > 0 or instr(column_name2,PX_SEARCH) > 0 or instr(column_name3,PX_SEARCH) > 0 )
Now when you enter some text if it is in any of the columns that row will be displayed.
This can be good or bad depending on your requirement. lets say my users want to specify the column they are searching on.
5)further enhancement
i) add a LOV to your page which queries the all_users data dictionary view
select column_name d, column_name r from all_users where table_name = 'MY_TABLE_NAME' and column_name not in ('COLUMN_NAME1,COLUMN_NAME2) order by column_name
The idea here is to use the oracle data dictionary to get all the columns for your table(s) and ignore the columns you do not want.
ii) add an item to your page e.g. PX_select_column which gets populated from the list of values.
Now for each column you are going to allow a search on, the sql needs to be modified.
Lets pretend that my firstcolumn is called member_id, my second column is called firstname and my third column is lastname
Before we had this SQL
(select * from table where 1=1)
and (PX_SEARCH is null or instr(memberid,PX_SEARCH) > 0 or instr(firstname,PX_SEARCH) > 0 or instr(lastname,PX_SEARCH) > 0 )
Remember we have added PX_SELECT_COLUMN which should contain what we have selected from the LOV.
iii) So now we modify the query to be as follows:
and (PX_SEARCH is null or decode(:PX_SELECT_COLUMN,'MEMBERID',instr(memberid,PX_SEARCH),0) > 0 or
decode(:PX_SELECT_COLUMN,'FIRSTNAME',instr(firstname,PX_SEARCH),0) > 0 or
decode(:PX_SELECT_COLUMN,'LASTNAME',instr(lastname,PX_SEARCH),0) > 0 )
The user can now choose which column to filter their results on.Here is a basic one (http://apex.oracle.com/pls/otn/f?p=2230:1). You can select an object type and put in criteria for the object name like '%b%'. The SELECT statement is dynamically generated with only the pieces of the WHERE clause that are needed. You do not need all the DECODE and INSTR OR logic.
The main part of this example is the computation of the SQL SELECT statement:
DECLARE
v_sql VARCHAR2(2000) := 'SELECT *'||CHR(10)||' FROM USER_OBJECTS';
v_and BOOLEAN := FALSE;
v_where VARCHAR2(2000);
BEGIN
-- P1_OBJECT_TYPE has value of 'ALL' for '%'
IF (:p1_object_type != 'ALL') THEN
v_sql := v_sql || chr(10) ||
' WHERE object_type = '''||:p1_object_type||'''';
v_and := TRUE;
END IF;
IF (:p1_object_name IS NOT NULL) THEN
IF (v_and) THEN
v_sql := v_sql || chr(10) ||
' AND object_name LIKE UPPER('''||:p1_object_name||''')';
ELSE
v_sql := v_sql || chr(10) ||
' WHERE object_name LIKE UPPER('''||:p1_object_name||''')';
END IF;
v_and := TRUE;
END IF;
:p1_sql := v_sql;
RETURN (v_sql);
END;Mike -
Problem calling a method which takes a parameter from a table
Hi guys,
I'm very new to jsf and hope you can help me out.
On my page i'm generating a list, which is working fine. now i want to add some commandLinks to the list entries. on click, i want to execute a bean method, which takes a parameter from the list, generates a picture and displays it on my page.
here's a piece of code thats already working:
<rich:dataTable var="data" value="#{pathwayBean.orgList}">
<rich:columnGroup>
<rich:column>
<h:outputText value="#{data.name}" />
</rich:column>
</rich:columnGroup>
</rich:dataTable>now, i want to replace the outputText with a commandLink, and execute a method with {data.id} as parameter. Unfortunately, the commandLink property "action" can only call bean methods with no parameter, or is that wrong?
Thanks in advance,
Alexuse actionlistener.
here a typical code that works fine for me:
(JSF 1.2)
//Java
private Integer selectedItemId=null;
public void selectItem(ActionEvent event) {
// Find the UIParameter component by expression
UIParameter component = (UIParameter) event.getComponent().findComponent("itemId");
// parse the value of the UIParameter component
try {
selectedItemId = Integer.parseInt(component.getValue().toString());
// find itemBean here using selectedItemId
} catch (Exception e) {
logger.error(e, e);
logger.info(" +++ selectedItemId =" + selectedItemId);
public String viewItem() {
//create view beans here
return "itemView";//return appropriate view.
//JSF
<h:column>
<h:commandLink id="View"
action="#{itemListBean.viewItem}"
actionListener="#{itemListBean.selectItem}">
<h:outputText value="select"/>
<f:param id="itemId" name="itemId" value="#{itemBean.id}"/>
</h:commandLink>
</h:column> -
Name of the column not displayed
Hi,
My query is made on the Data Provider that has the following fields:
- Notification Numbers(which I get directly from the Data Provider)
-Status ('ACT' for Active and 'INACT' for Inactive)
Now, my report should show:
- Count of all Notification Numbers(which I have avhieved through replacement path)
- Count of non-confimed Notification Numbers; which is the 'Count of all Notification Numbers' for which the status is INACT.- I have tried achieveing this by making a Restricted KF on the 'Count of all Notification Numbers'. However, the problem is that when this is displayed in the Report, it does not show the name of the column.
Need help!
Thx!Hi,
Just select your restricted keyfigure and hit general tab under that description will be there---Enter your desired description there.
I hope it helps.
Regards
AL -
Getting table column header names from database
Hi,
We are trying to get table headers from database. So when we query the database it returns multiple rows at the same time. How can we display specific table column headers from the returned result set at respective places.
We tried using record selection expert but that only works for one selection and not for others.
How can we do this?Thank you Josh and Abhilash for helping us.
We are using PostgreSql.
"command_headers" has query which looks like following-
SELECT id, header FROM labels
WHERE id='header.header_1'
OR id='header.header_2'
OR id='header.header_3'
ORDER BY id;
which will return following result set-
id header
header.header_1 Header1
header.header_2 Header2
header.header_3 Header3
Our Table structure is something like this-
Page Header: Header1 | Header2 | Header3
Details: {command_data.value1} | {command_data.value2} | {command_data.value3}
command_data is another command which generates data for the table.
All values in details section coming from command_data is in format string.
We don't need to apply grouping or sub totals. This is a simple table, showing string values for all columns.
Preview:
Header1 | Header2 | Header3
car | yello | abc
bike | black | xyz
plane | white | pqr
Currently, all headers are static labels. How do we use "command_headers" to display all table Headers dynamically? Can we achieve this format using cross tab?
Maybe you are looking for
-
Creating synonys for all table
i want to create synonyms for all atbles.the synonyn name and table name are same.instead creating one by one synonym i wnat to create all synonyms at a time. 1)select 'CREATE PUBLIC SYNONYM'||' '||'test'||' '||'for' ||' '||'test' from dual 2)select
-
i just what to know the difference between aggregate and structure? although aggregate is used for query performance and structure for reporting.Both are giving the same view?
-
HT4623 Why doesn't my I phone 4 have a software update option in the general settings?
I have an I phone 4 with a 4.2.7 ios. Why isn't anything in my general settings that says software update?
-
Verizon canceled my iPhone 6 Plus order, suddenly says I'm ineligible for Early Edge
I ordered an iPhone 6 Plus on 9/19 (and also a second iPhone and new line for my wife). The expected ship date was this week. I checked on the status yesterday only to discover it was canceled. Needless to say, I was upset and called to find out why.
-
How do i intall a new OS on my imac?
how do i intall a new OS on my imac