Loading content from database
all i get is the code in php page, i'm using this:
public function CarregaTexto ()
//vai buscar o file
var request:URLRequest = new
URLRequest("getTextoDoAboutUs.php");
//classe resp pelo carregamento
var loader:URLLoader = new URLLoader();
//faz o load
loader.load(request);
//o escutador
loader.addEventListener(Event.COMPLETE,
loaderCompleteHandler);
function loaderCompleteHandler(ev:Event):void
//mesmo target as URLLoader loader
var l:URLLoader = URLLoader(ev.target);
//prop data do url loader
traceTxt.text = l.data;
}
kglad: oh, yes, that's exactly what I demo'ed above, sorry
but I misinterpreted what you said originally - the code I posted
supports exactly what you said.
trace calls the toString() method on the underlying XMLNode
object and what was originaly the CDATA node is converted back to
regular textNode representation rather than re-created as a CDATA
node representation. This is because flash/as2 only supports
element and text nodes in its internal representation so the CDATA
node type is not retained after parsing. I haven't tested that in
as3 but it looks like it would be the same as there are only the
same 2 nodeTypes listed in the docs. So CDATA works going in, but
not on the way out of flash, if you needed that you would need to
do that via string methods I guess.
Similar Messages
-
Issue to load data from database to XML file. error: ODI-40768
Hi,
While I am trying to load data from database to XML following error is appearing.
ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
physical schema: TESTSQL
Knowledge modules are:
LKM: LKM SQL to SQL
IKM: IKM XML Control Append
CKM: CKM SQL
Parameters set are:
CREATE_XML_FILE: true
XML_PATH:<default>:C:\DATA_FILE\www.xml
I have tried to change the directory path but error is still there.
Could some one please help me to resolve the issue?
Regards,
user1672911Hi,
The trouble in "<default>:" - if you set XML_PATH as C:\DATA_FILE\www.xml instead <default>:C:\DATA_FILE\www.xml- it will work correctly.
Greetings,
Eugene -
How to enable Load Roles from database in workflow builder
Hi,
I am new to workflow.
In the wrokflow builder, How to enable file -> Load Roles from database.
I am working on workflow builder2.6.3.5.
Thanks & Regards,
Bharathi.SYou have to connect to database to load roles. File --> Open --> Database, then select the workflow.
Then load roles, then save to database.
The save as to .wft file and work on for customizations. -
How do i load content from an existing ipod to a new computer and installation of itunes?
how do i load content from an existing ipod to a new computer and installation of itunes?
Recover media from iPod
See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
tt2 -
SAP Add On: How to load data from database to a matrix
I am making a payroll application add-on for SAP Business One. I have made a form using screen painter and wanted to know how one goes about loading data from a database into the matrix columns.
My matrix has 6 columns and have called the items;
public void DeclareColumsInMonthlyMatrix()
SAPbouiCOM.Item oItem = null;
// Adding the Monthlymatrix Elements
oItem = _form.Items.Item("matMonthly");
oMatrix = oItem.Specific;
oColumns = oMatrix.Columns;
oColumn = oColumns.Item("mPayYear");
oColumn = oColumns.Item("mMonth");
oColumn = oColumns.Item("mStartDate");
oColumn = oColumns.Item("mEndDate");
oColumn = oColumns.Item("mPayStatus");
oColumn = oColumns.Item("mTaxMethod");
I have retrieved the appropriate data from the database using LinQ to SQL and I have:
// Populate the Monthly Period Data Grid View
var monthlyPeriods = Program.Kernel.Get<IMonthlyPeriodService>().GetAllMonthlyPeriods();
monthlyPeriods = monthlyPeriods.OrderBy(x => Enum.Parse(typeof(MonthsOfAYear), x.Code, true));
The corresponding field names in the database for the 6 columns are:
U_Payroll_Year,
U_Month,
U_Starting_date,
U_Ending_date,
U_Pay_Process_Status,
U_Tax_Method
I was previously using C# .Net win forms and was using a datagrid and bindingsource which was easy by using the code
// Populate the Monthly Period Data Grid View
var monthlyPeriods = Program.Kernel.Get<IMonthlyPeriodService>().GetAllMonthlyPeriods();
monthlyPeriods = monthlyPeriods.OrderBy(x => Enum.Parse(typeof(MonthsOfAYear), x.Code, true));
monthlyPeriodBindingSource.DataSource = monthlyPeriods.ToList();
How do I achieve the same in SAP? How do I get the returned results from monthlyperiods to map over the appropriate columns in my matrix?Hi Nor,
you could build a function which is able to generate a list of koordinates from your geometry.
The file generated will be a character-separated list.
This list will be generated by using a simple select statement like this:
<font color="FFFF00">
select obj_id, mysdo_koo2list(geometry) from my_geotable where ... ;
</font>
the function mysdo_koo2list(..) have to be built by you first.
<em>create function mysdo_koo2list ( gc sdo_geometry) return varchar2 as
line varchar2(4000);
n number;
ordinate number;
begin
line:= ''; n := 0;
for ordinate in gc.sdo_ordinates.FIRST .. geom.sdo_ordinates.LAST
loop
line := line||to_char(geom.sdo_ordinates(ordinate), '9999999D999');
if ( mod(n,2) = 1 ) then
line := line||chr(10);
else
line := line||',';
end if;
n := n +1 ;
-- exit when n >330;
end loop;
return (line);
end;
</em> -
Load content from UPK in Knowledge Pathways
Hi,
I'm newbie in Oracle Tools and i'm trying to export content from UPK and load into Knowledge Pathways.... I would like to maintain the structure of modules and sections... is this possible? if it is.. how? where can i find how to do it?
Thanks in advance,
RegardsHello,
This has been posted to the UPK forums:
Import UPK modules and sections into Knowledge Pathways?
Best regards,
Marc -
Loading content from multiple MiniDV tapes to one DVD
I am being offered this "One Touch" feature on iDVD to copy my Camera footage to a DVD. I am wondering what the best process is to follow if I wanted to, say, merge :30 minutes of content from one MiniDV and :20 minutes of content from another. Should I be uploading to iMovie instead? If I have the ultimate objective of a. having copies on DVD instead of MiniDV and b. using the content for video editing in iMovie, what is the best process to follow?
1. Move all MiniDV to DVD and then work from that?
2. Import clips into iMovie and move them to iDVD?
Tips, best practices, advice appreciated.Brian,
It's pretty much agreed here that the best storage medium for your MiniDV tapes, is the tape itself.
I tried OneStep once. Yuk. I bring everything into iMovie HD.
1.: No.
2.: Yes
iDVD 5 Getting Started
Apple's iMovie Learning Site
Apple's iDVD Learning Site
Ken Stone: Authoring in iDVD 5
My favorite, by far:
iMovie HD & iDVD 5: The Missing Manual
iPhoto 5: The Missing Manual -
Deletion of contents from database table
Hi all,
The purpose of the down program is to delete the entire contents from all the tables. The deletion of the table should be in sorted manner. Is there any other way to write the code more efficiently,
TABLES: ZFFMCTL_AP, ZFFMHDR_AP, ZFFM_CHANGE_LOG, ZFFMDTL_AR, ZFFMHDR_AR, ZFFMDTL_JV, ZFFMHDR_JV, ZFFMDTL_SKF,ZFFMHDR_SKF,ZFINVOICE_DETAIL, ZFFMMASTER, ZFFMLOGREAD_CLUS, ZFFMCTL.
DELETE ZFFMCTL_AP.
IF SY-SUBRC = 0.
DELETE ZFFMMHDR_AP.
IF SY-SUBRC = 0.
DELETE ZFFM_CHANGE_LOG.
IF SY-SUBRC = 0.
DELETE ZFFMDTL_AR.
IF SY-SUBRC = 0.
DELETE ZFFMHDR_AR.
IF SY-SUBRC = 0.
DELETE ZFFMDTL_JV.
IF SY-SUBRC = 0.
DELETE ZFFMHDR_JV.
IF SY-SUBRC = 0.
DELETE ZFFMDTL_SKF.
IF SY-SUBRC = 0.
DELETE ZFFMHDR_SKF.
IF SY-SUBRC = 0.
DELETE ZFINVOICE_DETAIL.
IF SY-SUBRC = 0.
DELETE ZFFMMASTER.
IF SY-SUBRC = 0.
DELETE ZFFMLOGREAD_CLUS.
IF SY-SUBRC = 0.
DELETE ZFFMCTL.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
Waiting for response,
Thanks in advance
JohnHello,
you could employ the function modules DD_DROP_TABLE / DD_CREATE_TABLE. Purpose of these is to drop/create tables on DB-level.
Regards Wolfgang -
Hi all,
The structure of my application is :
- a flex client
- a tomcat server
- a mysql database
I use hibernate to retrieve my objects from the database.
I'm trying to have the flex client display images loaded at
runtime from the database. Those images are stored as byte arrays
(byte[]) and were produced in java with the following type of code
: ImageIO.write(myBufferedImage, "PNG", myByteArrayOutputStream);
so those byte arrays pretty much represent the content of a png
image file.
Is there any chance I might be able to produce a BitmapData
out of the ByteArray instance I'll retrieve on the flex side or
should I rely on some kind of a decoder ? Another solution could be
to rewrite my storing mechanism but I'm trying, as much as
possible, to avoid having to modify my current database content ;)
Thanks in advance,
Pierre.Thanks for the quick response.
quote:
Yes. Sure, this should work. Have you tried it? Are you
having any problems?
Actually, I haven't.. yet (I'm currently migrating this
project from echo2 to flex and I haven't reached the point where I
can really test anything). I should be able to create a prototype
quickly though ;) .
quote:
Easiest check would to start off with <Image> component
and set it's url to the servlet that's pumping image bytes and see
if it displays it right. ATTA
Good idea... Thanks for the pointer. My first intention was
to directly use the ByteArray retrieved through FDS to create some
kind of an image, client side but, as you mentioned Image, I read
through the code of both this class and its parent class SWFLoader.
It turns out that this class relies on the use of a Loader
(couldn't find the source ;( ). It's kind of a pity that there
should be no obvious means to directly feed the Image instance with
the content (or the Loader, if that's where the PNG decoding
occurs) through a ByteArray format. Anyway, your suggestion of
creating a Servlet to retrieve the image content is indeed a good
idea. I should be able to store some kind of an image id in my
object that I could use as a parameter of the servlet's url. So
much for trying to leave my current database intact but I can't
think of any other way, considering my very small current knowledge
of the whole flex framework.
Thanks again for the tip. I'll come back later on with the
results of my tests...
Pierre. -
How to Load Values From Database on page load?
I am sure this is easy but... I have a website that lists products similar to the way Amazon lists them. Each product is listed in a separate HTMP table cell complete with Product Name, Desciption, Image and Pricing. Any given product will appear on many different pages within the website. I have a mysql dtabase that has columns that define the primary key, the Product Name, the Product Description and Pricing. I was hoping to use the Dremaweaver Recordset to load the correct pricing and product description for each product on any given web page at the time the page is loaded by the user. Surely I must be able to run an SQL query based on a hiiden vale (e.g. the primary key or name of the product) in order to fill in the correct descriotion and pricing. Am I on the right track or is there a better way to do this? Put another way, how do you load your product data from a database onto a web page without using URL paraneters?
Yes, you are on the right track. Besides URL parameter you can filter a recordset with a session variable, cookie, or entered value.
-
Could not load data from database after adding a query
Dear all,
I have a working crystal reports 2011 report. This report get its data from a BW 7.01 system provided by three bex queries. Everything works as expected but not I have to add a fourth query to the report then I get the following messages:
I try to translate it because I user the german version:
INFORMATION: In this report a stored procedure is used. Ensure that no SQL expression was added and no grouping on server side will be done.
WARNING: Data could not be load from the database.
WANING: Invalid argument provided. Details: The key figure structure isn't a valid field for report generation. Use instead the real keyfigures with teir units.
Has anyone an idea what can be the reason for my issue?
Thanks and regards!hi Gerrit,
a couple of questions...
1) are you adding all 3 queries (and then the 4th) in the same data connection or are each of these additional queries in a subreport?
2) if all 3 queries (and then the 4th) are in the same data connection are you linking them?
3) most importantly, if you create a brand new report off of the 4th query, is it successful?
it's been quite a while since I've worked with bex queries but in general adding multiple queries (or stored procs or commands or combinations thereof) to the same report is probably not a good idea. there ends up being a lot of processing happening in the crystal reports designer itself as a large virtual record set is created by the individual queries.
-jamie -
How to load values from database into the f:selectItems value attribute
Hi,
I am trying to load the drop down menu value i.e f:selectItems from the database with a list of values from a column in the databse table. how can i do this? Should i use binding? or is there any other way.
Note:i am able to load values into f:selectItems from the faces-config.xml file but they are static values. i want the values from the database
Please reply with sample codes of faces jsp, bean file and config.xml fileBut this is working for me,
JSF
<h:selectOneMenu value="#{loadbean.grade}" >
<f:selectItems value="#{loadbean.gradelist}" />
</h:selectOneMenu>
bean
private String grade;
private List<SelectItem> gradelist;
public String getGrade() {
return grade;
public void setGrade(String grade) {
this.grade = grade;
public List<SelectItem> getGradelist() {
return gradelist;
public void setGradelist(List<String> items) {
gradelist=new ArrayList<SelectItem>();
gradelist.add(new SelectItem("daniel"));//this value can be from data base
gradelist.add(new SelectItem("pspindia"));
gradelist.add(new SelectItem("prelude sys"));
faces-config.xml
<managed-property>
<property-name>gradelist</property-name>
<null-value/>
</managed-property>
this working fine for me. So setter method also works to load value for the h:selectItems
Thanks a lot. -
Dynamically load Videos from Database
I want to know how to load video into an flvplayer from a streaming server (Adobe Media Server 3.5) from a database. It has to be set up this way because I have to be able to allow the client to import new videos when ever they want to through a web interface (the client isn't particularly tech savvy and as such requires a very simple system to import information). Also it would be helpful if someone could give me a rundown on how to make the video clickable (kind of like the way hulu.com's adds work, where if you click on the video, it pauses and opens a new window redirected to their advertisers).
Thanks,
MichaelHi,
I can suggest you create an Asset Library and upload your video files into the library, then use the Media Web Part to show the video.
More information:
http://office.microsoft.com/en-us/sharepoint-server-help/add-video-or-audio-to-a-page-HA102232435.aspx
http://smallbusiness.chron.com/stream-video-sharepoint-47210.html
http://blogs.msdn.com/b/sanjaynarang/archive/2010/05/20/media-web-part-in-sharepoint-2010-faq.aspx
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
Problem loading content from iTunes library and Netflix
Everytime I try watching a TV episode, movie, or Netflix show, I get an error sign with loading the content. It's not restricted to Netflix and also includeds recently purchased and saved items through iTunes library. What can I do to resolve this problem?
Try restarting AppleTV (menu and down on remote together for 6 secs) and your router.
-
How to load content from the application directory?
I'm currently working on an AIR desktop application that will be distributed on OSX and Windows. The main applicaiton SWF will load a child swf that has been packaged. When I've attempted to load the child SWF via loader.load() with a URI of "app:\\TheChildContentSWF.swf", the load has failed with an IOError. If I force a copy of the the SWF (in OSX) to the MacOS directory where the executable resides, the child SWF would load. I was a little stumped by this so I decided to check what the nativePath of the application directory was via File.applicationDirectory.nativePath (it turned out to point at the Resources directory). Does the "app://" URI point to different paths when using Loader vs File?
If so, is there a way to package content so that it is installed in a directory that Loader can recognize without hitting security sandbox issues?
Visual of the OSX app directory structure (simplified)
MyApp.app\
Contents\
Frameworks\
MacOS\
executable
Resources\
TheAppSWF.swf
TheChildContentSWF.swf
... // other content
Thanks for any help!
JoshWhen loading application, move the swf to the applicationStorage folder if it doesn't exist already.
Something like ...
private var swfDistribute:File = File.applicationDirectory.resolvePath('ResourcesChildContentSWF.swf');
private var swfLocal:File = File.applicationStorageDirectory.resolvePath('TheChildContentSWF.swf');
private function onCreationComplete():void
if (!swfLocal.exists) {
if (swfDistribute.exists) {
swfDistribute.copyTo(swfLocal);
Then you should be able to call your loader.load() URI with the variable (swfLocal)
Maybe you are looking for
-
Problem with Adobe Bridge in CS6
This just started recently...less than a week. When I have Bridge open and choose a file to look at or to work on, it opens BEHIND the Bridge window. Before, they would open in front. What have I done wrong?
-
Built this PC two months ago and have had issues. This is the message posted on the BIOS section: Quote from: Grahamburger76 on 19-November-11, 03:48:23 I have the z68-gd55 (b3). I built this PC bout two months ago. Awhile after the build, started
-
Created the Xcelsius models 1+ years ago and now for no apparent reason (No software changes) the models are freezing when going into Preview mode. The models get to u201CInitializingu201D and then freeze and do not go any further. No error message
-
I have a large LabView application (Win 2000) with which I need to communicate from another machine (Win XP Pro) using the DataSocket Server (dstp). I do not have LabView on the Win XP machine, so I compiled a small LabView application to run on it.
-
Backup and restore buttons not working
Hi, Any button in my backup and restore centre with a shield next to it (for UAC) is not working. Identical to this thread: https://social.technet.microsoft.com/Forums/windows/en-US/6a138e65-2834-41ac-bd40-c2344e20b824/backup-and-restore-panel-button