ComboBox in load XML into a new file
I have an XML file that contains a node with a reference to another XML file. I am trying to load the first XML file in a ComboBox control. When the user makes a selection, the new XML file will load in a TileList/VBox. I can't understand how to move the XML file referenced from the user selection and display the results of this new XML file.So, this is the flow:
1. the user chooses the catalog they would like to see go a CombBox (which is filled by a XML file)
2 the categories referenced in #1 also point to another .xml file
3. the user selects in the drop-down list
4. the appropriate XML file is passed and displayed in a TileList/VBox
I hope I'm making sense...
Do you mean something like this:
-Main file: -.
private void loadNewCategory(category:Object):void
[Bindable]
public var productData:XML;
{
var loader: URLLoader = new URLLoader (new URLRequest (category.@file));
loader.addEventListener (Event.COMPLETE, function(e:Event):void
{
productData = XML (loader.data);
});
}
]]>
-the categories.xml file: -.
-cheap.xml: -.
-cool.xml: -.
-fast.xml: -.
Tags: Flex
Similar Questions
-
I bought a new computer and want to remove Adobe Photoshop CC between this computer and load it into a new one with Lightroom. How can I go about it?
Hi David,
Please see the link below to uninstall any creative cloud.
Uninstall or remove Adobe Creative Cloud applications Once you uninstall you can install it on the new computer by following the instructions on the link below.
Download and install Adobe Creative Cloud apps
Hope this will solve your problems.
Kind regards
Hervé Khare
-
How to convert XML into a PDF file?
I use Adobe Acrobat X Pro 10.0. I saved a PDF file in an XML 1.0 document. I would like to be able to send this XML document and have the recipient opened the XML into a PDF file. Does anyone know how to do this?
Thank you
Hello hilaryb49990629,
Thanks much for posting on the Adobe forums.
I'm sorry, but XML is not a type of file Adobe Acrobat/Reader can open. It can be opened in a browser or Editor (such as Notepad) to view its content.
Kind regards
Ana Maria
-
Read data from the Table and load it into the csv file
Hello
I would like to read a table (select * from employees) and load the data into a csv file.
What methods are available?
Records will be at high volume.
Thank you
If it is to do a lot, use APEX.
Create a new page with an interactive report based on the SQL code you want. When you go to download Excel, it is actually a CSV file.
If it is large, you may need to go on the FILE_UTL road.
If it is only once, use an interface such as SQL tool * or SQL * Developer.
If it's a learning experience, you must do all three.
MK
-
Hi all
I want to create a procedure in which, I provided the name of the table and the location of the XML file, the procedure goes to this place and pick the file XML and load it into the table. Can it is possible?
Thank you
Best regards
AdilFinally, I got your issue! It is the use of DBMS_LOB. LOADFROMFILE, I used DBMS_LOB. LOADCLOBFROMFILE instead. It was actually loading the binary content!. This is a fully functional code based on your table and XML file structure.
The XML file, I used:28004125 251942 05-SEP-92 400 513 1 0 28004125 251943 04-OCT-92 400 513 1 0 True PL/SQL code:
SQL> /* Creating Your table */ SQL> CREATE TABLE IBSCOLYTD 2 ( 3 ACTNOI VARCHAR2 (8), 4 MEMONOI NUMBER (7,0), 5 MEMODTEI DATE, 6 AMOUNTI NUMBER (8,0), 7 BRCDSI NUMBER (4,0), 8 TYPEI NUMBER (4,0), 9 TRANSMONI NUMBER (6,0) 10 ); Table created. SQL> CREATE OR REPLACE PROCEDURE insert_xml_emps(p_directory in varchar2, 2 p_filename in varchar2, 3 vtableName in varchar2) as 4 v_filelocator BFILE; 5 v_cloblocator CLOB; 6 l_ctx DBMS_XMLSTORE.CTXTYPE; 7 l_rows NUMBER; 8 v_amount_to_load NUMBER; 9 dest_offset NUMBER := 1; 10 src_offset NUMBER := 1; 11 lang_context NUMBER := DBMS_LOB.DEFAULT_LANG_CTX; 12 warning NUMBER; 13 BEGIN 14 dbms_lob.createtemporary(v_cloblocator, true); 15 v_filelocator := bfilename(p_directory, p_filename); 16 dbms_lob.open(v_filelocator, dbms_lob.file_readonly); 17 v_amount_to_load := DBMS_LOB.getlength(v_filelocator); 18 --- ***This line is changed*** --- 19 DBMS_LOB.LOADCLOBFROMFILE(v_cloblocator, 20 v_filelocator, 21 v_amount_to_load, 22 dest_offset, 23 src_offset, 24 0, 25 lang_context, 26 warning); 27 28 l_ctx := DBMS_XMLSTORE.newContext(vTableName); 29 DBMS_XMLSTORE.setRowTag(l_ctx, 'ROWSET'); 30 DBMS_XMLSTORE.setRowTag(l_ctx, 'IBSCOLYTD'); 31 -- clear the update settings 32 DBMS_XMLStore.clearUpdateColumnList(l_ctx); 33 -- set the columns to be updated as a list of values 34 DBMS_XMLStore.setUpdateColumn(l_ctx, 'ACTNOI'); 35 DBMS_XMLStore.setUpdateColumn(l_ctx, 'MEMONOI'); 36 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'MEMODTEI'); 37 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'AMOUNTI'); 38 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'BRCDSI'); 39 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TYPEI'); 40 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TRANSMONI'); 41 -- Now insert the doc. 42 l_rows := DBMS_XMLSTORE.insertxml(l_ctx, v_cloblocator); 43 DBMS_XMLSTORE.closeContext(l_ctx); 44 dbms_output.put_line(l_rows || ' rows inserted...'); 45 dbms_lob.close(v_filelocator); 46 DBMS_LOB.FREETEMPORARY(v_cloblocator); 47 END; 48 / Procedure created. SQL> BEGIN 2 insert_xml_emps('TEST_DIR','load.xml','IBSCOLYTD'); 3 END; 4 / PL/SQL procedure successfully completed. SQL> SELECT * FROM ibscolytd; ACTNOI MEMONOI MEMODTEI AMOUNTI BRCDSI TYPEI TRANSMONI -------- ---------- --------- ---------- ---------- ---------- ---------- 28004125 251942 05-SEP-92 400 513 1 0 28004125 251943 04-OCT-92 400 513 1 0 SQL>
-
I was using CF7 to query data and load in the pdf file using the blog of Ben Forte XPAAJ java library. It's simple, and it worked very well. Then came CF8 and LiveCycle ES. XPAAJ was free, but is not free of LiveCycle ES. LC ES does much more than load data into a pdf and cost a bit, but it's probably worth the money. Because a small part of the LC ES is the same thing as XPAAJ did, the CF8 upgrade almost completely mask XJAAP.
(I got it by the judgment of the CF8, starting from the CF7 app service application service, and then restart the CF8 - I don't want to run like that for a long time).
I can possibly get into LiveCycle, but for now, no one knows something like XPAAJ that can load the data directly into a pdf file or a file Form Data Format (FDF)?
Thanks Scott
If by 'data' PDF mean you XMP metadata, so yes: CF8 comes with a version of the iText Java library that includes classes for reading and writing XMP in PDF format. Tag of CFPDF, CF8 uses iText under the hood, but does not yet use all of its features via CFPDF, you can simply call the Java classes directly in order to access iText XMP features.
Reading and writing XMP examples are given here:
http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?forumid=1&CATID=7&ThreadId=13 28338Check the pdfUtils of Ray Camden CFC on riaForge: it contains a new method of readXMP(). writeXMP() is coming - the code is included in the above thread in any case.
If you mean that the data of the form rather than XMP data, then iText can do too. Check the iText documentation:
http://www.1t3xt.info/API/Here is a small example of filling out form
http://www.peabrane.com/2007/3/5/PDF-templates-via-Railsand cfSearching (who really knows iText in a context of CF), there is this example, note the use of the iText fdfReader class:
http://cfsearching.blogspot.com/2008/01/submit-PDF-form-as-FDF-with-ColdFusion.html -
When I open a new tab, there is a blank page. I would like to a browser to load into a new tab, instead of having to click a browser after I opened the tab.
Firefox and IE are web browsers, where Google and Bing are the search engines.
By default, Firefox has a blank page when you open a new tab, which can be changed with a few different extensions.
https://addons.Mozilla.org/en-us/Firefox/addon/NewTabURL/
Place it just to any web page or a page of search engine as you want to see in a new tab. -
Loading XML into the intranet? urgent help please...
Dear friends, I need urgent help: I have a screen CAYIN (which allows me to display the evetns, etc.) and gives me the possibility of loading / displaying a FLASH (SWF) file, well, I need this SWF to load data XML ("texto.xml") but seems when the CAYIN programme that is running flash, does not the SWF find the XML code in the same folder...
Then I tried many ways to load the XML file without success up to now. Some tests are:
obj_xml. Load("\\192.168.0.100\media\texto.xml")
obj_xml. Load("\media\texto.xml")
obj_xml. Load ("texto.xml")
obj_xml. Load("..) ("/ media/texto.xml")
obj_xml. Load("\\media\texto.xml")
obj_xml. Load("file:\\192.168.0.100\media\texto.xml")
obj_xml. Load("..) \\192.168.0.100\media\texto. XML")
I guess I write something wrong or forget something. Could someone help me please? because these files are in a '192.168.0.100' internal server (intranet).
Emergency help please, thanks in advance,
If the swf file is in a directory with subdirectory media that contains texto.xml, use:
obj_xml. Load("Media/texto.xml")
-
How can I prevent a Web site from loading automatically into a new tab?
Whenever I go back to my home page, a Web site different guard load automatically in a new tab. How can I stop this from happening?
Check the setting of the homepage:
- How to set homepage - Firefox supports several home pages separated by ' |' symbol
Do a check with some malicious software malware scanning programs.
You need to scan with all programs, because each program detects a different malicious program.
Make sure that you update each program to get the latest version of their databases before scanning.- http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
- http://www.superantispyware.com/ - SuperAntispyware
- http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
- http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
- http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also:
- "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
-
Hello:
I'm very new to LabView, so I need help to find an idea that can help me to record data continuously in real time. I don't want the file is too big, so I would like a new file in Crete in each 32 mega bytes and clear the previous buffer. Now I have this code can save data of voltage in the TDMS files and the sampling frequency is 2 m Hz, so the amount of data very fast increase and my computer have more ram 2 G, then the computer hangs after 10 seconds, I'm starting to collect data. I need some advice you briliant people.
Thank you very much I appreciate really.
I'm a big supporter of the architecture of producer/consumer . But this is the place that I recommend. The DAQmx Configure Logging does all that for you!
Note: You will want to use a table instead of a graph here.
-
Load image into ImageView using file:///
Hello
According to this article http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/The-Different-Methods-of-Loadi... we should be able to load images QML using file:/// and absolute path.
For the life of me I can't load an image not only of shared/accounts/1000/shared/subfolders, but even of the application data folder.
Can someone share * work * example of loading images in ImageView using file:///
Thank you.
https://developer.BlackBerry.com/Cascades/documentation/UI/Image_Resources/content.html
-
How can I remove the clibbing path, when I place an Illustrator 9 Eps into a new file
Hello
Sorry, my English is not so good ;-)
I use a lot of Illustrator Eps 3. All these Eps are only Vectorgraphics, no Jpg or other Type in.
Now I need the Eps in a newer version, for example, Illustrator Eps 9 or 10...
My problem
I save the Illustrator Eps 3 in e.g. Illustrator 9 Eps. All right, when I open the file normally.
But if I place the Eps 9 to a new file, there is a path around the chart clibbing. (take a look at the photo)
I can't remove every path clibbing, becauseI use too many eps every time and it tooks a lot of time.
Can someone help me to solve my problem?
Maybe it's a problem with saving settings? I have no idea and I have googled a lot...
Thank you.
Or record an Action that selects all responsible paths and outline and give a shortcut to this action.
-
Loading XML into the relational Table data
Hello
I get a generated XML file to other tools (Windows), I am trying to create a Linux shell script that will gather the necessary XML file to my Linux server, then ask Oracle to use this file to load the XML data into a relational table. This activity and the data will be needed on an ongoing basis.
I tried two ways. First, I loaded the XML document into the database and tried to extract the data directly from the document, but it does not work. Now I want to try to read the data directly from the file on the server through select, however I don't get all the returned data. In the Select statement below, I am trying to query the data to see what is returned for my tests.
Create Table ci_results_table (transactionID Varchar2 (100), //transactionID should be PrimaryKey but became errors in test of insert, PK so deleted NULL value)
message Varchar2 (200),
This Varchar2 (50).
XMLType of the ProcessedDate,
status Varchar2 (50).
sourceFile VarChar2 (100));
Select x.*
from XMLTable)
' TSPLoadResults/results '.
PASSAGE xmltype (bfilename('CMDB_DEVADHOCRESULTS_DIR','LoadResults-HP_146.results.xml'), nls_charset_id ('AL32UTF8'))
COLUMNS
transactionID PATH Varchar2 (100) 'TransactionID '.
Result XMLType PATH 'result ',.
Message Varchar2 (200) PATH "Message."
PrimaryKey Varchar2 (50) PATH "PrimaryKey"
Date of ProcessedDate path "ProcessedDate."
Status Varchar2 (50) PATH "Status."
SourceFile VarChar2 (100) PATH "SourceFileName.
) x
;
Eventually, I'll have to build on that to limit the returned data to records where SourceFileName is like '% PA' and insert what is returned in to the ci_results_table. Attached is an example of the XML results file I am trying to load, it is named "ResultsTransformedtoUnix" because I used dos2Unix to convert Unix which can be good or bad. (I send the output file must be converted to the format BACK until the other application can read). Original (before converting Unix) file named in the script is also attached.
Help, please. Thank you!
Hello
I see some bad things in your query.
(1) obvious one, explaining why you get all the data: there is a typing error in the XQuery expression, there 'result' not'slead.
(2) ProcessedDate can be extracted as a date (at least not directly) because it actually represents a timestamp, use the TIMESTAMP WITH time ZONE HOURS and cast back to DATE data type in the SELECT clause
(3) transactionID is an attribute, it must be accessible with ' @' (or ' attribute:' axis)
(4) if the encoding of file really is ISO-8859-1 as suggested in the prologue, then do not use AL32UTF8 but the name of the corresponding character set: WE8ISO8859P1
Here is the query to work:
select x.transactionID , x.Message , x.Primarykey , cast(x.ProcessedDate as date) ProcessDate , x.Status , x.SourceFile from XMLTable( '/TSPLoadResults/Result' PASSING xmltype(bfilename('XML_DIR','LoadResults-HP_146.results.xml'), nls_charset_id('WE8ISO8859P1')) COLUMNS transactionID Varchar2(100) PATH '@transactionID', Message Varchar2(200) PATH 'Message', PrimaryKey Varchar2(50) PATH 'PrimaryKey', ProcessedDate timestamp with time zone PATH 'ProcessedDate', Status Varchar2(50) PATH 'Status', SourceFile VarChar2(100) PATH 'SourceFileName' ) x ;
Directly on the file using this query will only be decently (for large files) on 11.2.0.4 and beyond.
On older versions, first load the file into a (temporary) XMLType column with binary XML storage and CHOOSE from there.
because I used dos2Unix to convert Unix which can be good or bad.
This conversion should not be necessary.
-
The drop shadow layer style angle setting back to default when reloaded into the new file
My question is how do to prevent the following occurs. I created a shadow layer style in a file .psd with the parameters below.
I saved it in a file .asl I could use later. When I loaded it in a different .psd file later that day there, some parameters have remained the same, but the angle back to 30 degrees to 120 degrees all on its own, as shown below.
I just want to know how to keep the layer style settings I recorded in a file .asl return parameters when loading in a new .psd file.
My systems settings are as follows:
Photoshop CS6 extended Version 13.0 x 64
Mac OSX 10.8.2 with 705,44 Go off 749,3 GB available
The only other software I am running is Safari web browser
This is my first time trying to save a layer style and use it in a .psd file different than the one I created in.
Kind regards
Nikki Gutierrez
First thing you should do is update photoshop help > updates in in photoshop cs6, as many bugs have been fixed and your always on 13.0
(not that your description is a bug, but version 13.0 had a lot of glitches that will drive you crazy when you meet one)
Also, overall lighting can be different from one document to the other as you use global light selected in the drop shadow dialog box
Layer > layer Style > Global light > corner
See if uncheck Use Global light makes all the difference
-
Loading XML into the text boxes
I was looking at the code for hours... I have an xml doc that contains scores of football that will load into my flash dashboard. The game was postponed, there is a node called status which is filled with the info if this node is empty. My function sets the visibility property of the false status1_txt if there is nothing in that (undefined) node, otherwise it will display data that is there. If the first node is not set, it will start testing to white, the way it is supposed to. But the minute he shoots data in this text box, it doesn't go away until there is more data to replace. Looks like it is without taking into account the first part of my if statement. Any help would be greatly appreciated. I'm sure it's something simple but I just can not understand!I ended up using this to solve the problem. Thank you very much!
If (status1 [p] == undefined) {}
status1_txt. Text = "";
} else {}
status1_txt. Text = status1 [p];
}
Maybe you are looking for
-
It seems there will be no solution on other forums. And I can't trace anything whether it's relevant to this site in my computer
-
3.28.2 but NO ETHERNET
The Incompatible kernel Version correct 3.28.2 Tried: sudo softwareupdate - background of the terminal Tried: reinstall OS Still NO OPTION under Network ETHERNET... What can I do? MacBook retina 2015 Thank you.
-
S939 how to return to the old version of the system after the update new vibeul?
Hello! Sorry for my English I buy a S939 and I do the system update! I lost all! multilingual, google plays store, and so one... Anyone know how to return to the old system of 2013 or update to the old system? A big thank you to those who can help me
-
Pavilion 2320tx g6: additional memory segment created in the PC.
Hi all Of these last two days, there is an additional memory segment created on my hard drive that is named as disk Local (Z), claiming an area of 256 MB, which, if we add in other segments such as C, D, F discs then it will exceed the 1 TB. What is
-
Can I upgrade to Windows 7?
is my edition windows vista family 32-bit premium and im thinking about upgrading to windows 7. my system cope with windows7 without having any problems in program?