Collection type support in Forms version 6.0.8.11.3
Hi
I am trying to call this from forms.
I am getting error no data found whenever this calls IF condition but from backend if run it from a script it works fine.
So I was thinking whether Forms PL/SQL version supports collection types.
I am using Forms [32 Bit] Version 6.0.8.11.3 (Production).
IF (p_emp_ids.COUNT > 0) THEN
FOR r IN v_emp_ids.FIRST..v_pkg_ids.LAST LOOP
Thanks in Advance
Is it just a a typo that the IF is on P_emp_ids and the loop is on V_em_ids?
However: the NO_DATA_FOUND exception suggests that you may be falling down a crack in your collection. If you have a missing element between FIRST and LAST you will get a no_data_found. Suppose these elements are there:
(1), (2). (3), (5), (6)
You will start at FIRST (1) and finish at LAST (6). But your loop on R will try to find the element at (4). Which isn't there. Oops...
To prove that's what's happening, you can wrap the inside of the loop with an exception handler
BEGIN
do the access to v_emp_ids(r)
EXCEPTION
WHEN NO_DATA_FOUND then (log a message with the value if R in it)
END;If you want to walk a collection with gaps (a "sparse" collection), this is the way:
DECLARE
r pls_integer;
BEGIN
r := v_empids.FIRST
LOOP
EXIT when r IS NULL;
do the business on v_empids(r);
r := v_empids(r).NEXT;
END LOOP;Now, why didn't this work in Forms, but did on the server? Possible reasons:
- your back end script was set up differently - so you had a dense collection (no gaps)
- Client side PL/SQL is different from server side (is it still version 1.x?)
HTH
Regards Nigel
Message was edited by:
nthomas
Similar Messages
-
Hi
I am trying to call this from forms.
I am getting error no data found whenever this calles IF condition but from backend if run it from a script it works fine.
So I was thinking whether Forms PL/SQL version supports collection types.
I am using Forms [32 Bit] Version 6.0.8.11.3 (Production) for Oracle Application 11.5.10 version.
IF (p_emp_ids.COUNT > 0) THEN
FOR r IN v_emp_ids.FIRST..v_pkg_ids.LAST LOOP
Thanks in AdvanceIs it just a a typo that the IF is on P_emp_ids and the loop is on V_em_ids?
However: the NO_DATA_FOUND exception suggests that you may be falling down a crack in your collection. If you have a missing element between FIRST and LAST you will get a no_data_found. Suppose these elements are there:
(1), (2). (3), (5), (6)
You will start at FIRST (1) and finish at LAST (6). But your loop on R will try to find the element at (4). Which isn't there. Oops...
To prove that's what's happening, you can wrap the inside of the loop with an exception handler
BEGIN
do the access to v_emp_ids(r)
EXCEPTION
WHEN NO_DATA_FOUND then (log a message with the value if R in it)
END;If you want to walk a collection with gaps (a "sparse" collection), this is the way:
DECLARE
r pls_integer;
BEGIN
r := v_empids.FIRST
LOOP
EXIT when r IS NULL;
do the business on v_empids(r);
r := v_empids(r).NEXT;
END LOOP;Now, why didn't this work in Forms, but did on the server? Possible reasons:
- your back end script was set up differently - so you had a dense collection (no gaps)
- Client side PL/SQL is different from server side (is it still version 1.x?)
HTH
Regards Nigel
Message was edited by:
nthomas -
Urgent - Does report 6.0 release supports collection types
Hi,
We went through the report 6.0 of developer 6.0(beta). There we
found that it does currently supports all Oracle8 features. The
major unsupported features are:
1. Collection types (nested tables and varying arrays).
2. Stored procedures that return object values.
But for our forthcoming project we need extensive supports of
oracle 8 new features like REF, nested table, varying arrays as
well as stored procedures that return object values.
So can anybody tell me whether Developer 6.0 realease version
supports those features.
Thanks & regards.
Ashokejyoti Biswas
nullMahesh Gangarapu (guest) wrote:
: RESPECTED Seniors and Fellow Partners,
: When I first loaded O8 ver 8.0.4.xxx and then tried to load
: dev6 . The D6 installation used remove my primary database
: created . Then I devised a plan I loaded D6 first and then
: installed O8 ver 8.0.4 . The initial (primary) database was
: created and i could connect from D6 to my O8 database . But the
: problem now is that THE D6 supports simple OBJECT types but it
: does not support NESTED TABLES . The ERROR i get is DATABASE
: ERROR 1
: can you help me out with this problem of mine
: THAnk you
: Mahesh
Hi Mahesh
I've tried this in Forms5.0 and ended up with an error which says
unsupported network data type.
The only way, as far as I know , to use a new object feature in
Oracle 8 through developer R2.x or also R6.0 (i haven't seen
this) is use a data block created with a stored procedure at the
back end. U can use REF cursor as one of the parameters in the
procedure and table type as another parameter. This option will
definitely work for U. I have done this some time . U should
create a package with procedures to select , insert , delete and
update respectively and when U associate a block with this Forms
will tale care of coding triggers like
select-procedure
insert-procedure
delete-procedure
update-procedure
lock-procedure
Bye Rajesh
null -
Currently using Flash Pro CS5, getting error when trying to open CS4 file. Error is "Slides and Forms documents are not supported in this version of Flash. Please open in previous version. Has there been a fix or patch to this issue or do I have to convert back to CS4 to open the file?
Having the same problem in CS6. I can tell you that converting back to CS4 will NOT solve the problem. It seems when support for backward compatibility is discontinued, there's just no way to get
any help at all? Absolute failure to provide any user support so far... -
Which device type support Unicode printing ?
Hi all,
Do you know which cascading font device types support Customer-defined true type fonts ?
I use HP LaserJet printer. I've imported ZSWINCF device type in to SAP system and installed some true type fonts required for my report. It's able to print <b>Unicode </b>text in ABAP List but unable in SAPScript/Smartform printing.
I also try to use ZHPUTF8 or HPUTF8, and install these fonts. But i've problem in printing out.
Do you know how to resolve this problem ?
Thanks,
Best regards,Hi
see this OSS notes may be useful
OSSNote:960341
Symptom
In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
Other terms
CONVERT_OTF, SAPscript, Smart Forms
Reason and Prerequisites
The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
Example:
%Charwidth values from HP4300 HELVE 060 normal
/Widths
[ 278 333 500 633 633 1000 758 333 333 333 633...
Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
Solution
Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
Header Data
Release Status: Released for Customer
Released on: 30.06.2006 12:44:06
Priority: Recommendations/additional info
Category: Consulting
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
OSS Note: 776507
Symptom
Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
Other terms
SAPscript, SmartForms, printing, device types, OTF
Reason and Prerequisites
Help required to choose proper fonts in a SAPscript or SmartForm
Solution
When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
1) The language version of the form used to produce the printout.
Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
3) The output character set of the device type
Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
4) The set of available printer fonts for a given device type
When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
Note on SAPscript/SmartForms Print Preview:
The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
Which fonts are suitable for a given language?
Language(s): Font family to use in a form:
Latin-1 (Western Europe/Americas) *******
DE,EN,FR,ES,NL,SV COURIER, HELVE, TIMES
(LETGOTH, LNPRINT)
Latin-2 (Central Europe) ****************
PL, CZ COURIER, HELVE, TIMES
ISO 8859-4 (Baltic) *********************
ET, LT, LV COURIER, HELVE, TIMES
ISO 8859-5 (Cyrillic) *******************
BG, RU, SR, UK COURCYR, HELVCYR, TIMECYR
ISO 8859-7 (Greek) **********************
EL COUR_I7, HELV_I7, TIME_I7
ISO 8859-8 (Hebrew) *********************
HE COURIER, HELVE, TIMES
ISO 8859-9 (Turkish) ********************
TR COURIER, HELVE, TIMES
Simplified Chinese **********************
ZH CNHEI, CNKAI, CNSONG
Japanese ********************************
JA JPMINCHO, DBMINCHO, DBGOTHIC
Korean **********************************
KP KPBATANG, KPDODUM, KPGULIM
KPGUNGSE, KPSAMMUL
Traditional Chinese *********************
ZF TWDPHEI, TWMING, TWSONG
Thai ************************************
TH THANGSAN, THDRAFT, THVIJIT
Arabic (Unicode systems only) ***********
AR ANDALE_J
Verify your output by examining the OTF data
When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
Goto->Display Requests->Settings
and choose
Display Mode: Raw
Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
//XHPLJ8000 0700 00000000001
IN04EALEXTEST_ZEBRA
IN05%PAGE1
OPDINA4 P 144 240 1683811906000010000100001
IN06%WINDOW2
MT0024401289
CP11000000E
FCHELVE 120 00109XSF100SF101110000067E X
UL +0000000000000
SW00067
CT00000000
ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
//XHPLJ8000 0700 00000000001
The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
IN04EALEXTEST_ZEBRA
In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
OPDINA4 P 144 240 1683811906000010000100001
The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
CP11000000E
Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
FCHELVE 120 00109XSF100SF101110000067E X
Header Data
Release Status: Released for Customer
Released on: 22.08.2005 09:57:20
Priority: Recommendations/additional info
Category: Customizing
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
BC-SRV-SSF Smart Forms
<b>Reward points for useful Answers</b>
Regards
Anji -
WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping:
hi
I am trying web service,where it returns collection.
following is the code snippet,
@WebMethod()
public Collection<CustomerInfo> getAccountList()
Query query=em.createQuery("from CustomerInfo c");
return query.getResultList();
the problem is at the time of deploying i am getting following warning,
WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: customer.__JBossWS_CustomerRegisteration_EndpointInterfacePort_getAccountListResponse.result
i am using JBoss 4.0.5,it supporting JAX-WS RI 2.0_03-b24-fcs version.
could anybody tell me why this warning?
is JAX WS not able to resolve the collection type?
i tested my web service with webservice explorer provided myeclipse5.5 IDE,there web service returns null
please help me in this?Hi,
I have a serious problem when i deploy a web service in JBoss 4.0.5
when i invoke the service i can't access to SSSSS222 beacuse in my client don't be created that class SSSSS2222....
I mapped schemas to java with jaxb2.0.5.
I'm using:
JAXB 2.0 .5
JSR181
My schema is:
<xs:schema......>
<xs:element name="PPPPPP">
<xs:complexType>
<xs:all>
<xs:element ref="AAAAAAA"/>
<xs:element ref="SSSSS111"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="SSSSS111">
<xs:complexType>
<xs:sequence>
<xs:element ref="SSSSS222" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SSSSS222">
<xs:complexType>
<xs:all>
<xs:element ref="DDDDDD"/>
<xs:element ref="DEDEDEDE" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>Error:
13:24:23,271 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: com.java.SSSSS111.SSSSS222
A part of wsdl generated is:
<complexType name="SSSSS111">
<sequence/> *****error comparing with schema
</complexType>My web service is:
@WebMethod(operationName="WS1")
@WebResult(name = "Resp",
targetNamespace = "http://www.example.com/resp")
@RequestWrapper(localName = "validacionWS",
targetNamespace = "http://www.example.com/pet",
className = "com.java.ValidacionWS")
@ResponseWrapper(localName = "validacionFWSResponse",
targetNamespace = "http://www.example.com/resp",
className = "com.java.Respuesta")
public Respuesta validacionPeticion(@WebParam(name = "peticion",
targetNamespace = "http://www.example.com/pet")
Peticion peticion)throws MyException,Please, help me... -
Can sql*forms version 3 run in oracle 8 or higher database
I support an application developed many years ago with sql forms version 3 - has .inp files for the source code. It is currently running on a 7.3.4 database. My bos has asked why the database cannot be updated to a newer version. It is my understanding theat newer versions of the database do not support the types of triggers used in sql*forms. is this correct?
thanks
timall objects documented below are located in C:\...TNS_Admin folder (instant client install path similar to path structure mentioned by EdStevens). The tnsnames.ora and SQLNet.ora1 were copied from Development_Suite\NETWORK\ADMIN.
Here are several key entries from tnsnames.ora :
TOMACC=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=txri-oprdracdb-1-vip.tomkinsbp.com)(PORT=1522))
(CONNECT_DATA=
(SERVICE_NAME=TOMACC)
(INSTANCE_NAME=TOMACC1)
EBSOTM=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=txri-ebsdevdb-1.tomkinsbp.com)(PORT=1523))
(CONNECT_DATA=
(SERVICE_NAME=EBSOTM)
(INSTANCE_NAME=EBSOTM)
TOMAC5=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=txri-oqadb-1.tomkinsbp.com)(PORT=10501))
(CONNECT_DATA=
(SERVICE_NAME=TOMAC5)
(INSTANCE_NAME=TOMAC5)
TOMAC6=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=txri-oprdapp2-2.tomkinsbp.com)(PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=TOMAC6)
(INSTANCE_NAME=TOMAC6)
Here is sqlnet.ora1 (not sure the 1 should be there...but I copied it from Development_Suite as is:
# sqlnet.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
Here is Listener.Ora - looks totally wrong - likely created when I installed 11g_r2 is my guess
# listener.ora Network Configuration File: C:\Program Files\app\Oracle\tns_Admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\eswistak\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\eswistak\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\eswistak -
iTunes U video files no longer work on my computer since i update to Mavericks. The following message appears on the screen "This movie requires QuickTime, which is not supported by this version of iTunes." I followed a tutorial that suggested to go to Applications/iTunes/Get Info and change to 32 bit. Now my iTunes does not open at all, it says it requires 64 bit. I am a bit confused and disappointed. What should I do to get it fixed? Buy a new MacBook?
Marcello, I am having the same problem. When following the advice of many in the community to start iTunes in 32-bit mode, I get the following error after I have done so:
I am running 10.9.2 on a mac mini.
I am hoping this will be fixed or at least a solid answer could be given that iTunes will no longer support certain types of media going foward. -
How to use oracle collection type with JDBC?
I try to use oracle collection type in java program. So I made some package and java program, however Java program was not found "package.collectiontype"(JDBC_ERP_IF_TEST.NUM_ARRAY) . please, show me how to use this.
Java Version : Java 1.4
JDBC Driver : Oracle Oci Driver
DB: Oracle 9i
No 1. Package
===========================================
create or replace package JDBC_ERP_IF_TEST AS
type NUM_ARRAY is table of number;
procedure JDBC_ERP_IF_ARRAY_TEST(P_NUM_ARRAY IN NUM_ARRAY, ERR_NO OUT NUMBER, ERR_TEXT OUT VARCHAR2);
procedure TEST(ABC IN NUMBER);
END JDBC_ERP_IF_TEST;
==================================================
No 2. Package Body
===============================================
CREATE OR REPLACE package BODY JDBC_ERP_IF_TEST is
procedure JDBC_ERP_IF_ARRAY_TEST(p_num_array IN NUM_ARRAY,
ERR_NO OUT NUMBER,
ERR_TEXT OUT VARCHAR2) is
begin
ERR_NO := 0;
ERR_TEXT := '';
dbms_output.enable;
for i in 1 .. p_num_array.count() loop
dbms_output.put_line(p_num_array(i));
insert into emp (empno) values (p_num_array(i));
commit;
end loop;
EXCEPTION
WHEN OTHERS THEN
ERR_NO := SQLCODE;
ERR_TEXT := ERR_TEXT ||
' IN JDBC INTERFACE TEST FOR ORACLE ERP OPEN API..';
ROLLBACK;
RETURN;
end JDBC_ERP_IF_ARRAY_TEST;
procedure TEST(ABC IN NUMBER) IS
begin
insert into emp(empno) values (ABC);
commit;
end TEST;
end JDBC_ERP_IF_TEST;
===============================================
NO 3. Java Program
===============================================
ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("JDBC_ERP_IF_TEST.NUM_ARRAY", getConnection());
ARRAY array = new ARRAY(descriptor, getConnection(), arrs);
cstmt = getConnection().prepareCall(LQueryFactory.getInstance().get("Meta/Basic/testJdbcErpArrayIf").getSql());
cstmt.setArray(1, array);
cstmt.registerOutParameter(2, Types.INTEGER);
cstmt.registerOutParameter(3, Types.VARCHAR);
====================================================
couldn't find this phase => JDBC_ERP_IF_TEST.NUM_ARRAY
what can i do for this package and program? please help me..Something like this:
create or replace type t_record as object (
id number,
no number
CREATE or replace type t_table AS TABLE OF t_record;
set serveroutput on
declare
v_table t_table := t_table();
v_t1 t_table := t_table();
begin
v_table.extend(1);
v_table(1).ID := 1;
v_table(1).No := 10;
v_table.extend(1);
v_table(2).ID := 2;
v_table(2).ID := 20;
SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
from TableA
FROM TABLEA
WHERE ID IN (select t.ID from table(v_Table) t);
for i in 1..v_t1.count loop
dbms_output.put_line(v_t1(i).ID);
dbms_output.put_line(v_t1(i).No);
end loop;
end;
/Untested!
P;
Edited by: bluefrog on Mar 5, 2010 5:08 PM -
Hi,
I am trying to create rdlc file programmatically. Using Memory Table as dataset. Here is my code
' For each field in the resultset, add the name to an array listDim m_fields AsArrayList
m_fields = NewArrayList()
Dim i AsIntegerFor i = 0 To tbdataset.Tables(0).Columns.Count - 1
m_fields.Add(tbdataset.Tables(0).Columns(i).ColumnName.ToString)
Next i
'Create Report 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' Open a new RDL file stream for writingDim stream AsFileStream
stream = File.OpenWrite("D:\MyTestReport2.rdlc")
Dim writer AsNewXmlTextWriter(stream, Encoding.UTF8)
' Causes child elements to be indented
writer.Formatting = Formatting.Indented
' Report element
writer.WriteProcessingInstruction("xml", "version=""1.0"" encoding=""utf-8""")
writer.WriteStartElement("Report")
writer.WriteAttributeString("xmlns", Nothing, "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition")
writer.WriteAttributeString("xmlns:rd", "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner")
writer.WriteStartElement("ReportSections")
writer.WriteStartElement("ReportSection")
writer.WriteElementString("Width", "11in")
writer.WriteStartElement("Body")
writer.WriteElementString("Height", "5in")
writer.WriteStartElement("ReportItems")
writer.WriteStartElement("Tablix")
writer.WriteAttributeString("Name", Nothing, "Tablix1")
writer.WriteElementString("Top", ".5in")
writer.WriteElementString("Left", ".5in")
writer.WriteElementString("Height", ".5in")
writer.WriteElementString("Width", (m_fields.Count * 1.5).ToString() + "in")
writer.WriteStartElement("TablixBody")
' Tablix Columns
writer.WriteStartElement("TablixColumns")
ForEach fieldName In m_fields
writer.WriteStartElement("TablixColumn")
writer.WriteElementString("Width", "1.5in")
writer.WriteEndElement() ' TableColumnNext fieldName
writer.WriteEndElement() ' TablixColumns' Header Row
writer.WriteStartElement("TablixRows")
writer.WriteStartElement("TablixRow")
writer.WriteElementString("Height", ".25in")
writer.WriteStartElement("TablixCells")
ForEach fieldName In m_fields
writer.WriteStartElement("TablixCell")
writer.WriteStartElement("CellContents")
writer.WriteStartElement("Textbox")
writer.WriteAttributeString("Name", Nothing, "Header" + fieldName)
' writer.WriteAttributeString("CanGrow", True)' writer.WriteAttributeString("Keeptogether", True)
writer.WriteStartElement("Paragraphs")
writer.WriteStartElement("Paragraph")
writer.WriteStartElement("TextRuns")
writer.WriteStartElement("TextRun")
writer.WriteElementString("Value", fieldName)
writer.WriteStartElement("Style")
writer.WriteElementString("TextDecoration", "Underline")
writer.WriteElementString("PaddingTop", "0in")
writer.WriteElementString("PaddingLeft", "0in")
writer.WriteElementString("LineHeight", ".5in")
''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)
writer.WriteEndElement() ' Style
writer.WriteEndElement() ' TextRun
writer.WriteEndElement() ' TextRuns
writer.WriteEndElement() ' Paragraph
writer.WriteEndElement() ' Paragraphs
writer.WriteEndElement() ' TexBox
writer.WriteEndElement() ' CellContents
writer.WriteEndElement() ' TablixCellNext
writer.WriteEndElement() ' TablixCells
writer.WriteEndElement() ' TablixRow'writer.WriteEndElement() ' TablixRows Do not close Rows tag here colse it after details'End of Headers'Details Rows'writer.WriteStartElement("TablixRows") Since Rows tag in header is not closed not need to open fresh tag
writer.WriteStartElement("TablixRow")
writer.WriteElementString("Height", ".25in")
writer.WriteStartElement("TablixCells")
ForEach fieldName In m_fields
writer.WriteStartElement("TablixCell")
writer.WriteStartElement("CellContents")
writer.WriteStartElement("Textbox")
writer.WriteAttributeString("Name", Nothing, fieldName)
' writer.WriteAttributeString("CanGrow", True)' writer.WriteAttributeString("Keeptogether", True)
writer.WriteStartElement("Paragraphs")
writer.WriteStartElement("Paragraph")
writer.WriteStartElement("TextRuns")
writer.WriteStartElement("TextRun")
'writer.WriteElementString("Value", fieldName)
writer.WriteElementString("Value", "=Fields!" + fieldName + ".Value")
writer.WriteStartElement("Style")
writer.WriteElementString("TextDecoration", "Underline")
writer.WriteElementString("PaddingTop", "0in")
writer.WriteElementString("PaddingLeft", "0in")
writer.WriteElementString("LineHeight", ".5in")
''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)
writer.WriteEndElement() ' Style
writer.WriteEndElement() ' TextRun
writer.WriteEndElement() ' TextRuns
writer.WriteEndElement() ' Paragraph
writer.WriteEndElement() ' Paragraphs
writer.WriteEndElement() ' TexBox
writer.WriteEndElement() ' CellContents
writer.WriteEndElement() ' TablixCellNext
writer.WriteEndElement() ' TablixCells
writer.WriteEndElement() ' TablixRow
writer.WriteEndElement() ' TablixRows'End of Details Rows
writer.WriteEndElement() ' TablixBody
writer.WriteStartElement("TablixRowHierarchy")
writer.WriteStartElement("TablixMembers")
writer.WriteStartElement("TablixMember")
' Group
writer.WriteElementString("KeepWithGroup", "After")
writer.WriteEndElement() ' TablixMember' Detail Group
writer.WriteStartElement("TablixMember")
writer.WriteStartElement("Group")
writer.WriteAttributeString("Name", Nothing, "Details")
writer.WriteEndElement() ' Group
writer.WriteEndElement() ' TablixMember
writer.WriteEndElement() ' TablixMembers
writer.WriteEndElement() ' TablixRowHierarchy
writer.WriteStartElement("TablixColumnHierarchy")
writer.WriteStartElement("TablixMembers")
'writer.WriteStartElement("TablixMember")ForEach fieldName In m_fields
writer.WriteStartElement("TablixMember")
writer.WriteEndElement() ' TablixMemberNext' writer.WriteEndElement() ' TablixMember
writer.WriteEndElement() ' TablixMembers
writer.WriteEndElement() ' TablixColumnHierarchy
writer.WriteElementString("DataSetName", "tbdataset")
writer.WriteEndElement() ' Tablix
writer.WriteEndElement() ' ReportItems
writer.WriteEndElement() ' Body
writer.WriteStartElement("Page")
' Page Header Element
writer.WriteStartElement("PageHeader")
writer.WriteElementString("Height", "1.40cm")
writer.WriteStartElement("ReportItems")
writer.WriteStartElement("Textbox")
writer.WriteAttributeString("Name", Nothing, "Textbox1")
writer.WriteStartElement("Paragraphs")
writer.WriteStartElement("Paragraph")
writer.WriteStartElement("TextRuns")
writer.WriteStartElement("TextRun")
writer.WriteElementString("Value", Nothing, "ABC CHS.")
writer.WriteEndElement() ' TextRun
writer.WriteEndElement() ' TextRuns
writer.WriteEndElement() ' Paragraph
writer.WriteEndElement() ' Paragraphs
writer.WriteEndElement() ' TextBox
writer.WriteEndElement() ' ReportItems
writer.WriteEndElement() ' PageHeader
writer.WriteEndElement() ' Page
writer.WriteEndElement() ' ReportSection
writer.WriteEndElement() ' ReportSections' DataSources
writer.WriteStartElement("DataSources")
writer.WriteStartElement("DataSource")
writer.WriteAttributeString("Name", Nothing, "tbdata")
writer.WriteStartElement("DataSourceReference")
writer.WriteEndElement() ' DataSourceReference
writer.WriteEndElement() ' DataSource
writer.WriteEndElement() ' DataSources'DataSet
writer.WriteStartElement("DataSets")
writer.WriteStartElement("DataSet")
writer.WriteAttributeString("Name", Nothing, "tbdataset")
writer.WriteStartElement("Query")
writer.WriteElementString("DataSourceName", Nothing, "tbdata")
'writer.WriteElementString("CommandText", Nothing, "/* Local Query */")
writer.WriteElementString("CommandText", Nothing, "TableDirect")
writer.WriteEndElement() ' Query'Fields
writer.WriteStartElement("Fields")
ForEach fieldName In m_fields
writer.WriteStartElement("Field")
writer.WriteAttributeString("Name", Nothing, fieldName)
writer.WriteElementString("DataField", fieldName)
writer.WriteElementString("rd:TypeName", fieldName.GetType.ToString)
writer.WriteEndElement() ' FieldNext
writer.WriteEndElement() ' Fields' rd datasetinfo
writer.WriteEndElement() ' DataSet
writer.WriteEndElement() ' DataSets
writer.WriteEndElement() ' Report' Flush the writer and close the stream
writer.Flush()
stream.Close()
'Convert to StreamDim myByteArray AsByte() = System.Text.Encoding.UTF8.GetBytes("D:\MyTestReport2.rdlc")
Dim ms AsNewMemoryStream(myByteArray)
'Supply Stream to ReportViewer
ReportViewer1.LocalReport.LoadReportDefinition(ms)
ReportViewer1.LocalReport.Refresh()When I open rdlc in designer I get following error"Data at the root level is invalid."When I run the aspx I get following error
An error occurred during local report processing.
The definition of the report '' is invalid.
The definition of this report is not valid or supported by this version of Reporting Services.
The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas.
Details: Data at the root level is invalid. Line 1, position 1.
Can anybody guide me?Hi Wendy Fu,
Thanks for your feed back. I could see Microsoft.ReportViewer.ProcessingObjectModel.dll to add as reference to my project. Actually I can open generated rdlc in designer, at run time I get error. I could not make out where is the exact mistake out of three
options flashed.
The definition of this report is not valid or supported by this version of Reporting Services.
The report definition may have been created with a later version of Reporting Services
or contain content that is not well-formed or not valid based on Reporting Services schemas
Details: Data at the root level is invalid
My web config has following references
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
May be I have to change these versions to 9 or 10.
First I will try adding Microsoft.ReportViewer.ProcessingObjectModel.dll .
Once thanks for your reply.
Races -
Adobe Reader for Blackberry Does Not Support Fillable Forms
I've discovered that the version released for Android does support fillable forms, but the version for Blackberry does not. I assume Blackberry did not develop the app so what gives?
Mehwish,
Thank you so much for responding, and so quickly. I appreciate it.
It does not appear as though the PDF I am trying to read would have an element in it that would block it from reflow, but that is always possible. It’s a textbook, and I understand that toward the end of the book there are some charts and diagrams, but I haven’t gotten to those chapters yet. So far, I’ve just been trying to use the Adobe Reader to read the introduction and first chapter and nothing I have done has made it reflow.
I’m enclosing a copy of the entire book. Perhaps you can uncover something in it that I didn’t see.
Thanks again for you help.
Stan
Dr. Stan G. Duncan
123 Sumner St.
Quincy, Massachusetts 02169
617-855-7539 (hm)
781-504-6875 (cell)
215-647-7583 (fax)
508-295-1630 (Ch)
<mailto:[email protected]> [email protected]
<http://homebynow.blogspot.com/> http://homebynow.blogspot.com
<http://www.huffingtonpost.com/stan-duncan> http://www.huffingtonpost.com/stan-duncan -
Query result window doesn't show contents of collection types
Hello,
I use SQL Developer version 3.1.07.
When inspecting the result of a query in the query window, for collection types containing object types, the contents of the object types are not shown. So you can see the collection having a number of object types, but the content of each object type is not displayed.
In version 3.1.05 this worked well, so for object type the content is displayed.
Could you import this functionality again in 3.1.07?
Best regards,
JoopHi Joop,
Have you tried double clicking on the grid cell? That should open an editor to show the individual member object details. If double clicking does not work in some random area of the grid cell, try (scrolling if necessary first) clicking on the extreme right edge of the cell.
There is some history behind this change. It started with a performance issue populating the grid for SDO_GEOMETRY objects:
Re: SQLD 3.1EA - Fails to render resultset output containing SDO_GEOMETRY
The performance fix resulted in complaints in this forum against the SQL Developer 3.1 production release and logging another bug:
SQL Developer 3.0.04 - SDO_GEOM Issues
As far as I know, there has been no resolution on this issue, so the 3.1.07.42 behavior will probably remain unchanged in the next release. But as one of the posts indicates, you can have multiple SQL Developer versions installed on one machine -- you may want to keep that 3.1.05 early adopter version installed in order to view the object details within collections.
Regards,
Gary
SQL Developer Team -
Populate collection type from XMLType
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
Please bear with me as I'm new to this XML DB thing and also this is my first post.
I'm trying to populate collection type from XMLType. I was able to populate a table from XMLType but
couldn't figure out a way to populate the collection type. Here is the description of my problem:
Object Type:
CREATE OR REPLACE TYPE DOC_ROWTYPE AS OBJECT
REFERENCENUMBER VARCHAR2(255),
REQID NUMBER(12),
REQDETID NUMBER(12),
FROMAMOUNT VARCHAR2(31),
TOAMOUNT VARCHAR2(31),
TOACCOUNTID NUMBER(12),
TOACCOUNTNUMBER VARCHAR2(35),
FROMACCOUNTID NUMBER(12),
FROMACCOUNTNUMBER VARCHAR2(35),
Collection Type:
CREATE OR REPLACE TYPE DOC_TABLETYPE IS TABLE OF DOC_ROWTYPE;
I have a physical table which is created when I registered a schema.
A table (Temp_Result) got created with column SYS_NC_ROWINFO$ which is of XMLType.
As you can see this is only a temporary table which will store the response XML which I want to finally get it to collection type.
XML to parse:
<code>
<TFSResponse>
<TFS>
<refNumber>12345</refNumber>
<reqId>123</reqId>
<reqDetId>111</reqDetId>
<fromAmount>20</fromAmount>
<toAmount>20</toAmount>
<fromAccount>
<accountId>22222</id>
<accountNumber>12345678</number>
</fromAccount>
<toAccount>
<accountId>33333</id>
<accountNumber>123456789</number>
</toAccount>
</TFS>
.... many TFS Tags
</TFSResponse>
</code>
So each object in the collection is one TFS tag.
Any advice on how to implement this?Does this help
SQL> CREATE OR REPLACE TYPE ACCOUNT_T as OBJECT (
2 "accountId" NUMBER(12),
3 "accountNumber" VARCHAR2(35)
4 )
5 /
Type created.
SQL> show errors
No errors.
SQL> --
SQL> CREATE OR REPLACE TYPE TFS AS OBJECT(
2 "refNumber" VARCHAR2(255),
3 "reqId" NUMBER(12),
4 "reqDetId" NUMBER(12),
5 "fromAmount" VARCHAR2(31),
6 "toAmount" VARCHAR2(31),
7 "fromAccount" ACCOUNT_T,
8 "toAccount" ACCOUNT_T
9 );
10 /
Type created.
SQL> show errors
No errors.
SQL> --
SQL> CREATE OR REPLACE TYPE TFS_C
2 as TABLE of TFS
3 /
Type created.
SQL> show errors
No errors.
SQL> --
SQL> CREATE OR REPLACE Type TFS_RESPONSE_T as OBJECT(
2 "TFSResponse" TFS_C
3 );
4 /
Type created.
SQL> show errors
No errors.
SQL> /
Type created.
SQL> CREATE OR REPLACE type CODE_T as OBJECT(
2 "code" TFS_RESPONSE_T
3 );
4 /
Type created.
SQL> show errors
No errors.
SQL> --
SQL>
SQL> with "MY_XML" as
2 (
3 select XMLTYPE(
4 '<code>
5 <TFSResponse>
6 <TFS>
7 <refNumber>12345</refNumber>
8 <reqId>123</reqId>
9 <reqDetId>111</reqDetId>
10 <fromAmount>20</fromAmount>
11 <toAmount>20</toAmount>
12 <fromAccount>
13 <accountId>22222</accountId>
14 <accountNumber>12345678</accountNumber>
15 </fromAccount>
16 <toAccount>
17 <accountId>33333</accountId>
18 <accountNumber>123456789</accountNumber>
19 </toAccount>
20 </TFS>
21 <TFS>
22 <refNumber>12346</refNumber>
23 <reqId>123</reqId>
24 <reqDetId>111</reqDetId>
25 <fromAmount>20</fromAmount>
26 <toAmount>20</toAmount>
27 <fromAccount>
28 <accountId>22222</accountId>
29 <accountNumber>12345678</accountNumber>
30 </fromAccount>
31 <toAccount>
32 <accountId>33333</accountId>
33 <accountNumber>123456789</accountNumber>
34 </toAccount>
35 </TFS>
36 <TFS>
37 <refNumber>12347</refNumber>
38 <reqId>123</reqId>
39 <reqDetId>111</reqDetId>
40 <fromAmount>20</fromAmount>
41 <toAmount>20</toAmount>
42 <fromAccount>
43 <accountId>22222</accountId>
44 <accountNumber>12345678</accountNumber>
45 </fromAccount>
46 <toAccount>
47 <accountId>33333</accountId>
48 <accountNumber>123456789</accountNumber>
49 </toAccount>
50 </TFS>
51 </TFSResponse>
52 </code>') as "XML"
53 from DUAL
54 )
55 select
56 "TMOBILE"."CODE_T"(
57 "TMOBILE"."TFS_RESPONSE_T"(
58 CAST(
59 MULTISET(
60 select
61 "TMOBILE"."TFS"(
62 "refNumber_000002",
63 "reqId_000003",
64 "reqDetId_000004",
65 "fromAmount_000005",
66 "toAmount_000006",
67 "TMOBILE"."ACCOUNT_T"(
68 "accountId_000007",
69 "accountNumber_000008"
70 ),
71 "TMOBILE"."ACCOUNT_T"(
72 "accountId_000009",
73 "accountNumber_000010"
74 )
75 )
76 FROM
77 XMLTABLE(
78 '/TFS'
79 passing "TFSResponse_000001"
80 COLUMNS
81 "refNumber_000002" VARCHAR2(255) PATH 'refNumber',
82 "reqId_000003" NUMBER PATH 'reqId',
83 "reqDetId_000004" NUMBER PATH 'reqDetId',
84 "fromAmount_000005" VARCHAR2(31) PATH 'fromAmount',
85 "toAmount_000006" VARCHAR2(31) PATH 'toAmount',
86 "accountId_000007" NUMBER PATH 'fromAccount/accountId',
87 "accountNumber_000008" VARCHAR2(35) PATH 'fromAccount/accountNumber',
88 "accountId_000009" NUMBER PATH 'toAccount/accountId',
89 "accountNumber_000010" VARCHAR2(35) PATH 'toAccount/accountNumber'
90 )
91 ) as "TMOBILE"."TFS_C"
92 )
93 )
94 )
95 FROM MY_XML,
96 XMLTABLE(
97 '/'
98 passing "XML"
99 COLUMNS
100 "TFSResponse_000001" XMLTYPE PATH 'code/TFSResponse/TFS'
101 )
102
SQL> /
CODE_T(TFS_RESPONSE_T(TFS_C(TFS('12345', 123, 111, '20', '20', ACCOUNT_T(22222, '12345678'), ACCOUNT_T(33333, '123456789')), TFS('12346', 123, 111, '20', '20',
ACCOUNT_T(22222, '12345678'), ACCOUNT_T(33333, '123456789')), TFS('12347', 123, 111, '20', '20',
ACCOUNT_T(22222, '12345678'), ACCOUNT_T(33333, '123456789')))))
SQL> -
Topic: Incorrect Tag:Multiple Attributes with Same Collection Type
I have an Object Type that contains multiple attributes with the same collection type. When I use OracleXML getXML to generate xml, the tag for all elements created for any of the matching types is the tag for the 1st of the similar attributes.
work_t_v is an object view of a relational schema
SQL> desc work_t_v
Name Null? Type
WORK_ID NUMBER(38)
TITLE_OF_WORK VARCHAR2(512)
MESH_HEADINGS MESH_HEADINGS_T
AUTHORS AUTHORS_T
COMMENT_ON WORK_REFERENCES_T
COMMENT_IN WORK_REFERENCES_T
ERRATUM_IN WORK_REFERENCES_T
REPUBLISHED_FROM WORK_REFERENCES_T
REPUBLISHED_IN WORK_REFERENCES_T
SQL> desc work_references_t
work_references_t TABLE OF WORK_REFERENCE_T
Name Null? Type
REFSOURCE VARCHAR2(255)
NOTE VARCHAR2(255)select
work.work_id,
work.title_of_work,
work.comment_on comment_on,
work.comment_in comment_in,
work.erratum_in erratum_in,
work.republished_from republished_from,
work.republished_in republished_in
from work_t_v work
where work_id = 99350984
results in tag of <comment_on> for all the elements built from the work_references_t type (i.e., there are no <comment_in>, <erratum_in>, <republished_from> or <republished_in> elements)
sample result is:
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [ErratumIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedFrom]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
The above xml should be:
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_IN>
<COMMENT_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [CommentIn]</REFSOURCE>
</COMMENT_IN_ITEM>
</ERRATUM_IN>
<COMMENT_ON>
<ERRATUM_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [ErratumIn]</REFSOURCE>
</ERRATUM_IN_ITEM>
</ERRATUM_IN>
<REPUBLISHED_FROM>
<REPUBLISHED_FROM_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedFrom]</REFSOURCE>
</REPUBLISHED_FROM_ITEM>
</REPUBLISHED_FROM>
<REPUBLISHED_IN>
<REPUBLISHED_IN_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601 [RepublishedIn]</REFSOURCE>
</REPUBLISHED_IN_ITEM>
</REPUBLISHED_IN>bracketed portion [] is contained within the refsource string to indicate what type of reference it should be displayed as.
I also found that if I use the -withDTD parameter to include the dtd, the dtd includes the appropriate elements (comment_in, erratum_in, republished_from and republished_in). However, it incorrectly defines refsource and note multiple times (once for each WORK_REFERENCES_T attribute).
Are these known problems? Will they be fixed? I'm more concerned about the XML problem than the DTD problem.
Thanks! -- John Butler
nullUsing the version of XML SQL Utility that comes with the next XSQL Servlet release 0.9.8.6 I did the following:
create type foo as object (a number);
create type foolist as table of foo;
create view fooview
as select
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list1,
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list2
from dual;
When I request a "SELECT * FROM FOOVIEW"
through getXML I get:
<?xml version="1.0"?>
<ROWSET>
<ROW num="1">
<LIST1>
<LIST1_ITEM>
<A>800</A>
</LIST1_ITEM>
</LIST1>
<LIST2>
<LIST2_ITEM>
<A>800</A>
</LIST2_ITEM>
</LIST2>
</ROW>
</ROWSET>
So this appears fixed in the next code drop.
In the interim, I'll email you the new JAR file until (since it won't be on OTN for a few more days).
null -
Incorrect Tag:Multiple Attributes with Same Collection Type
I have an Object Type that contains multiple attributes with the
same collection type. When I use OracleXML getXML to generate
xml, the tag for all elements created for any of the matching
types is the tag for the 1st of the similar attributes.
work_t_v is an object view of a relational schema
SQL> desc work_t_v
Name Null? Type
WORK_ID NUMBER(38)
TITLE_OF_WORK VARCHAR2(512)
MESH_HEADINGS MESH_HEADINGS_T
AUTHORS AUTHORS_T
COMMENT_ON WORK_REFERENCES_T
COMMENT_IN WORK_REFERENCES_T
ERRATUM_IN WORK_REFERENCES_T
REPUBLISHED_FROM WORK_REFERENCES_T
REPUBLISHED_IN WORK_REFERENCES_T
SQL> desc work_references_t
work_references_t TABLE OF WORK_REFERENCE_T
Name Null? Type
REFSOURCE VARCHAR2(255)
NOTE VARCHAR2(255)
select
work.work_id,
work.title_of_work,
work.comment_on comment_on,
work.comment_in comment_in,
work.erratum_in erratum_in,
work.republished_from republished_from,
work.republished_in republished_in
from work_t_v work
where work_id = 99350984
results in tag of <comment_on> for all the elements built from
the work_references_t type (i.e., there are no <comment_in>,
<erratum_in>, <republished_from> or <republished_in> elements)
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[CommentOn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[CommentIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[ErratumIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[RepublishedFrom]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
<COMMENT_ON>
<COMMENT_ON_ITEM>
<REFSOURCE>J Infect Dis 1998 Aug;178(2):601
[RepublishedIn]</REFSOURCE>
</COMMENT_ON_ITEM>
</COMMENT_ON>
bracketed portion [] is contained within the refsource string to
indicate what type of reference it should be displayed as.
I also found that if I use the -withDTD parameter to include the
dtd, the dtd includes the appropriate elements (comment_in,
erratum_in, republished_from and republished_in). However, it
incorrectly defines refsource and note multiple times (once for
each WORK_REFERENCES_T attribute).
Are these known problems? Will they be fixed? I'm more
concerned about the XML problem than the DTD problem.
Thanks! -- John Butler
nullUsing the version of XML SQL Utility that comes with the next XSQL Servlet release 0.9.8.6 I did the following:
create type foo as object (a number);
create type foolist as table of foo;
create view fooview
as select
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list1,
cast(multiset(
select sal from emp where rownum < 2)
as foolist) list2
from dual;
When I request a "SELECT * FROM FOOVIEW"
through getXML I get:
<?xml version="1.0"?>
<ROWSET>
<ROW num="1">
<LIST1>
<LIST1_ITEM>
<A>800</A>
</LIST1_ITEM>
</LIST1>
<LIST2>
<LIST2_ITEM>
<A>800</A>
</LIST2_ITEM>
</LIST2>
</ROW>
</ROWSET>
So this appears fixed in the next code drop.
In the interim, I'll email you the new JAR file until (since it won't be on OTN for a few more days).
null
Maybe you are looking for
-
Runtime Error in Portal Application
Can any body help me in resolving the following runtime error in portal application, (Netweaver Version : 7.0) Full Message Text 03:21_21/09/11_0002_6275851 [EXCEPTION] java.lang.NoClassDefFoundError: org.apache.commons.httpclient.methods.RequestEnti
-
Movie within Keynote, export to quicktime transition delay
I have a very strange problem I can't seem to figure out. I create a Keynote presentation every week that is used to show our announcements at our church. I create the keynote with automatic advancement, then export it to a quicktime movie (which is
-
How to transfer only part of the library?
I have over 80GB of music (mainly classical) in my iTunes library and I am using it with my iPod classic. I am planning to buy now a new 16GB iPod nano and my question is how I can transfer only selected pieces of music (all library will not fit anyw
-
Why are fonts not showing correctly in the latest update?
Our blog uses the leetpress theme. You an view a sample here: http://themeforest.net/item/leetpress-a-gaming-wordpress-theme/232177 But with the latest Firefox update, the fonts are changed to my default font setting, which is Times New Roman. I trie
-
Any A/V input devices that have 24bit/96 audio ??
Any MAC compatible A/V input devices in the price range (~$300) that have quality audio input like the Edirol FA-66 (or Edirol UA-25) or Presonus Firebox that are audio only devices Is it better to get seperate audio and video input devices ?? Anyone