How to load 2 xml galleries in single function loop.
how to load 2 xml galleries in single function loop.
my function is--------
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
function callThumbs()
_root.createEmptyMovieClip("wall",_root.getNextHighestDepth());
wall._x = _root.gallery_x;
wall._y = _root.gallery_y;
wall.addEventListener(MouseEvent.CLICK);
var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);
for (i =0; i <6; i++)
thumbURL = myImages[i].attributes.thumb_url;
myThumb_mc = wall.createEmptyMovieClip(i, wall.getNextHighestDepth());
myThumb_mc._x = _root.thumb_height * i;
myThumb_mc._x = _root.thumb_position = -3100 + (i-j) * 765;
clipLoader.loadClip("shop/" + thumbURL,myThumb_mc); // i want to load this by xml gallery "gallery1.xml"
preloader.onLoadStart = function(target)
target.createTextField("my_txt",target.getNextHighestDepth(),0,0,10,10);
target.my_txt.selectable = false;
preloader.onLoadProgress = function(target, loadedBytes, totalBytes)
target.my_txt.text = Math.floor((loadedBytes / totalBytes) * 100);
preloader.onLoadComplete = function(target)
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.removeTextField();
target.onRelease = function()
callFullImage(this._name);
target.onRollOver = function()
this._alpha = 100;
target.onRollOut = function()
this._alpha = 100;
for (i = 0; i < 6; i++)
thumbURL = myImages[i].attributes.thumb_url;
myThumb_mc = wall.createEmptyMovieClip(i, wall.getNextHighestDepth());
myThumb_mc._x = _root.thumb_height * i;
myThumb_mc._x = _root.thumb_position = -7210 + (i-j) * 765;
myThumb_mc._y = _root.thumb_position = 180;
clipLoader.loadClip("banner/" + thumbURL,myThumb_mc); // i want to load this by xml gallery "gallery2.xml"
preloader.onLoadStart = function(target)
target.createTextField("my_txt",target.getNextHighestDepth(),0,0,10,10);
target.my_txt.selectable = false;
preloader.onLoadProgress = function(target, loadedBytes, totalBytes)
target.my_txt.text = Math.floor((loadedBytes / totalBytes) * 100);
preloader.onLoadComplete = function(target)
new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
target.my_txt.removeTextField();
target.onRelease = function()
callFullImage(this._name);
target.onRollOver = function()
this._alpha = 100;
target.onRollOut = function()
this._alpha = 100;
combine the two xml files into one if you want to create one gallery.
if you want two different galleries that display at different times, remove the movieclip wall after you're done with gallery1 and execute myGalleryXML.load("gallery2.xml");
Similar Messages
-
How to load an XML file to oracle9i server?
I want to use XSU DBMS_XMLsave package to load an XML file to a relational table using PL/SQL from a distant server. Now, I don't know how to load that XML file to the distant server.
Somebody help me?I want to use XSU DBMS_XMLsave package to load an XML file to a relational table using PL/SQL from a distant server. Now, I don't know how to load that XML file to the distant server.
Somebody help me? -
Can you tell me How to loading sessions.xml in servlet
Can you tell me How to loading sessions.xml in servlet
Getting a session in a servlet is no different than in any other environment except that you need to be careful which classloader you pass to the SessionManager and correctly configure what to do if your application is reloaded. If you use the oracle.toplink.util.SessionFactory introduced in 10.1.3.1 you don't have to worry about these details--it uses the correct settings. The SessionFactory greatly simplifies the code required to get a session or unit of work. It's well documented in the SessionFactory javadoc.
If you do use SessionFactory beware there is a bug when running in a JTA environment and there's no transaction started. Doug posted a work around in his blog[1].
--Shaun
[1] http://www.jroller.com/page/djclarke/20060412 -
Load different xml structure in single flash file
Hi to all,
How can i call different xml structures in single file..
actually i am looking for 2 different menu galleries in single
file.. first menu contains.. some 4 to 5 buttons.. done with this..
in other flash file..having some of 4-5 buttons.. and these
buttons.. to show in main flash file.. can i load 2 different swf
files in single main file and with different xml structure please
help me on this.. thanks in advance.
Best Regards
Satish Kumar Rajulayes, you can use one xml instance with an if-statement, but
it's easier and cleaner to use different xml instances and
different parsing code for each xml file loaded that has different
structure. -
Hi,
I have one intro.swf from that am loading one interface.swf by using loader.In interface i am loading some of the swf and xml am getting the swf but the xml files are not loading.When i run from interface file it is loading fine. only when i load the intro file the xml files are not loading. can any one tell me what is the problem how to access the xml content.
This is the code am using in interface.swf to to get the xmlpath
MovieClip(root).param1 = xmlPath;
to access the xml content i have written the code
var xmlPath:String=MovieClip(stage.getChildAt(0)).param1;
I am using one moviclip in interface to load the other swf and xml. I am not using any moviclip in intro file to load the interface swf for that i am using only the loader.Where are the files located relative to each other? If the intro and interface are in different folders then the problem could be that you need to adjust the path the interface uses for targeting the files it loads.
-
How to load a XML file into a table using PL/SQL
Hi Guru,
I have a requirement, that i have to create a procedure or a package in PL/SQL to load XML file into a table.
How we can achive this.ODI_NewUser wrote:
Hi Guru,
I have a requirement, that i have to create a procedure or a package in PL/SQL to load XML file into a table.
How we can achive this.
Not a perfectly framed question. How do you want to load the XML file? Hoping you want to parse the xml file and load it into a table you can do this.
This is the xml file
karthick% cat emp_details.xml
<?xml version="1.0"?>
<ROWSET>
<ROW>
<EMPNO>7782</EMPNO>
<ENAME>CLARK</ENAME>
<JOB>MANAGER</JOB>
<MGR>7839</MGR>
<HIREDATE>09-JUN-1981</HIREDATE>
<SAL>2450</SAL>
<COM>0</COM>
<DEPTNO>10</DEPTNO>
</ROW>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
<JOB>PRESIDENT</JOB>
<HIREDATE>17-NOV-1981</HIREDATE>
<SAL>5000</SAL>
<COM>0</COM>
<DEPTNO>10</DEPTNO>
</ROW>
</ROWSET>
You can write a query like this.
SQL> select *
2 from xmltable
3 (
4 '/ROWSET/ROW' passing xmltype
5 (
6 bfilename('SDAARBORDIRLOG', 'emp_details.xml')
7 , nls_charset_id('AL32UTF8')
8 )
9 columns empno number path 'EMPNO'
10 , ename varchar2(6) path 'ENAME'
11 , job varchar2(9) path 'JOB'
12 , mgr number path 'MGR'
13 , hiredate varchar2(20)path 'HIREDATE'
14 , sal number path 'SAL'
15 , com number path 'COM'
16 , deptno number path 'DEPTNO'
17 );
EMPNO ENAME JOB MGR HIREDATE SAL COM DEPTNO
7782 CLARK MANAGER 7839 09-JUN-1981 2450 0 10
7839 KING PRESIDENT 17-NOV-1981 5000 0 10
SQL> -
How to load a XML file into a table
Hi,
I've been working on Oracle for many years but for the first time I was asked to load a XML file into a table.
As an example, I've found this on the web, but it doesn't work
Can someone tell me why? I hoped this example could help me.
the file acct.xml is this:
<?xml version="1.0"?>
<ACCOUNT_HEADER_ACK>
<HEADER>
<STATUS_CODE>100</STATUS_CODE>
<STATUS_REMARKS>check</STATUS_REMARKS>
</HEADER>
<DETAILS>
<DETAIL>
<SEGMENT_NUMBER>2</SEGMENT_NUMBER>
<REMARKS>rp polytechnic</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>3</SEGMENT_NUMBER>
<REMARKS>rp polytechnic administration</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>4</SEGMENT_NUMBER>
<REMARKS>rp polytechnic finance</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>5</SEGMENT_NUMBER>
<REMARKS>rp polytechnic logistics</REMARKS>
</DETAIL>
</DETAILS>
<HEADER>
<STATUS_CODE>500</STATUS_CODE>
<STATUS_REMARKS>process exception</STATUS_REMARKS>
</HEADER>
<DETAILS>
<DETAIL>
<SEGMENT_NUMBER>20</SEGMENT_NUMBER>
<REMARKS> base polytechnic</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>30</SEGMENT_NUMBER>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>40</SEGMENT_NUMBER>
<REMARKS> base polytechnic finance</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>50</SEGMENT_NUMBER>
<REMARKS> base polytechnic logistics</REMARKS>
</DETAIL>
</DETAILS>
</ACCOUNT_HEADER_ACK>
For the two tags HEADER and DETAILS I have the table:
create table xxrp_acct_details(
status_code number,
status_remarks varchar2(100),
segment_number number,
remarks varchar2(100)
before I've created a
create directory test_dir as 'c:\esterno'; -- where I have my acct.xml
and after, can you give me a script for loading data by using XMLTABLE?
I've tried this but it doesn't work:
DECLARE
acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') );
BEGIN
insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks)
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS[$hn]/DETAIL'
passing acct_doc as "d",
x1.header_no as "hn"
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
END;
This should allow me to get something like this:
select * from xxrp_acct_details;
Statuscode status remarks segement remarks
100 check 2 rp polytechnic
100 check 3 rp polytechnic administration
100 check 4 rp polytechnic finance
100 check 5 rp polytechnic logistics
500 process exception 20 base polytechnic
500 process exception 30
500 process exception 40 base polytechnic finance
500 process exception 50 base polytechnic logistics
but I get:
Error report:
ORA-06550: line 19, column 11:
PL/SQL: ORA-00932: inconsistent datatypes: expected - got NUMBER
ORA-06550: line 4, column 2:
PL/SQL: SQL Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
and if I try to change the script without using the column HEADER_NO to keep track of the header rank inside the document:
DECLARE
acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') );
BEGIN
insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks)
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'/ACCOUNT_HEADER_ACK/DETAILS'
passing acct_doc
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
END;
I get this message:
Error report:
ORA-19114: error during parsing the XQuery expression:
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.DBMS_XQUERYINT' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at line 4
19114. 00000 - "error during parsing the XQuery expression: %s"
*Cause: An error occurred during the parsing of the XQuery expression.
*Action: Check the detailed error message for the possible causes.
My oracle version is 10gR2 Express Edition
I do need a script for loading xml files into a table as soon as possible, Give me please a simple example for understanding and that works on 10gR2 Express Edition
Thanks in advance!The reason your first SQL statement
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS[$hn]/DETAIL'
passing acct_doc as "d",
x1.header_no as "hn"
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
returns the error you noticed
PL/SQL: ORA-00932: inconsistent datatypes: expected - got NUMBER
is because Oracle is expecting XML to be passed in. At the moment I forget if it requires a certain format or not, but it is simply expecting the value to be wrapped in simple XML.
Your query actually runs as is on 11.1 as Oracle changed how that functionality worked when 11.1 was released. Your query runs slowly, but it does run.
As you are dealing with groups, is there any way the input XML can be modified to be like
<ACCOUNT_HEADER_ACK>
<ACCOUNT_GROUP>
<HEADER>....</HEADER>
<DETAILS>....</DETAILS>
</ACCOUNT_GROUP>
<ACCOUNT_GROUP>
<HEADER>....</HEADER>
<DETAILS>....</DETAILS>
</ACCOUNT_GROUP>
</ACCOUNT_HEADER_ACK>
so that it is easier to associate a HEADER/DETAILS combination? If so, it would make parsing the XML much easier.
Assuming the answer is no, here is one hack to accomplish your goal
select x1.status_code,
x1.status_remarks,
x3.segment_number,
x3.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS'
passing acct_doc as "d",
columns detail_no for ordinality,
detail_xml xmltype path 'DETAIL'
) x2,
xmltable(
'DETAIL'
passing x2.detail_xml
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS') x3
WHERE x1.header_no = x2.detail_no;
This follows the approach you started with. Table x1 creates a row for each HEADER node and table x2 creates a row for each DETAILS node. It assumes there is always a one and only one association between the two. I use table x3, which is joined to x2, to parse the many DETAIL nodes. The WHERE clause then joins each header row to the corresponding details row and produces the eight rows you are seeking.
There is another approach that I know of, and that would be using XQuery within the XMLTable. It should require using only one XMLTable but I would have to spend some time coming up with that solution and I can't recall whether restrictions exist in 10gR2 Express Edition compared to what can run in 10.2 Enterprise Edition for XQuery. -
How to load a XML file into the database
Hi,
I've always only loaded data into the database by using SQL-Loader and the data format was Excel or ASCII
Now I have to load a XML.
How can I do?
The company where I work has Oracle vers. 8i (don't laugh, please)
Thanks in advance!Hi,
Tough job especially if the XML data is complex. The have been some similar question in the forum:
Using SQL Loader to load an XML File -- use 1 field's data for many records
SQL Loader to upload XML file
Hope they help.
Regards,
Sujoy -
An example about how to load a XML file
Hi,
I've been working on Oracle for many years but fot the first time I was asked to load a XML file into a table.
As an example, I've found this on the web, but it doesn't work.
Can someone tell me why? I hoped this example could help me.
the file acct.xml is this:
<?xml version="1.0"?>
<ACCOUNT_HEADER_ACK>
<HEADER>
<STATUS_CODE>100</STATUS_CODE>
<STATUS_REMARKS>check</STATUS_REMARKS>
</HEADER>
<DETAILS>
<DETAIL>
<SEGMENT_NUMBER>2</SEGMENT_NUMBER>
<REMARKS>rp polytechnic</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>3</SEGMENT_NUMBER>
<REMARKS>rp polytechnic administration</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>4</SEGMENT_NUMBER>
<REMARKS>rp polytechnic finance</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>5</SEGMENT_NUMBER>
<REMARKS>rp polytechnic logistics</REMARKS>
</DETAIL>
</DETAILS>
<HEADER>
<STATUS_CODE>500</STATUS_CODE>
<STATUS_REMARKS>process exception</STATUS_REMARKS>
</HEADER>
<DETAILS>
<DETAIL>
<SEGMENT_NUMBER>20</SEGMENT_NUMBER>
<REMARKS> base polytechnic</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>30</SEGMENT_NUMBER>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>40</SEGMENT_NUMBER>
<REMARKS> base polytechnic finance</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>50</SEGMENT_NUMBER>
<REMARKS> base polytechnic logistics</REMARKS>
</DETAIL>
</DETAILS>
</ACCOUNT_HEADER_ACK>
For the two tags HEADER and DETAILS I have the table:
create table xxrp_acct_details(
status_code number,
status_remarks varchar2(100),
segment_number number,
remarks varchar2(100)
before I've created a
create directory test_dir as 'c:\esterno'; -- where I have my acct.xml
and after, can you give me a script for loading data by using XMLTABLE?
I've tried this but it doesn't work:
DECLARE
acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') );
BEGIN
insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks)
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS[$hn]/DETAIL'
passing acct_doc as "d",
x1.header_no as "hn"
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
END;
This should allow me to get something like this:
select * from xxrp_acct_details;
Statuscode status remarks segement remarks
100 check 2 rp polytechnic
100 check 3 rp polytechnic administration
100 check 4 rp polytechnic finance
100 check 5 rp polytechnic logistics
500 process exception 20 base polytechnic
500 process exception 30
500 process exception 40 base polytechnic finance
500 process exception 50 base polytechnic logistics
but I get:
Error report:
ORA-06550: line 19, column 11:
PL/SQL: ORA-00932: inconsistent datatypes: expected - got NUMBER
ORA-06550: line 4, column 2:
PL/SQL: SQL Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
and if I try to change the script without using the column HEADER_NO o keep track of the header rank inside the document:
DECLARE
acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') );
BEGIN
insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks)
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'/ACCOUNT_HEADER_ACK/DETAILS'
passing acct_doc
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
END;
I get this message:
Error report:
ORA-19114: error during parsing the XQuery expression:
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.DBMS_XQUERYINT' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at line 4
19114. 00000 - "error during parsing the XQuery expression: %s"
*Cause: An error occurred during the parsing of the XQuery expression.
*Action: Check the detailed error message for the possible causes.
My oracle version is 10gR2 Express Edition
I do need a script for loading xml files into a table as soon as possible
Thanks in advance!Hello,
Your code is not readable (no code tags).
Anyway, you can use SQL*Loader to load a XML document into a table.
Here is the link of the documentation with both description and an example at the end of the
article.
http://docs.oracle.com/cd/B19306_01/appdev.102/b14259/xdb25loa.htm
Regards,
Dariyoosh -
How to load a XML into Checkpoint in UFT API using custom code
I am automating a webservice using UFT-12. In which I am trying to load a xml into the checkpoint at run time. but I am not able to find out a way of doing it.Can any1 help me on this?
@piyu_sh_arm
Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
If you are unfamiliar with the Forum's private messaging please click here to learn more.
Thank you,
Omar
I Work for HP -
How to load external XML into DataGrid ??
Hello ,everybody , I can't load external Xml like this format
<list>
<month name="Jan-04" revenue="400263" average="80052">
<region name="APAC" revenue="46130"/>
<region name="Europe" revenue="106976"/>
<region name="Japan" revenue="79554"/>
<region name="Latin America" revenue="39252"/>
<region name="North America" revenue="128351"/>
</month>
<month name="Feb-04" revenue="379145" average="75829">
<region name="APAC" revenue="70324"/>
<region name="Europe" revenue="88912"/>
<region name="Japan" revenue="69677"/>
<region name="Latin America" revenue="59428"/>
<region name="North America" revenue="90804"/>
</month>
</list>
I only can load with node format like this :
<order>
<item>
<menuName>burger</menuName>
<price>3.95</price>
</item>
<item>
<menuName>fries</menuName>
<price>1.45</price>
</item>
</order>
Please tell me what am I going to do?
Thanks!I'm stuck on this as well. I've read through the above
samples and postings and am now feeling really retarded. I thought
throwing the contents of a simple XML doc into a DataGrid would be
easy, but I've been trying all morning and no love. Any help is
appreciated.
Here the XML --> guides.xml
<?xml version="1.0" encoding="UTF-8">
<GuideList title="Current Guides">
<GuideItem>
<GuideName>11699240</GuideName>
<DisplayName>Supercharged Branding
Program</DisplayName>
<LinkText>View Downloadable Guide</LinkText>
<Franchise>Film/TV</Franchise>
<Property>Cars</Property>
</GuideItem>
<GuideItem>
<GuideName>11721503</GuideName>
<DisplayName> Packaging & Retail
Signage</DisplayName>
<LinkText>View Downloadable Guide</LinkText>
<Franchise>Film/TV</Franchise>
<Property>None</Property>
</GuideItem>
etc....
Here's the flex --> GuideListDisplay.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" initialize="guidelist.send()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable] private var myData:ArrayCollection;
private function resultHandler(event:ResultEvent):void {
myData = event.result.GuideList.GuideItem;
]]>
</mx:Script>
<mx:HTTPService id="guidelist" url="assets/guides.xml"
result="resultHandler(event)"/>
<mx:Panel title="{myData.GuideList.title}"> // 1119
<mx:DataGrid x="29" y="36" id="Guides"
dataProvider="{myData.lastresult.GuideList.GuideItem}"> // 1119
<mx:columns>
<mx:DataGridColumn headerText="Guide Number"
dataField="GuideName"/>
<mx:DataGridColumn headerText="Guide Name"
dataField="DisplayName"/>
<mx:DataGridColumn headerText="DisplayText"
dataField="LinkText"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:Application>
The lines throw with // 1119 throw a problem notice - 1119:
Access of possibly undefined property GuideList through a reference
with static type mx.collections:ArrayCollection.
GuideListDisplay.mxml Lessons line 17 March 21, 2007 12:53:45 PM
215
Please help before hari kari looks like a good option.
Thanks! -
Hi all experts,
I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
is there anyone know why
SQL> create or replace directory XMLDIR as '/xdb/faq/testdata'
2 /
SQL> set long 10000 pages 200 lines 150
SQL> --
SQL> select xmltype(bfilename('XMLDIR','2003.xml'),nls_charset_id('AL32UTF8'))
2 from dual
worked. but
SQL> create or replace directory XMLDIR as 'C:\Drag_list\Modified';
SQL> select xmltype(bfilename('XMLDIR','2011.xml'),nls_charset_id('AL32UTF8'))
from dual
did not work?
IS there any way I can load the .xml file list from 'C:\Drag_list\Modified' into xmltype table?
Thanks.did not work?Generally we'll need a bit more info than "it didn't work", was there an ora-X error message? What was the error?
Assuming you're on *nix a 'C:\<folder name>\...' directory spec just plain won't work, the directory has to point to a valid storage location on the database server host.
Try a host command (at the database server) and make sure the .xml file name and location is valid, in sqlplus a "bang" (exclamation) runs a host command, i.e.:
SQL> !ls -l /xdb/faq/testdata
... usr grp ... 2003.xml
...But if you are on windows, its the `host` command:
SQL> host dir c:\drag_list\modified
mm/dd/yyyy ... 2011.xml
... The create directory ... as ... must point to a valid storage location for it to work, at least that is step one. -
Hi all experts,
I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
is there anyone know why
SQL> create or replace directory XMLDIR as '/xdb/faq/testdata'
2 /
SQL> set long 10000 pages 200 lines 150
SQL> --
SQL> select xmltype(bfilename('XMLDIR','2003.xml'),nls_charset_id('AL32UTF8'))
2 from dual
worked. but
SQL> create or replace directory XMLDIR as 'C:\Drag_list\Modified';
SQL> select xmltype(bfilename('XMLDIR','2011.xml'),nls_charset_id('AL32UTF8'))
from dual
did not work?
IS there any way I can load the .xml file list from 'C:\Drag_list\Modified' into xmltype table?
Thanks.
Edited by: Cow on Apr 13, 2011 12:58 AMThis is a question better suited for the sql and pl/sql support forum, since it is NOT an APEX based question..: PL/SQL
Thank you,
Tony Miller
Webster, TX
On the road of life...There are 'windshields', and there are 'bugs'
(splat!)
"Squeegees Wanted"
If this question is answered, please mark the thread as closed and assign points where earned.. -
How to load the XML data of SAP to a target database
i use an IDocs to read from SAP and converted into XML (ie .XSD ) and now i want to move that XML data to target data base.
i am trying to move XML data to template table, but i am getting this mapping error , even though i used NRDM and mapping while moving to template table.
ERROR MESSAGE :
Invalid mapping expression for column <Query_1.SNDPRN>. Additional information: <Cannot parse expression.
Table <Query.EDI_DC40> for column <SNDPRN> does not occur in the FROM clause. For a top-level query, all columns must belong to some table in the FROM clause.. (BODI-1112351)>. (BODI-1111081)Hi Srikanth,
Please find my understanding below.Correct me if my understanding is wrong.
1)You have moved the data from IDOC to XML file (i.e Creating an XSD and using it as target).
2)Now this XML file, will you your source and you are going to load it into the target table.
The error looks like BODS is unable to parse the Hierarchy structure to the flat structure.
How are you un-nesting your data (Are you using XML pipeline) .
Thanks
Arun. -
How to load an XML schema with Data Integrator ?
Post Author: Kris Van Belle
CA Forum: Data Integration
Is someone having experience with loading data from a regular table into an XML schema ?
What are exactly the steps to undertake ? The DI user manual does not provide that much information...Post Author: bhofmans
CA Forum: Data Integration
Hi Kris,
In the Designer.pdf there is a chapter called 'nested data' with more information, but you can also check this website with some detailed instructions and examples on how to build a nested relational data model (NRDM).
http://www.consulting-accounting.com/time/servlet/ShowPage?COMPANYID=43&ELEMENTID=161
(Thanks to Werner Daehn for putting this together).
Maybe you are looking for
-
Security manager not used with JNDI ?!
Hi, I have a simple stand-alone java app that does a JNDI lookup and subsequent method invocation on the returned session bean. I never explicitly install a security manager and am wondering why there are no security problems getting the bean proxy a
-
Unable to display new PDF's in Illustrator 10
Unable to open PDF files in Illustrator 10.0.3. Using a trial version of Adobe Acrobat X Pro (via Suite) and worked to import into AI which indicates that the files are corrupted and unrepairable. Ugh...use older version of Acrobat? T
-
What is the best way to copy data....
Hello friends, What could you think is the best way to copy this data ? : - I have two identical databases (Oracle 9i) - I want to migrate the data of 90 tables (all tables begin with the same string, i.e. 'TAB') from Database1 to database2. - There
-
How to set main class in netbeans?
i have a class with a main method that i want to set as my main class, but i dont have the source for it. how can i set it as my main class in netbeans? thanks!
-
Copy the content of the text file not the file itself
Hi I have a problem, I am converting .dat file to .txt file using powershell and there is no problem, but when i try to read that file using the software I am working with, it cant read the file. but when i copy and paste it manually to new file, it