Loading .css into my .fla file (non-.AS file)
AS3
My .html file loads, but not my .css file.
I want to add the proper code to load a .css file, which is
for my .html file, directly into my .fla file that has the code for
the text area and scrollbar with the .html file loading
successfully.
How do I load the .css file for the .html file the same way-
the .html file loads correctly, but not the .css file?
****Right now, I get the following errors:
1119: Access of possibly undefined property styleSheet
through a reference with static type fl.controls:TextArea.
myTextField.styleSheet = css;
1120: Access of undefined property pageContent.
myTextField.htmlText = pageContent;
when I try this current AS3 code:
//Load CSS Data
var cssLoader:URLLoader = new URLLoader();
var cssRequest:URLRequest = new URLRequest("example.css");
cssLoader.addEventListener(Event.COMPLETE,
cssLoaderComplete);
cssLoader.load(cssRequest);
function cssLoaderComplete(evt:Event):void{
var css:StyleSheet = new StyleSheet();
css.parseCSS(URLLoader(evt.target).data);
myTextField.styleSheet = css;
myTextField.htmlText = pageContent;
//Load HTML Data
function textLoadComplete(event:Event):void
myTextField.htmlText = textLoader.data;
myTextField.editable = false;
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("htmltext.html");
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE,
textLoadComplete);
Okay - thanks.
The really bizarre thing to me is that I got this simple tutorial:
http://www.macloo.com/examples/flash/CSS_in_Flash/css_with_xml.html
I pasted the exact AS onto my stage:
// set up the textfield attributes
myTextField_txt.html = true;
myTextField_txt.wordWrap = true;
myTextField_txt.multiline = true;
myTextField_txt.condenseWhite = true;
// create new style sheet object
var myCSS = new TextField.StyleSheet();
// specify the location of your existing CSS file
var cssURL = "example_2.css";
// load CSS file
myCSS.load(cssURL);
// define onLoad handler
myCSS.onLoad = function(success) {
if (success) {
/* if the style sheet loaded without error */
myTextField_txt.styleSheet = myCSS;
myTextField_txt.text = "CSS file loaded successfully. You may proceed.";
} else {
myTextField_txt.text = "CSS file failed to load!";
//load the XML file
myContent = new XML();
myContent.ignoreWhite = true;
myContent.load("story_example.xml");
myContent.onLoad = function(success) {
if (success) {
myTextField_txt.text = myContent;
} else {
myTextField_txt.text += "<br /> XML file failed to load!";
Then I swap out the css file name with what I have - style_dtf.css - and it doesn't error (no output regarding CSS), but it shows ALL the code from the XML file in a big string, with all the tags and everything.
Very weird...
I even pasted the CSS from the example file into the beginning of my CSS file and still same effect.
I do have all my SWFs in a seperate folder, but for now I just duplicated my CSS and XML into both folders.
Similar Messages
-
Error while loading data into External table from the flat files
HI ,
We have a data load in our project which feeds the oracle external tables with the data from the Flat Files(.bcp files) in unix.
While loading the data, we are encountering the following error.
Error occured (Error Code : -29913 and Error Message : ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: un) while loading data into table_ext
Please let us know what needs to be done in this case to solve this problem.
Thanks,
KartheekKartheek,
I used Google (mine still works).... please check those links:
http://oraclequirks.blogspot.com/2008/07/ora-29400-data-cartridge-error.html
http://jonathanlewis.wordpress.com/2011/02/15/ora-29913/
HTH,
Thierry -
How to load data into an infocube from a flat file
HI friends,
Iam a learner of bw.
I have master and transaction data to load into an info cube.
I think we can load master data first, and then transaction data. that is master data we have to load through direct or flexible update and then transaction data through flexible update by preparing 2 excel sheets( one for master data and other for transaction data)
Or
can we load both at a time by preparing a single excel sheet which covers the values of characteristic, attributes and key figures.
sai
saiHi Sai,
Please find your replies below -
I have master and transaction data to load into an info cube.
>> You load master data in InfoObejcts and Transaction data in Cubes. So first Identify the Master data InfoObjects & InfoCubes<<
I think we can load master data first, and then transaction data. << Yup good practice is to load master data first & then transaction data<<
that is master data we have to load through direct or flexible update << you need to look into your scenario which one are you using??<<
and then transaction data through flexible update by preparing 2 excel sheets( one for master data and other for transaction data) << Yup I think you will need separate file - Master data one for InfoObejcts data load & transcation data one for InfoCube data laod>>
Or
can we load both at a time by preparing a single excel sheet which covers the values of characteristic, attributes and key figures.
Hope it helps
Regards
Vikash -
How load text into dynamic text boxes from external file?
hi all,
my animation is very simple - a background image and 2 text boxes. one of the textboxes shows a large word, which crossfades to another word, with a total of about 12 words (showing one at a time in different text boxes fading in & out in the same spot).
i need a way to have the text be imported dynamically via xml or json (xml preferred). this article is a good start, but i noticed he's putting all of the text into one box - i need separate strings put into separate boxes from the xml.
Chris Gannon - Loading XML via AJAX into Adobe Edge
he uses
var outputField = $(this.lookupSelector(“xmlOutput”));
for his text box. what would be the best way to revise this code to include all my individual strings to be loaded into my individual text boxes? thinking an array might work, but my js skills are limited.
any other suggestions or tutorials you could point me to would be appreciated.
thanks!!thanks joel_pau !
this is helpful in seeing how the array is created, but after giving it a go I became a little confused.
i wound up trying it again based on the example i linked out to previously, but it's not adding the text from my xml file when previewing.
here's the code i'm using in edge animate on my stage. something must be wrong somewhere. let me know if you have any suggestions on this.
// insert code to be run when the composition is fully loaded here
// here i'm assigning a variable to each one of my textboxes at they're named in my edge animate comp
var outputField1 = $(this.lookupSelector("helps2"));
var outputField2 = $(this.lookupSelector("communicate"));
var outputField3 = $(this.lookupSelector("experience"));
var outputField4 = $(this.lookupSelector("interact"));
var outputField5 = $(this.lookupSelector("understand"));
var outputField6 = $(this.lookupSelector("overcome"));
var outputField7 = $(this.lookupSelector("flourish"));
var outputField8 = $(this.lookupSelector("collab"));
var outputField9 = $(this.lookupSelector("trust"));
var outputField10 = $(this.lookupSelector("grow"));
var outputField11 = $(this.lookupSelector("engage"));
var outputField12 = $(this.lookupSelector("survive"));
var outputField13 = $(this.lookupSelector("thrive"));
var outputField14 = $(this.lookupSelector("evolve"));
var outputField15 = $(this.lookupSelector("connect"));
var outputField16 = $(this.lookupSelector("achieve"));
$.ajax({
type: "GET",
url: "myxmlfile.xml",
dataType: "xml",
success: function(xml) {
//here i'm trying to load the the text in my xml file into my textboxes in edge animate. 'txt1, txt2, txt3' are the tags in my xml file
outputField1 = $(xml).find('txt1').text();
outputField2 = $(xml).find('txt2').text();
outputField3 = $(xml).find('txt3').text();
outputField4 = $(xml).find('txt4').text();
outputField5 = $(xml).find('txt5').text();
outputField6 = $(xml).find('txt6').text();
outputField7 = $(xml).find('txt7').text();
outputField8 = $(xml).find('txt8').text();
outputField9 = $(xml).find('txt9').text();
outputField10 = $(xml).find('txt10').text();
outputField11 = $(xml).find('txt11').text();
outputField12 = $(xml).find('txt12').text();
outputField13 = $(xml).find('txt13').text();
outputField14 = $(xml).find('txt14').text();
outputField15 = $(xml).find('txt15').text();
outputField16 = $(xml).find('txt16').text();
but nothing happens on preview. my textboxes still contain the original text that lives in my comp. -
Dynamically load content into a "template" swf from text file
I have a dream....
Well, I have a concept. I have not actively pursued Flash in
several years, though I've continued to have it in my arsenal. I've
not done much in the action scripting realm for a while though.
I am trying to create a template that will be used for about
100 different product pages.
It would have two tabs, basically, 2 different graphical
button sets. One will have up to 4 links to similar products, each
tab will be on the side of a square, and I need the ability to not
display a tab if there is no actual link.
As for the other tab, Its a menu that consists of a series of
lines. This can be an external menu, I just need a way to have
flash load the right menu. This menu, when you mouse over a line,
the name of the product appears, as well as a product image that
gets loaded with the menu. The product images would be external,
allowing me to simply replace an image if a new higher end version
of the product comes out.
So, I am totally not an actionscripter. Looks like I need to
load variables from an external file. Can I set a property in the
flash code on the html that tells the movie what dataset to grab
from?
Here's basically what I am looking for
property: value
(load variables for:)
item: 44
(menu1)
faster: 54b.html
slower: 34d.html
left: 43d.html
right: 45c.html
(menu2)
menu:graph5.swf
(menu loads images from external source)
link51: 51d.html
link52: 52c.html
link53: 53c.html
link54: 54d.html
link55: 55b.html
link56: 56d.html
A possible third menu would be text driven, and would use
html to link to various items.
This is a static site, so urls will be fixed.
Is it best to build a php page that serves up data for a
single item, or do one big text file with all 100 or so items? Is
that even possible?
My Flash since MX is very rusty. I am using Flash Pro8. I
would love to create a single file so modifications are to the text
files, unless a new item is released, then it's updating a single
flash menu and updating the text file.
Been spending way too much time in InDesign lately! I used to
be pretty good at Flash!well sorry there fanmap - but I don't think you're going to
be able to get this to work. here's why: the link points to a php
file - which gathers dynamic info from a DB - the return from the
php is generating a string that is based on the DOM and
'constructs' a javascript method that in turn writes to the html
document. although we can embed html into a textField in Flash
there are a limited number of supported html tags - and JS methods
will not operate internally. in addition, (i'm not certain someone
correct this if i'm off) there's no way to 'change' the output of
the php call, therefore you will not be able to read the return
because it is designed to use the DOM and write solely to the
current document. Even if you were to access the JS method from the
swf file (which one can) it will still only write the content of
the php return to the html document - and the output is not
compatible with the textField class. -
I have a FLA that worked fine in CS5, I have copies of the file going back 6 months. Every file I open gives me this error: Could not load scene into memory. Your document may be damaged.
How could every fla I've backed up give the same error? They all worked fine in CS5. Does anyone know of a fix? Or do I have to go back to CS5?
Thanks!I reinstalled Flash Pro CS5 and it opens up all my FLA's (of the same project) perfectly. But Flash Pro CS5.5 gives me this error: Could not load scene into memory. Your document may be damaged.
So is CS5.5 unusable?
cheeres. -
Hi all, I've been working on a project in Flash Professional CC in windows 7 that was started in a previous version of Flash Pro and occasionally after I've saved the project and tried to open it the next day I get the "Could not load scene into memory. Your document may be damaged." message and only a blank Scene 2 in the project. I've previously been reverting back to the old saved project file and starting over. Its wasted a lot of time so far.
I can still open the same exact project in CS6 on another older computer but not in CC. I can also save the fla in CS6, transfer it to the other computer and then it will work again (for now). This isn't going to be an option in the future as CS6 was a trial version that is on its last use today.
I've tried to create a new flash pro cc project and just copied and pasted the library and scene layout from the old project into the new project. This worked for a couple of saves/ opens but the error has happened again. I'm scared that now that I've reached the point in the project were my work in the animation/ visual side will start to be more intensive that I will continuosly have to worry about losing all of my work. I'm using a document class so the AS3 code hasn't been an issue thankfully. Any help would be appreciated.Thanks for the reply Amy, that is essentially what I am doing already only I'm not using version control software I'm just managing it on my own since its a solo project, though I have been considerring using git anyway. It still doesn't explain why I can open and save the supposedly damaged project (according to CC) in CS6 and only then will it work again in CC. Also I'm not gettting a chance to save as a new version over and over for long. Its only a couple of days max, usually just over one day, and I've primarily been working on the code in Flash Builder with little functional change in the actual fla project. Its primarily changing movieclips instance names, which in this project is tedious and time consuming. Having to revert back to the older working version is exaclty what I'm trying to avoid. I shouldn't have to commit the project to a repository every little change that I make to the fla file.
-
Damaged Flash CC files ("Could not load scene into memory.")
I just installed Creative Cloud the other day, and had the following problem immediately.
I create a brand new .FLA and import a few assets from another person's Illustrator CC file, then write some ActionScript for basic interactivity. I can work for hours with that file. But when I save, quit and reopen the file (either 2 seconds later or the next day), I get a warning that says "Could not load scene into memory. Your file may be damaged." The library is empty, no instances of symbols on the stage, nothing. I can't open the file with Flash CS6 or anything: it's shot. I repeated the process several times with brand new Flash files, but always get the same results. I even deleted everything and reinstalled and still got the same results.
I switched to using Flash CS6, but when I imported artwork from Illustrator CC, I was getting corrupted artwork and periodically I'd get an error that said something to the effect of "You can't import artwork from a newer version of Illustrator into Flash CS 5.5. (WTF? I'm in Flash CS6.)
Any ideas? I'm on a Mac, OS X 10.8.4. Thanks very much.Hi Gregir ,
Is it possible for you to share the file or the illustrator assets with us? We can take a look and get back on it.
Can you check the size of the PublishSettings.xml file which would be present after unzipping the zip created from the fla renaming it as .zip.
Thanks and Regards,
Sudeshna Sarkar
Adobe Flash Professional Team -
How do I find bad music files? I have thousands of files, but some are bad. When I try to load them into iTunes, it just spins. I need a routine to identify and remove the bad files. Any ideas?
Hi ajoddo20,
Welcome to the Apple Support Communities!
You can use Home Sharing to import music and other media from one computer to another. Please use the instructions and information located in the attached article for information on how to complete the process.
iTunes 11 for Mac: Use Home Sharing to import items from another iTunes library
Cheers,
Joe -
My HP Officejet 8500a All-In-One forwards faxes (as a tiff file) to my iphone. Can only view/receive 1st page, embedded into email as a non-attachment. Iphone receives email(s) pdf attachments well. What can I do?
Try this app
http://itunes.apple.com/us/app/fax-reader/id406902152?mt=8 -
I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
The path traces out correctly as:
assets_embed/styles/project2.swf
For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
<fx:Style source="assets_embed/styles/project1.css"/>
If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
So, why do I need the fx:Style line if the css is being loaded via StyleManager?
Why is there "cross talk" between style definitions?
Is there a better way to select styles at compile time?I read this quickly so I might have missed a detail. I think your describing an issue with recent Flex releases that is described in the fine print somewhere. If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
(Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking). -
Error Loading Data into a flat file
I am recieving the following error when loading data into a flat file from a flat file. SQL 2005 is my back end DB. If I cut the file iin half approx 500K rows my ODI interface works fine. Not sure what to look at.. I rebuit the interface which before was just dying giving no error and now I am getting this.
Thanks
java.lang.Exception
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)Figured it out, found similar post that stated changing the HEAP size
Increase the page size in odiparams.bat in the bin folder and restart Designer.
For eg:
set ODI_INIT_HEAP=128m
set ODI_MAX_HEAP=1024m -
Error in loading data into essbase while using Rule file through ODI
Hi Experts,
Refering my previous post Error while using Rule file in loading data into Essbase through ODI
I am facing problem while loading data into Essbase. I am able to load data into Essbase successfully. But when i used Rule file to add values to existing values I am getting error.
test is my Rule file.
com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Cannot put olap file object. Essbase Error(1053025): Object [test] already exists and is not locked by user [admin@Native Directory]
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2458)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:48)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.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)
from com.hyperion.odi.common import ODIConstants
from com.hyperion.odi.connection import HypAppConnectionFactory
from java.lang import Class
from java.lang import Boolean
from java.sql import *
from java.util import HashMap
# Get the select statement on the staging area:
sql= """select C1_HSP_RATES "HSP_Rates",C2_ACCOUNT "Account",C3_PERIOD "Period",C4_YEAR "Year",C5_SCENARIO "Scenario",C6_VERSION "Version",C7_CURRENCY "Currency",C8_ENTITY "Entity",C9_VERTICAL "Vertical",C10_HORIZONTAL "Horizontal",C11_SALES_HIERARICHY "Sales Hierarchy",C12_DATA "Data" from PLANAPP."C$_0HexaApp_PLData" where (1=1) """
srcCx = odiRef.getJDBCConnection("SRC")
stmt = srcCx.createStatement()
srcFetchSize=30
#stmt.setFetchSize(srcFetchSize)
stmt.setFetchSize(1)
print "executing query"
rs = stmt.executeQuery(sql)
print "done executing query"
#load the data
print "loading data"
stats = pWriter.loadData(rs)
print "done loading data"
#close the database result set, connection
rs.close()
stmt.close()
Please help me on this...
Thanks & Regards,
ChinnuHi Priya,
Thanks for giving reply. I already checked that no lock are available for rule file. I don't know what's the problem. It is working fine without the Rule file, but throwing error only when using rule file.
Please help on this.
Thanks,
Chinnu -
Error while using Rule file in loading data into Essbase through ODI
Hi Experts,
I am facing problem while loading data into Essbase. I am able to load data into Essbase successfully. But when i used Rule fule to add values to existing values am getting error.
test is my Rule file.
com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Cannot put olap file object. Essbase Error(1053025): Object [test] already exists and is not locked by user [admin@Native Directory]
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2458)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:48)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.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)
from com.hyperion.odi.common import ODIConstants
from com.hyperion.odi.connection import HypAppConnectionFactory
from java.lang import Class
from java.lang import Boolean
from java.sql import *
from java.util import HashMap
# Get the select statement on the staging area:
sql= """select C1_HSP_RATES "HSP_Rates",C2_ACCOUNT "Account",C3_PERIOD "Period",C4_YEAR "Year",C5_SCENARIO "Scenario",C6_VERSION "Version",C7_CURRENCY "Currency",C8_ENTITY "Entity",C9_VERTICAL "Vertical",C10_HORIZONTAL "Horizontal",C11_SALES_HIERARICHY "Sales Hierarchy",C12_DATA "Data" from PLANAPP."C$_0HexaApp_PLData" where (1=1) """
srcCx = odiRef.getJDBCConnection("SRC")
stmt = srcCx.createStatement()
srcFetchSize=30
#stmt.setFetchSize(srcFetchSize)
stmt.setFetchSize(1)
print "executing query"
rs = stmt.executeQuery(sql)
print "done executing query"
#load the data
print "loading data"
stats = pWriter.loadData(rs)
print "done loading data"
#close the database result set, connection
rs.close()
stmt.close()
Please help me on this...
Thanks & Regards,
ChinnuHi Priya,
Thanks for giving reply. I already checked that no lock are available for rule file. I don't know what's the problem. It is working fine without the Rule file, but throwing error only when using rule file.
Please help on this.
Thanks,
Chinnu -
1.is it possible to read a .xls file and load it into an oracle table
1.is it possible to read a .xls file and load it into an oracle table, using oracle database or oracle forms i.e. either utl_file, or text_io, or any other oracle tool.
As far as I know we need a csv file or a txt ( tab delimited) file ?
2.Are there any windows tools for the sameHi,
If you want to use the DDE package to read the XLS file then yes, you will neeed to know the number of rows and columns in the input file.
i.e. How will you know :
1) How many columns are there in the input file.
If I have a XLS file with the following data :
R1C1 R1C2 R1C3 R1C4 R1C5 R1C6 R1C7
xxx xx x
Where R represents row and C represents column, then how will you know the each row has 7 columns. If you know the answer upfront, then it's not a issue.
Using the DDE apprach, you will have to specify the RowNum and the ColumnNo of each idividual cells to read/write data from xls sheet.
Look at the syntax in my ealier post.
using the other approch (i.e. comma delimited text file - CSV file) , you need not know the number of columns as you can loop thru the input record till the last column is read.
All you have to do is to look for the 'n' occurances of the field delimiter say ',', do a substr from the current position to the point where the ',' was found.
This process is to be repeated in a loop till all columns are read.
The TEXT_IO package can trap for EOF (End Of File).
Hope I made myself clear.
-- Shailender Mehta --
Maybe you are looking for
-
Why can't I select "Extract Assets" in my PSD?
Hello, For whatever reason, I cannot select "Extract Assets" in the right-click menu of layers. I've done this before several times with success, so I'm not sure what's going on here. I've rasterized the layer types & styles. The extract assets optio
-
XSLT dynamic XML data serverSide. NO External XML file
I am developing a web application currently using Tomcat 3.2.4, latest Xereces and Xalan. I have a JSP page that 1st includes a HTML menu, I then wish to include a JSP page that will produce XML data. I would like to apply an XSLT to this XML data se
-
MASS, MM42(ALE) - error messages
I am updating MARA-LABOR for a number of articles in MASS. There are messages posted in the application log than pertain to checking tables and fields other than the one I have selected for update and related to sites that I do not have access to up
-
Grant Send on Behalf Permissions
Hi, Some one in organization modified Grant Send on behalf permission. We have an application that monitors the changes and that application showed that one the userid's Grant Send on behalf permission got modified and some people got added to that l
-
N8 Huge Camera Problem Found, Please Advice!!
Hello all Nokia guys, I am a new member in this forum as well as to Nokia. I bought Nokia N8 on Sunday 5 th Dec 2010 ( Mumbai, India ). That day i did not test camerra in the night time. I clicked many photos during Day time and it looked just Gr8. N