Display one row only
This query
SELECT
SCRATTR_ATTR_CODE
from scrattr_TEST,scbcrse_TEST
where
SUBSTR(scbcrse_subj_code,1,3) = SUBSTR(scrattr_subj_code,1,3)
and SUBSTR(scbcrse_crse_numb,1,4) = SUBSTR(scrattr_crse_numb,1,4)Returns this
SCRATTR_ATTR_CODE
A
INS
MCSR How I can make to return someting like A INS MCSR in one row there is a row for every code
hERE is some code to create the tables and insert the data
CREATE TABLE SCRATTR_test
SCRATTR_SUBJ_CODE VARCHAR2(4 CHAR) NOT NULL,
SCRATTR_CRSE_NUMB VARCHAR2(5 CHAR) NOT NULL,
SCRATTR_EFF_TERM VARCHAR2(6 CHAR) NOT NULL,
SCRATTR_ATTR_CODE VARCHAR2(4 CHAR)
CREATE TABLE SCBCRSE_test
SCBCRSE_SUBJ_CODE VARCHAR2(4 CHAR) NOT NULL,
SCBCRSE_CRSE_NUMB VARCHAR2(5 CHAR) NOT NULL,
SCBCRSE_EFF_TERM VARCHAR2(6 CHAR)
insert into SCRATTR_test (SCRATTR_SUBJ_CODE,SCRATTR_CRSE_NUMB,SCRATTR_EFF_TERM,SCRATTR_ATTR_CODE) select 'BIO','2210','201320',' A' from dual;
insert into SCRATTR_test (SCRATTR_SUBJ_CODE,SCRATTR_CRSE_NUMB,SCRATTR_EFF_TERM,SCRATTR_ATTR_CODE) select 'BIO','2210','201320','INS' from dual;
insert into SCRATTR_test (SCRATTR_SUBJ_CODE,SCRATTR_CRSE_NUMB,SCRATTR_EFF_TERM,SCRATTR_ATTR_CODE) select 'BIO','2210','201320','MCSR' from dual;
COMMIT;
INSERT INTO SCBCRSE_test(SCBCRSE_SUBJ_CODE,SCBCRSE_CRSE_NUMB,SCBCRSE_EFF_TERM) SELECT 'BIOL','2210','201320' FROM DUAL
COMMIT; Thank you
Based on your testcase, on 11.2 you could just:
SQL> select listagg(a.SCRATTR_ATTR_CODE, ' ') within group (order by rownum)
2 from scrattr_TEST a
3 , scbcrse_TEST b
4 where SUBSTR(b.scbcrse_subj_code,1,3) = SUBSTR(a.scrattr_subj_code,1,3)
5 and SUBSTR(b.scbcrse_crse_numb,1,4) = SUBSTR(a.scrattr_crse_numb,1,4);
LISTAGG(A.SCRATTR_ATTR_CODE,'')WITHINGROUP(ORDERBYROWNUM)
A INS MCSR
Similar Messages
-
Need a report column to hold data for one row only
Hey Guys,
I have a report which has a column that links to another page in my APEX application.
There is a requirement where only one of the rows in this report needs to have a link so I need the column to show the page link for one row and one row only.
The report will have about 5 rows at a time so is there a way to just make this link appear for the one row(it will be the top row) in the column attirbute in APEX? or can this be done in the SQL for the report?
Any help is much appreciated
Thanks
-MarkHi
The only way (I believe) to do this is within the SQL. Then you just wrap the column in a CASE statement and if it meets your criteria then build up the link and if not then display normally.
Something like this...
SELECT ename,
CASE WHEN empno = 7839
THEN '<a href="f?p='||:APP_ID||':4:'||:APP_SESSION||'::NO::P4_TARGET_ITEM:'||empno||'" >'||empno||'</a>'
ELSE TO_CHAR(empno)
END empno
FROM empCheers
Ben -
Ensure one row only is set as default
We have a Customers table. The default customer is 'CASH SALE'. Our business rules require one and one only customer be the default customer, but the default customer can be changed from CASH SALE to any other customer. Our business rules do not allow the
CASH SALE customer to be modified beyond setting the IsDefault attribute to true or false
There is a column IsDefault bit and a unique filtered index on IsDefault.
CREATE UNIQUE INDEX IX_Customers_IsDefault
ON Customers(IsDefault)
WHERE IsDefault = 1
This works to the extent that it does not allow more than 1 row to be marked IsDefault, but it does not ensure that there is one row marked IsDefault = 1, ie it is possible for IsDefault = 0 for all rows.
We also have constraints that prevent updating or deleting CASH SALE
-- the CASH SALE customer cannot be deleted
CREATE TRIGGER Customers_No_Delete ON Customers
INSTEAD OF DELETE
AS
IF ( SELECT CustomerId
FROM deleted
) = 0
BEGIN
RAISERROR ('The CASH SALE customer cannot be changed nor deleted.', 16, 1)
END
ELSE
BEGIN
DELETE FROM Customers
WHERE CustomerId = ( SELECT CustomerId
FROM deleted
END
GO
-- the CASH SALE customer cannot be changed
CREATE TRIGGER Customers_No_Update ON Customers
INSTEAD OF UPDATE
AS
IF ( SELECT CustomerId
FROM inserted
) = 0
BEGIN
RAISERROR ('The CASH SALE customer cannot be changed nor deleted.', 16, 1)
END
ELSE
BEGIN
DELETE FROM Customers
WHERE CustomerId = ( SELECT CustomerId
FROM deleted
END
GO
However the trigger Customers_No_Update also prevents updating the IsDefault column. I know this is a common business scenario:CASH SALE cannot be edited but another customer can be marked as the default customer, so I assume there is a standard solution
... if someone could please point me the way.Thank you Erland. By using both of the triggers you suggested the problem is solved. I changed the trigger dont_touch_CASH_SALE so that rather than check if each column is updated, it checks that IsDefault is not the column being updated, ie IF NOT UPDATE(IsDefault)
Thanks again to everyone for your assistance.
Refering to your comment below
I may be mistaken but it appears the solution proposed by Visakh16 does not allow IsDefault = 1 for a customer other than CASH SALE
I dont think thats true
See this illustration
--Sample table for illustration
CREATE TABLE Customers
ID int IDENTITY(1,1),
CustName varchar(100),
IsDefault bit
--Some sample data inserted
INSERT Customers (CustName,IsDefault)
VALUES
('Cust1',0),
('Cust2',0),
('Cust3',0),
('CASH SALE',1)
--The suggested trigger
CREATE TRIGGER Customers_No_Update ON Customers
INSTEAD OF UPDATE
AS
IF EXISTS( SELECT 1
FROM inserted i
INNER JOIN Deleted d
ON d.ID = i.ID
AND d.CustName <> COALESCE(i.CustName,'')
WHERE d.CustName = 'CASH SALE'
BEGIN
RAISERROR ('The CASH SALE customer cannot be changed nor deleted.', 16, 1)
END
ELSE
BEGIN
UPDATE c
SET CustName = i.CustName,
IsDefault = i.IsDefault
FROM Customers c
INNER JOIN Inserted i
ON i.ID = c.ID
END
GO
--The updates
-- Modifying CASH SALE IsDefault. This will succeed
UPDATE Customers
SET IsDefault = 0
WHERE CustName = 'CASH SALE'
-- Modifying Cust1 IsDefault. This will succeed
UPDATE Customers
SET IsDefault = 1
WHERE CustName = 'Cust1'
-- Modifying Cust2 Name. This will succeed
UPDATE Customers
SET CustName = 'Cust2 Test'
WHERE CustName = 'Cust2'
-- Modifying CASH SALE Name. This will fail
UPDATE Customers
SET CustName = 'CASH SALE Test'
WHERE CustName = 'CASH SALE'
Only thing I've have not covered is the scenario which ensures you've only single default cust value at any point of time. If you want that to be enforced just extend trigger as below
CREATE TRIGGER Customers_No_Update ON Customers
INSTEAD OF UPDATE
AS
IF EXISTS( SELECT 1
FROM inserted i
INNER JOIN Deleted d
ON d.ID = i.ID
AND d.CustName <> COALESCE(i.CustName,'')
WHERE d.CustName = 'CASH SALE'
BEGIN
RAISERROR ('The CASH SALE customer cannot be changed nor deleted.', 16, 1)
END
ELSE IF EXISTS( SELECT 1
FROM Customers i
WHERE IsDefault = 1
AND NOT EXISTS (SELECT 1 FROM deleted WHERE CustName = i.CustName)
BEGIN
RAISERROR ('There cant be more than 1 default customers.', 16, 1)
END
ELSE
BEGIN
UPDATE c
SET CustName = i.CustName,
IsDefault = i.IsDefault
FROM Customers c
INNER JOIN Inserted i
ON i.ID = c.ID
END
GO
and do updates
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Write to spreadsheet file.vi is storing data in one row only.
The 8 points of data is going into one column in the spreadsheet. In the "Write to spreadsheet file string.vi" how do I write the 8 points to one row for each cycle?
I got this VI from NI's web a couple of years ago and forgot how to modify this part. I usume it is within the write file.vi.
Thank you in advance
SkipI just reread your original post and the way the "Write to Spreadsheet File.vi" that ships with LV works by default is to put 1D arrays into rows. I read your post backwards and told you how to put the data in a column. Sorry.
In any case, perhaps you need to make sure the Transpose input ISN'T true, and that the delimiter IS a tab.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Select single vs select upto one rows only by experts
Hello Experts,
I am sorry to post this thread again , it is million times answered.
There is a lot of confusion in the answers, so we want a very clear and justifiable answer.
please dont post rubish answers by simply copying and pasting from other threads .
now i will give an example of 2 threads which i seen in the forum.
1) first thread is like this....
According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not using all the primary key fields.
Select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index.
2)second post is like this....
When it comes to performance..select ..up to 1 rows is faster than select single....
why?
B'coz, during a select single, the query always hits the database and reads the entire table into memory and fetches the matching single record for you in the memory,
where as in the case of select up to 1 rows, the query goes to the memory first if found it retrieves the record from there, otherwise the query hits the database.
3)i seen an simple example in se30 in tips and tricks it shown select single is having better performance than select upto...rows,
We all really value the best answers..hi this is the standard one from the sdn..which will clear the answer..
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/difference%2bbetween%2bselect%2bsingle%2band%2bselect%2bupto
regards,
venkat -
Query to display one row per group based on highest value
I have the following table and I want to be able to create a query that displays only the highest number based on a group. (see below)
Acode
aname
anumber
a
Jim
40
a
Jim
23
a
Jim
12
b
Sal
42
b
Sal
12
b
Sal
3
Acode
aname
anumber
a
Jim
40
b
Sal
42Multiple ways
using aggregation
SELECT Acode,aname,MAX(anumber) AS anumber
FROM table
GROUP BY Acode,aname
using subquery
SELECT Acode,aname,anumber
FROM table t
WHERE NOT EXISTS (
SELECT 1
FROM table
WHERE Acode = t.Acode
AND aname = t.aname
AND anumber > t.anumber
using analytical function
SELECT Acode,aname,anumber
FROM
SELECT *,ROW_NUMBER() OVER (PARTITION BY Acode, aname ORDER BY anumber DESC) AS Rn
FROM table
)t
WHERE Rn = 1
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to 'build' one row only in a 2d array
Hi
I'd like to have a 2D array with eg 4 rows, and each time the loop iterates, it should append new data at the end of a specified row (row 0 in example) while the data in the other rows remain unchanged.
I tried all combinations of build array, replace array subset etc but for some reason I cannot get the rows to extend in length..
I want the output array in the example to be like:
2 2 2 2 2 2 2 2 2
x x x x x x x x x
x x x x x x x x x
x x x x x x x x x
Thus append the data array [2 2 2] 3 times to the first row, and leave the rest unchanged, but all I get is an empty array..
I've been struggling with this for a few hours now, but I can't find it.. Although I think it's very simple!
Or should I go fo
r an entirely different technique like clusters or so?
Can someone help me out?
Attachments:
build_1_row_in_2D_array.vi 24 KBKhalid,
thanks for your diagram; it didn't help me because it doesn't really do what I want, but I think the transpose 2D function is pretty interesting anyway!
I found the solution myself, but I don't know if it's clean programming considering memory etc; I first initialize an array that is big enough to conatain all data and an array containing #row elements for storing the total amount of new data written in a row.
Then I can build a specified row and by shifting the size of the data already written in that row everything gets in place..
The loop takes quite a lot of blocks and wires, comments on how to get it smaller are welcome!!
Attachments:
build_1_row_in_2D_array_working.vi 37 KB
1_row_in_2d_array.jpg 179 KB -
Im having trouble displaying one website only.
Here is a pic of the issue http://i.imgur.com/RXyqy.jpg
and i have tried in other browsers such as chrome and it works fine cleared cache and disabled puggins tried safe mode nothing works. help me out?See:
* http://kb.mozillazine.org/Images_or_animations_do_not_load
You can use these steps to check if images are blocked:
* Open the web page that has the images missing in a browser tab.
* Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
* Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
* Go to the <i>Media</i> tab of the "Tools > Page Info" window.
* Select the first image link and scroll down through the list with the Down arrow key.
* If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain. -
Notification is sent to a Role, but Action History display one member only
We have created an approval notification for HR which is sent to a Role. The role has 3 members. The email is successfully sent to the 3 members of the role (expand role is checked). However, on the Action History of the Notification Details, it shows that the submit action to was for 1 member of the role. This is misleading as actually, action is for the role (and the 3 member of the role). We would like the information here to be factual. Show that that the action was submitted for the role or show everyone who received the notification. Can that be done?
Thanks.Any light on this ?
-
Return more than one row to display as text?
I don't know if this is possible or not. I'd rather not create a report for one item.
is there a way to allow a display as text filed show more than one item from a query? I've tryed several things none work. I have one field that I'd like to show multiple data as just text. but everything I try displays one row only in the field. is there a way around this?Nazdev,
If you're trying to display multiple records as separate parts (not just concatenated together), the easiest solution would be a report. If you just want to append values together and present them in a single item, you should be able to create a query to build your string pretty easily, though you might need to write an Oracle function to do the concatenation for you.
I wrote a function to do that a while back, obvious you should check it thoroughly before you use it.
CREATE OR REPLACE FUNCTION cursor_to_list(cur_in IN aeo_misc_tools.string_ref_cur,
delimiter_in IN VARCHAR2 := ', ',
max_len_in IN PLS_INTEGER := 32000,
more_string_in IN VARCHAR2 := 'More...') RETURN VARCHAR2 IS
Description: Given single-column ref cursor, return values separated
by delimiter parameter value.
Trim last trailing delimiter.
Parameters: cur_in - opened cursor w/ single string column
delimiter_in - separate values w/ this, defaults to comma-space
max_len_in - maximum returned length
more_string_in - Append if length would be longer than max_len_in
Returns: String of separated values
Author: Stew Stryker
Usage: children_list := cursor_to_list(cur_in => child_cur, delimiter_in => ' | ');
Note: Can also pass a cursor to this directly, using the CURSOR clause, as follows:
children_list := cursor_to_list(CURSOR(SELECT pref_mail_name FROM children
WHERE parent_id = '0000055555' ORDER BY dob),
delimiter_in => ' | ');
TYPE single_string_rec_t IS RECORD(
string_val VARCHAR2(256));
TYPE string_ref_cur IS REF CURSOR;
row_value single_string_rec_t;
ret_list VARCHAR2(32000);
more_string VARCHAR2(256) := NVL(more_string_in, ' ');
delim_len CONSTANT PLS_INTEGER := LENGTH(delimiter_in);
more_len CONSTANT PLS_INTEGER := LENGTH(more_string_in);
max_len PLS_INTEGER := max_len_in - more_len - delim_len;
BEGIN
IF max_len > 0
THEN
IF cur_in%ISOPEN
THEN
FETCH cur_in
INTO row_value;
WHILE cur_in%FOUND
LOOP
IF NVL(LENGTH(ret_list), 0) + NVL(LENGTH(row_value.string_val), 0) + delim_len <=
max_len
THEN
ret_list := ret_list || row_value.string_val || delimiter_in;
ELSIF INSTR(NVL(ret_list, ' '), more_string) = 0
AND NVL(LENGTH(row_value.string_val), 0) > 0
THEN
ret_list := ret_list || more_string;
END IF;
FETCH cur_in
INTO row_value;
END LOOP;
-- Strip last delimiter
ret_list := RTRIM(ret_list, delimiter_in);
CLOSE cur_in;
END IF;
END IF;
RETURN ret_list;
EXCEPTION
WHEN no_data_found THEN
RETURN ret_list;
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('EXCEPTION IN aeo_misc_tools.cursor_to_list - ' || TO_CHAR(SQLCODE) || ': ' ||
SQLERRM);
RAISE;
RETURN ret_list;
END cursor_to_list;Good luck,
Stew -
Hi Everyone,
I am trying to implement a SQL report and want it to be as Vertical One Row. I've found one solution which would work perfectly for me in here:
[http://apex.oracle.com/pls/otn/f?p=11933:108]
It displays one row at a time and it is vertical, basically that is what I need. The problem here is that I cannot make it working. I did everything according to instructions: did create a new report template as "Named Column (row template)", inserted code into "Row Template 1" and "Before Rows" and "After Rows". Have my SQL report ready as "No Template" in "Page Definition" . In "Layout and Pagination" set to my new report template. As a result it gave me that look and feel but no pagination so I can see 1 row at a time, Instead I see all my rows the same way as I would use "default: vertical" template. Any Ideas????
Is there any other way to implement this?
ThanksHi,
I am glad it is working now. But I was wondering if logging out and in again would help in this case... If the current pagination settings are stored against the username (rather than the session), logging out and in would not make a difference. Based on what you described, that may be the case.
I think the best approach is the one indicated by fac586. The problem is that I can never remember after which colon to put that RP string!
Luis -
Displaying multiple rows in a form layout problem?
HI,
I displayed multiple rows using form layout,but form browse buttons displaying one row multiple times like if i click next it is displaying same rows in next page also ?
how can I prevent this?
very urgent
Thanks in advanceSet the table range size property to the number of rows you want to display.
Then as a post-generation action, drag and drop the Next Set and Previous Set operations of your View Object usage as buttons onto your page.
Then move the button code to a custom template, and uncheck group-level checkbox "Clear Page Definition before generation" to preserve the NextSet and PreviousSet action bindings.
Steven Davelaar,
JHeadstart Team. -
Result displaying multiple rows with Single Record
I created DB adapter and using transformation to display the result set. Expecting 4 rows as a result but it displays one row 4 times.
SOA - Studio Edition Version 11.1.1.2.0,
Database - DB2,
DB Adapter - xsd
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="F4102Collection" type="F4102Collection"/>
<xs:complexType name="F4102Collection">
<xs:sequence>
<xs:element name="F4102" type="F4102" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="F4102">
<xs:sequence>
<xs:element name="ibitm" type="xs:int"/>
<xs:element name="iblitm" type="xs:string" minOccurs="0"/>
<xs:element name="ibaitm" type="xs:string" minOccurs="0"/>
<xs:element name="ibmcu" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="cd_DBASelect_ITMInputParameters" type="cd_DBASelect_ITM"/>
<xs:complexType name="cd_DBASelect_ITM">
<xs:sequence>
<xs:element name="ITM" type="xs:int" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Adapter WSDL
<?binding.jca cd_DBA_db.jca?>
<wsdl:definitions name="cd_DBA" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA">
<plt:partnerLinkType name="cd_DBA_plt">
<plt:role name="cd_DBA_role">
<plt:portType name="tns:cd_DBA_ptt"/>
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" schemaLocation="xsd/cd_DBA_table.xsd"/>
</schema>
</wsdl:types>
<wsdl:message name="cd_DBASelect_inputParameters">
<wsdl:part name="cd_DBASelect_inputParameters" element="top:cd_DBASelect_ITMInputParameters"/>
</wsdl:message>
<wsdl:message name="F4102Collection_msg">
<wsdl:part name="F4102Collection" element="top:F4102Collection"/>
</wsdl:message>
<wsdl:portType name="cd_DBA_ptt">
<wsdl:operation name="cd_DBASelect">
<wsdl:input message="tns:cd_DBASelect_inputParameters"/>
<wsdl:output message="tns:F4102Collection_msg"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>James Thanks for reply.
I am using BPEL. I am seeing these 4 rows in XML out put.
My Query is very simple.
select ibitm,iblitm,ibaitm,ibmcu from accdtaa73/f4102 where ibitm = InputToBPEL.
o/p should see these 4 rows.
IBLITM IBMCU
2002313 AGRT
2002313 AG00
2002313 FAR0
2002313 FA00
But o/p is
IBLITM IBMCU
2002313 AGRT
2002313 AGRT
2002313 AGRT
2002313 AGRT
Here is o/p of this BPEL
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<env:Header>
<wsa:MessageID>urn:F60F8800A01311DFBFAC73A17F5C618C</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
</wsa:ReplyTo>
</env:Header>
<env:Body>
<processResponse xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess" xmlns="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess">
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
</processResponse>
</env:Body>
</env:Envelope>
XSL Script
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="XSD">
<schema location="../xsd/cd_DBA_table.xsd"/>
<rootElement name="F4102Collection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"/>
</source>
</mapSources>
<mapTargets>
<target type="WSDL">
<schema location="../CD_BPELProcess.wsdl"/>
<rootElement name="processResponse" namespace="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.2.0(build 091103.1205.1216) AT [WED AUG 04 11:39:11 PDT 2010]. -->
?>
<xsl:stylesheet version="1.0"
xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:med="http://schemas.oracle.com/mediator/xpath"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
exclude-result-prefixes="xsi xsl ns0 xsd client plnk wsdl xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket ldap">
<xsl:template match="/">
<client:processResponse>
<xsl:for-each select="/ns0:F4102Collection/ns0:F4102">
<client:element1>
<client:UPC>
<xsl:value-of select="ns0:ibmcu"/>
</client:UPC>
<client:LITM>
<xsl:value-of select="ns0:iblitm"/>
</client:LITM>
</client:element1>
</xsl:for-each>
</client:processResponse>
</xsl:template>
</xsl:stylesheet> -
Number of Rows, displaying a table with only one row
Hello,
I am doing my first VC tests on the discovery System.
I have an input form where I put in the username, then choose a user from a table and with the user ID I want to show the user details in another table.
Now since I am only pickling one user, the new table will only have one row. In VC I cannot set the no. of rows to 1 though, since I cannot edit the no. of rows field. I also cannot disable the scroll buttons.
Why is that?
Is there another way to display user details? I tried to display it in read-only form, but it is pretty ugly.
Another question regarding designing in VC:
Are there any design elements in VC for example to group form fields that belong together? Let's say I have street name, number, postal code and so on, could I use a design element to group them under the label "Address" ?Peter,
For some reason the No. of Rows and Scroll Buttons options are only available if your compiler is set to Web DynPro. Whenever you compile to Flash they're disabled.
Regards
Hennie -
Display only one row for distinct columns and with multiple rows their valu
Hi,
I have a table having some similar rows for some columns and multiple different rows for some other columns
i.e
o_mobile_no o_doc_date o_status d_mobile_no d_doc_date d_status
9825000111 01-jan-06 'a' 980515464 01-feb-06 c
9825000111 01-jan-06 'a' 991543154 02-feb-06 d
9825000111 01-jan-06 'a' 154845545 10-mar-06 a
What i want is to display only one row for above distinct row along with multiple non distinct colums
ie
o_mobile_no o_doc_date o_status d_mobile_no d_doc_date d_status
9825000111 01-jan-06 'a' 980515464 01-feb-06 c
991543154 02-feb-06 d
154845545 10-mar-06 a
regards,
KumarRe: SQL Help
Maybe you are looking for
-
How do i connect my computer to my tv to play iphoto slideshow please?
Hi, I have a Macbook and was hoping to connect it to my tv ports to play a slideshow on the tv. Not sure what type of cable to use and where to plug in? It is a HDTV with HDMI so wondered if maybe I should connect to the stereo system itself. I al
-
Multiple users identified when only one on the machine - me
I am experiencing very slow internet communication and when trying to download latest App from Apple the guidance tells me that I need to shut down 'multiple users' when I am the only user shown on our machine. We did suffer a power cut a few days a
-
IPod no longer has TV Shows menu option
Hi! I restored my iPod recently, and now I have no TV shows!!! The shows are on my iTunes, but not on my actual iPod. What do I do??????? Thanks, Dana
-
I have a Bluetooth receiver transmitter by Brookstone attached to the home stereo that we use to connect via bluetooth and play music from Pandora etc. From our iPhones or iPad. It has worked flawlessly until I updated the software on my iPad and iP
-
Have your iWeb site critiqued.
If anyone would like to have their iWeb site critiqued post it here. All graphic designers and professionals alike are encouraged to critique as well. I have been working as a graphic designer for over 8 years, and am working towards my masters degre