Writing code or text in an external file
i want to write some text or code in an external file such as
(text file or something else)
when an event in flash occurs
like (on mouse click)
thanks for your answer
Its important to know whether its plain text or code that
you're expecting to execute. You can use something like the
loadVars method to read a plain text or XML file. You could get
variables from it to use in your code. But the movie will have been
compiled already, so I don't think large blocks of code are
appropriate here. That having been said, you can create external AS
files that are compiled into your SWF.
Hope that helps!
Similar Messages
-
Help with delivering dynamic text through an external file, through XML?
I'm struggling to find the best way to deliver dynamic text
from an external file, through XML, to a Flash file.
I use small Flash pieces to deliver multiple sets of content
through a single .swf file. An example is here:
http://www.esi-intl.com/public/government/federal.asp
In the .swf file at the bottom, I'm using a three-scene .fla
file. I'm putting the actionScript in the Actions layer atop each
frame. Example:
stop ();
loadVarsText = new LoadVars();
loadVarsText.load("fedNews.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.html=true;
scroller.htmlText = this.var1;
} else {
trace("not loaded");
In that .txt file, I'm putting the information like this:
var1=<font face="tahoma,verdana,sans-serif" size="11px"
color="#000000"><b><a href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
Grants ESI Course CON353
Equivalency</a></b><br>Advanced Business Solution
in Contracting (CON 353) is an equivalency for DAU's CON 3535
course, Advanced Business Solutions for Mission Support. <a
href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
color="#996633">Continue</font></U></a></font>
So much of this is pick-ups from what I've researched in
Google. I'm looking for a way I can feel more confident in my code,
and also have that code follow CSS.
Lastly, I recognize the problems in XML with using single
quotes / double quotes, and the & symbol. This is one of my
largest time sucks, and I'd like to find a better way to do this.
Thank youHi,
Did you ever find a resolution to this? I'm having a similar
issue that I can't seem to get multiline dynamic text working in
CS3.
The font is embedded but it just displays the first line, and
then a blank. I'm sure this worked fine in Flash MX.
Cheers, Ant -
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. -
Is Dynamic Loading of Text from an external file possible in Captivate?
Hello all,
I am wondering if Dynamic loading of text is possible in captivate or not.
As we can load an external file in flash.
& which is the universal font to be used for the text entry box which will visible on any media?
Thanks & Regards,
ChiragHello,
I'm not a specialist about JavaScript. Have a look at Jim Leichliter's blog:
http://captivatedev.com/
Lilybiri -
Loading Knob Digital Display Text Labels from External File
I have a knob interface. I display it on the instrument's front panel with the digital display.
The knob controls the settings on an external GPIB switch. The value of the 6 devices selected changes. I want to see the numbers 1 thru 6 on the knob, but the knob's digital display needs to show something like "12.5-13.5 MHz BPF".
I want to load the text visible in the knob's digital display from an external file located on the machine. I will not have the possibility of changing the VI for each location.
Can you do that?
If not, would an a case or event structure containing a text indicator, with text values read in from a file, be the best apporach?
73/gusIf you don't have 8.0 and XControls, you can do something like the attached. I edited the knob control and then replaced the digital display with a text ring.Message Edited by Dennis Knutson on 04-21-2006 12:32 PM
Attachments:
Knob with text ring.vi 30 KB -
How can I place text from an external file as an updatable link?
Currently we create presentation documents InDesign. Each presentation page is a linked Illustrator file (the file contains drawings and description texts). We write the text in Illustrator instead of over it in InDesign because multiple designers/writers will work on each page. We have text that sometimes appear on multiple pages, this text has previously been copied and pasted into each Illustrator file that it needs to appear in, this is inefficient and prone to error.
Is there a way to link to a text file in Illustrator that remains updatable? I poked around here and found information relating to Variable Data – things similar to Data Merge in InDesign. This isn't the solution I'm looking for however. It seems like a plugin or script is the solution.
much appreciated
RayI have to imagine that you have good reasons for structuring the workflow as you describe. However, this:
We write the text in Illustrator instead of over it in InDesign because multiple designers/writers will work on each page.
doesn't make sense to me. Between the two, InDesign, (particularly CS6), is far more capable of efficiently supporting a linked-single-source-of-text workflow than Illustrator...without any additional plugins or scripts. -
External file writing woes!
so i have my code that reads from an external file brilliantly, but then the problems tart when i try to write to the file.
option 2 on the menu works fully, and doesadd data to the file, but itis not adding it to the end of the records like it should. instead it is adding it after the first record, then shifting the surnames ofthe records below it.
import java.util.*;
import java.io.PrintStream;
import java.io.File;
import java.io.FileNotFoundException;
public class contacts
private static final int MAX_RECORDS = 20;
private static String lastName[] = new String[MAX_RECORDS];
private static String firstName[] = new String[MAX_RECORDS];
private static String telNumber[] = new String[MAX_RECORDS];
private static String emailAddress[] = new String[MAX_RECORDS];
private static Scanner data_input = new Scanner(System.in);
public static int read_in_file(String file_name)
Scanner read_in;
Scanner line;
int record_count = 0;
String record;
try
read_in = new Scanner(new File(file_name));
// read in one line at a time
read_in.useDelimiter(System.getProperty("line.separator"));
while (read_in.hasNext())
// Test to see if there are too many records in the file
if (record_count == MAX_RECORDS)
System.out.printf("Only %d records allowed in file", MAX_RECORDS);
System.exit(0);
// read in record
record = new String(read_in.next());
// Split the record up into its fields and store in
// appropriate arrays
line = new Scanner(record);
line.useDelimiter("\\s*,,\\s*");
lastName[record_count] = line.next();
firstName[record_count] = line.next();
telNumber[record_count] = line.next();
emailAddress[record_count] = line.next();
// Increment record count
record_count++;
catch (FileNotFoundException e)
e.printStackTrace();
return record_count;
public static void write_out_file(int no_of_records, String filename)
PrintStream write_out;
int counter;
try
// Create new file
write_out = new PrintStream(new File(filename));
// Output all reacords
for(counter = 0; counter < no_of_records; counter++)
// Output a record
write_out.print(lastName[counter]);
write_out.print(",,");
write_out.print(firstName[counter]);
write_out.print(",,");
write_out.print(telNumber[counter]);
write_out.print(",,");
write_out.println(emailAddress[counter]);
// Close file
write_out.close();
catch (FileNotFoundException e)
e.printStackTrace();
// Your 'Methods' go here
public static void display_all()
for (int d = 0; d < 20; d++)
if (lastName[d] != null)
System.out.printf("%n%s%n", lastName[d] );
System.out.printf("%s%n", firstName[d] );
System.out.printf("%s%n", telNumber[d] );
System.out.printf("%s%n", emailAddress[d] );
public static void main(String[] args)
// Declare Variables
int user_choice;
boolean quit = false;
Scanner dataInput = new Scanner(System.in);
int number_of_records, records, n, sort;
String filename, first_name, last_name, enter, tel_num, email_addr;
// Get filename and read in file
System.out.print("Enter the masterfile file name: ");
filename = data_input.next();
number_of_records = read_in_file(filename);
// Your 'main' code goes here
//display menu
do
System.out.printf("%n%nMenu%n%n");
System.out.println("1. Search records (use * to list all)");
System.out.println("2. Insert record");
System.out.println("3. Delete record");
System.out.println("4. Quit with saving");
System.out.println("5. Quit without saving");
//get users choice
user_choice = data_input.nextInt();
//process choice
switch(user_choice)
case 1:
System.out.print("Please Enter Last Name: ");
last_name = dataInput.next();
System.out.print("Do You with to Enter First Name? (Y/N): ");
enter = dataInput.next();
if (enter.equalsIgnoreCase("N"))
for (int i = 0; i < number_of_records; i++)
if (last_name.compareTo(lastName) == 0)
//Arrays.sort(lastName[i]);
System.out.printf("%n%s%n", lastName[i] );
System.out.printf("%s%n", firstName[i] );
System.out.printf("%s%n", telNumber[i] );
System.out.printf("%s%n", emailAddress[i] );
if (enter.equalsIgnoreCase("Y"))
System.out.print("Please Enter First Name: ");
first_name = dataInput.next();
for (int i = 0; i < number_of_records; i++)
if ((last_name.compareTo(lastName[i]) == 0) && (first_name.compareTo(firstName[i]) == 0))
System.out.printf("%n%s%n", lastName[i] );
System.out.printf("%s%n", firstName[i] );
System.out.printf("%s%n", telNumber[i] );
System.out.printf("%s%n", emailAddress[i] );
if (last_name.compareTo("*") == 0)
for (int i = 0; i < number_of_records; i++)
//There cannot be more then a 20 data records in the file
if (lastName[i] != last_name)
System.out.printf("%n%s%n", lastName[i] );
System.out.printf("%s%n", firstName[i] );
System.out.printf("%s%n", telNumber[i] );
System.out.printf("%s%n", emailAddress[i] );
break;
case 2:
System.out.print("Please enter the last name of the contact: ");
last_name = dataInput.next();
System.out.print("Please enter the first name of the contact: ");
first_name = dataInput.next();
System.out.print("Please enter the telephone number of the contact: ");
tel_num = dataInput.next();
System.out.print("Please enter the email address of the contact: ");
email_addr = dataInput.next();
int z = 0;
for (int i=0; i < number_of_records; i++)
if ((last_name.compareTo(lastName[i])) < i && (last_name.compareTo(lastName[i]) > i))
z = i;
for (int i = number_of_records; i > z; i--)
lastName[i] = lastName[i-1];
lastName[z+1] = last_name;
firstName[z+1] = first_name;
telNumber[z+1] = tel_num;
emailAddress[z+1] = email_addr;
break;
case 3:
System.out.print("Please enter the last name of the contact: ");
last_name = dataInput.next();
int z = 0;
for (int i=0; i < number_of_records; i++)
if ((last_name.compareTo(lastName[i])) < i && (last_name.compareTo(lastName[i]) > i))
z = i;
for (int i = z; i < number_of_records; i++)
lastName[i] = lastName[i+1];
//lastName[z-1] = lastName[i];
//firstName[z-1] = firstName[i];
//telNumber[z-1] = telNumber[i];
//emailAddress[z-1] = emailAddress[i];
// Get new filename and write out the file
System.out.print("Please Enter New Masterfile File Name: ");
filename = dataInput.next();
write_out_file(number_of_records, filename);
System.out.print("File Save In Progress. Please Wait...");
for (int r = 0; r < 35000000; ++ r) System.currentTimeMillis ();
System.out.print("..");
for (int r = 1000000; r < 10000000; ++ r) System.currentTimeMillis ();
System.out.print("............");
System.out.printf("%nGoodbye!");
break;
case 4:
// Get new filename and write out the file
System.out.print("Please Enter New Masterfile File Name: ");
filename = dataInput.next();
write_out_file(number_of_records, filename);
System.out.print("File Save In Progress. Please Wait...");
for (int r = 0; r < 35000000; ++ r) System.currentTimeMillis ();
System.out.print("..");
for (int r = 1000000; r < 10000000; ++ r) System.currentTimeMillis ();
System.out.print("............");
System.out.printf("%nGoodbye!");
break;
case 5:
quit = true;
break;
default:
System.out.println("Invalid menu choice, please try again");
} while(!quit);
any insight as to what the problem is, and how to fix it?
thanks in advancefor now im just looking for the solution to the
problem i stated. after i have the code working, i
will work on tidying it up.No. You are still not understanding something very fundamental here.
The code is bad design. It will be diificult to make work BECAUSE it is
a bad design. A better OO based approach would result in code that is
cleaner and easier to make work.
Nobody in their right mind is going to "help you" (aka rewrite entirely)
somebody else's terrible design. What is the point of that? None. The
fastest way for you to get code that is working is to start with better
thought out code. You can read the thread you copied this code from to
get some ideas of why this code is bad.
Or you can start with some tutorials.
Nobody cares if this is for school, work, fun, whatever. You need to do
your thinking on your own. If you are incapable of putting the effort in
then you need to reconsider your options. Perhaps paying somebody
to write code for you is a better solution. -
I created fifteen 300 X 250 sized movieclips. I've adjusted each movieclip into different sizes. Now I need to load 15 external files in to these movieclips. (all external files are 300 X 250).
1. When I load the external files, all the loaded files does not adjust to the resized movieclips (all external files are maintaining it original size). I need the loaded files to be resized as per the movieclips on stage.
2. Is there a short way of writing the code to load these 15 external files?
//movieclips on stage: gHolderF0, gHolderF1, gHolderF2
//external files : sample0.swf, sample1.swf, sample2.swf
I'm using this to load each external file:
var loaderPrototype:Loader = new Loader();
var selectedPrototype:URLRequest=new URLRequest("sample/sample0.swf");
loaderPrototype.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading);
loaderPrototype.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
loaderPrototype.load(selectedPrototype);
function finishLoading(loadEvent:Event) {
gHolderF0.addChild(loadEvent.currentTarget.content);
addChild(gHolderF0);
function errorHandler(errorEvent:Event):void {
trace("file missing");
function errorHandler(errorEvent:Event):void {
trace("file missing");adding a child (loader or otherwise) is going to affect the scale of the child and the position of the child. but you can't assign the exact size unless you do some intelligent scaling of the parent. for example:
after loading is complete:
gHolderF0.scaleX=300*loaderPrototype.width; // resize to 300x250
gHolderF0.scaleY=250*loaderPrototype.height;
but that really makes no sense. you may as well resize the loader directly:
loaderPrototype.width=300
loaderPrototype.height=250; -
How to write or send String to an external file in java
Hi guys...!
I am writing a program in which I have to send some texts to an external file. If the file is not empty, I want the program to append to that file instead of overwriting the file.
Any suggestions...guys??
Thanks...
--- Spirit_AwayHi therer...!
Thanks for your suggestion... But I forgot to mention
that I'm using XML in my java program and the method
"endElement()" for XML throws a "SAXException" and it
would not let me add another exception next to it
...like the one thrown by the "FileWriter", which is
IOException...
Thanks....
--- Spirit_AwayIn that case you might be too stupid to be programming Java. -
Reading the Blob and writing it to an external file in an xml tree format
Hi,
We have a table by name clarity_response_log and content of the column(Response_file) is BLOB and we have xml file or xml content in that column. Most probably the column or table may be having more than 5 records and hence we need to read the corresponding blob content and write to an external file.
CREATE TABLE CLARITY_RESPONSE_LOG
REQUEST_CODE NUMBER,
RESPONSE_FILE BLOB,
DATE_CRATED DATE NOT NULL,
CREATED_BY NUMBER NOT NULL,
UPDATED_BY NUMBER DEFAULT 1,
DATE_UPDATED VARCHAR2(20 BYTE) DEFAULT SYSDATE
)The xml content in the insert statement is very small because of some reason and cannot be made public and indeed we have a very big xml file stored in the BLOB column or Response_File column
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(5, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(6, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(7, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(8, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(9, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');THe corresponding proc for reading the data and writing the data to an external file goes something like this
SET serveroutput ON
DECLARE
vstart NUMBER := 1;
bytelen NUMBER := 32000;
len NUMBER;
my_vr RAW (32000);
x NUMBER;
l_output UTL_FILE.FILE_TYPE;
BEGIN
-- define output directory
l_output :=
UTL_FILE.FOPEN ('CWFSTORE_RESPONCE_XML', 'extract500.txt', 'wb', 32760);
vstart := 1;
bytelen := 32000;
---get the Blob locator
FOR rec IN (SELECT response_file vblob
FROM clarity_response_log
WHERE TRUNC (date_crated) = TRUNC (SYSDATE - 1))
LOOP
--get length of the blob
len := DBMS_LOB.getlength (rec.vblob);
DBMS_OUTPUT.PUT_LINE (len);
x := len;
---- If small enough for a single write
IF len < 32760
THEN
UTL_FILE.put_raw (l_output, rec.vblob);
UTL_FILE.FFLUSH (l_output);
ELSE
-------- write in pieces
vstart := 1;
WHILE vstart < len AND bytelen > 0
LOOP
DBMS_LOB.READ (rec.vblob, bytelen, vstart, my_vr);
UTL_FILE.put_raw (l_output, my_vr);
UTL_FILE.FFLUSH (l_output);
---------------- set the start position for the next cut
vstart := vstart + bytelen;
---------- set the end position if less than 32000 bytes
x := x - bytelen;
IF x < 32000
THEN
bytelen := x;
END IF;
UTL_FILE.NEW_LINE (l_output);
END LOOP;
----------------- --- UTL_FILE.NEW_LINE(l_output);
END IF;
END LOOP;
UTL_FILE.FCLOSE (l_output);
END;The above code works well and all the records or xml contents are being written simultaneously adjacent to each other but we each records must be written to a new line or there must be a line gap or a blank line between any two records
the code which I get is as follow all all xml data comes on a single line
<?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7369</empno><ename>James</ename><job>Manager</job><salary>1000</salary></emp><?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7370</empno><ename>charles</ename><job>President</job><salary>500</salary></emp>But the code written to an external file has to be something like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<emp>
<empno>7369</empno>
<ename>James</ename>
<job>Manager</job>
<salary>1000</salary>
</emp>
<?xml version="1.0" encoding="ISO-8859-1"?>
<emp>
<empno>7370</empno>
<ename>charles</ename>
<job>President</job>
<salary>500</salary>
</emp>Please adviceWhat was wrong with the previous answers given on your other thread:
Export Blob data to text file(-29285-ORA-29285: file write error)
If there's a continuing issue, stay with the same thread, don't just ask the same question again and again, it's really Pi**es people off and causes confusion as not everyone will be familiar with what answers you've already had. You're just wasting people's time by doing that.
As already mentioned before, convert your BLOB to a CLOB and then to XMLTYPE where it can be treated as XML and written out to file in a variety of ways including the way I showed you on the other thread.
You really seem to be struggling to get the worst possible way to work. -
Problem writing external file to externally mounted disk in Windows
Folks,
I've got a puzzling problem with a simple OWB mapping where I'm dumping the contents of a table to an external file.
Versions are OWB v 11.2.0.2 64-bits on Oracle RDBMS 11.2.0.2 Windows 2007 64-bits Enterprise Server.
When the external files module is hooked up to a location that points to a local disk and directory on the OWB-server, everything works fine - files are created and written.
When the external files module is hooked up to a location that points to a mounted disk on another Windows 2007 64-bits Enterprise Server, I get +"Invalid Path for target file, check if connector is deployed correctly".+
The "File System Location Path" in OWB is set to "N:" (no slashes either way). "Test Connection" reports OK.
I've given both the Oracle os-user and "Everyone" (for good measure) all rights on the mounted disk, and I can see that the generated package code is using the correct Directory, and the Directory Path is the correct one on the server. The mounted disk (N:) should appear as a local disk to Oracle as far as I can see. I'm able to create and delete files on the disk using command line on the OWB/DB-server.
I'm scratching my head on this one....then mapped that share as a network drive (N:) on server A (the OWB/DB-server)I think that problem was with different accounts used for run Oracle database (usually database instance run under SYSTEM account) and which you used to map share (it was interactive session). Even when you made this map persistent (enable "Reconnect at logon" option during mapping) you don't grant access to this drive to other accounts (including SYSTEM ) - this drive will not be visible to other users.
I think it is possible to create "persistent" network drive mapping for Oracle database context with specification non-SYSTEM account (domain or server local) for running Oracle database instance (and Oracle Listener service).
Also it seems there is a workaround to access mapped network drive under SYSTEM account:
http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service
Regards,
Oleg -
Writing agents o/p to external file and if i run the agent again it should
Hi All,
i want to run a agent and that result should be displayed in external file system.and i achieved this by using writing VB script and in agents i used actions in that we have invoke server script.And i got the perfect output but what 's my scenario is when i run the agnent again it should create another file with below requirements.
The file name must contain a suffix containing the date in yyyymmdd format. In cases where the file stored more than once per day, a sequence number must also be provided within the filename.
(i.e. v1_yyyymmdd, v2_yyyymmdd, v3_yyyymmdd, v4_yyyymmdd, v5_yyyymmdd…)
And my VB script is like below
'#####=========================================================================
'## Title: Export Report
'## Rev: 1.0
'## Author: Paul McGarrick
'## Company: Total Business Intelligence / http://total-bi.com
'## Purpose:
'## 1. This script takes a file from OBIEE and saves to the file system
'## 2. Creates a reporting subdirectory if not already present
'## 3. Creates a further subdirectory with name based on current date
'## Inputs (specified in Actions tab of OBIEE Delivers Agent):
'## 1. Parameter(0) - This actual file to be exported
'## 2. Parameter(1) - The filename specified within OBIEE
'## 3. Parameter(2) - Report sub directory name specified within OBIEE
'#####=========================================================================
Dim sBasePath
sBasePath = "E:\reports\reports"
Dim sMasterPath
sMasterPath = sBasePath & "\" & Parameter(2)
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
'check whether master directory exists, if not create
Dim objMasterDir
If Not objFSO.FolderExists(sMasterPath) Then
Set objMasterDir = objFSO.CreateFolder(sMasterPath)
End If
Set objMasterDir = Nothing
'build string to get date in yyyy-mm-dd format
Dim sDate, sDateFull
sDate = Now
sDateFull = DatePart("yyyy", sDate) & "-"
If Len(DatePart("m", sDate))=1 Then sDateFull = sDateFull & "0" End If
sDateFull = sDateFull & DatePart("m", sDate) & "-"
If Len(DatePart("d", sDate))=1 Then sDateFull = sDateFull & "0" End If
sDateFull = sDateFull & DatePart("d", sDate)
Dim sDir
sDir = sMasterPath & "\" & sDateFull
Dim objDir
If Not objFSO.FolderExists(sDir) Then
Set objDir = objFSO.CreateFolder(sDir)
End If
Set objDir = Nothing
Dim sFileName
sFileName = sDir & "\" & Parameter(1)
Dim objFile
objFSO.CopyFile Parameter(0), sFileName, True
Set objFile = Nothing
Set objFSO = Nothing
could you please any body help me out from this....I assume you are using Windows. Try to write a batch file so that that would look for the ibot name when ever its finds rename the file name as required.
This would be easiest way..
http://lmgtfy.com/?q=rename+a+file+to+current+date+using+batch+file
Edited by: Srini VEERAVALLI on Apr 8, 2013 7:23 AM
Can you updates all your posts?
Edited by: Srini VEERAVALLI on May 13, 2013 6:44 AM -
Opening an external file containing javascript code
I'm trying to develop a PDF in two languages. When pushing a button, all questions and list-of-values for possible answers should be translated.
I created and initialized several variables with the two language phrases with javascript. Everything is inside my code.
Is there anyway that when a button is pressed an external file is read, bringing that javascript code for questions ans list-of-values? My concern is that currently I have a duplicated code, but if I want to implement three, four languages it will grow without control.
This is an example I wrote in my code:
var TxtAuxL1ESP = new Array();
var TxtAuxL1ING = new Array();
TxtAuxL1ESP[0]=", como ";
TxtAuxL1ING[0]=", such as ";
TxtAuxL1ESP[1]=": el último año ha obtenido ";
TxtAuxL1ING[1]=": last year it obtained ";
TxtAuxL1ESP[2]="%, en los últimos tres años ";
TxtAuxL1ING[2]="%, in the last three years ";
TxtAuxL1ESP[3]="% y en los últimos cinco años ";
TxtAuxL1ING[3]="% and in the last five years ";
if (P1.BtnIdioma.border.edge.stroke == "raised") {
var TxtAuxL1=TxtAuxL1ESP;
var TxtAuxL2=TxtAuxL2ESP;
var TxtAuxL3=TxtAuxL3ESP;
else {
var TxtAuxL1=TxtAuxL1ING;
var TxtAuxL2=TxtAuxL2ING;
var TxtAuxL3=TxtAuxL3ING;
What I was thinking is to store TxtAuxL1ING in one file, TxtAuxL1ESP in another file and read them from my javascript code inside the PDF. Is it possible?
Regards
JCHi,
maybe this solution ist interesting for you.
It populates form fields with data read from an attached XML file.
http://thelivecycle.blogspot.de/2011/01/populate-data-from-attachment.html -
Load dynamic text into Captivate form external file
Is it possible to load dynamic text into a Captivate file from an external file like an XML using Javascript.
I see there's a way to get it form the query scring of the URL ( http://captivatedev.com/2011/05/01/how-to-jump-to-a-specific-slide-in-a-separate-course/ ), but I have a project where I want several pieces of text to be replaced and we want to be able to edit it externally from the Captivate file.
Thanks!Hi Ned,
What I'm doing is using a yahoo map to load addresses and
place custom swf files as the placemarkers. The main stage has an
instance of myMap, which is the map that yahoo sets us to display
the ACTUAL map. They have also provided coding for placing markers
on the map, which is what I'm using.
I have the addresses throughout multiple xml files, which I
am actually loading through 1 single xml file. These addresses are
being stored in an array, then called by the AS below to place
markers. All the markers are placed correctly, however, I am trying
to have them actually say the address - this is where the problem
lies.
The marker that is being located and placed has a text field
called load_text in it. I want that field to load the same address
that is being used to place it (from the array addressA).
I'm very confused because every loop through the * for (i=0;
i<addressA.length; i++) * loop the marker is placed at the
correct addressA
location, but I cannot actually get the address to load into the
load_txt field in the marker. I can even run a trace during that
loop and it traces addressA for each address, but I can't seem
to actually load those values into the load_txt box.
Do you have any ideas? -
Is there any documentation in addition to the standard SDK documet?
I have to challenges:
1. What LUA code do i use inside a typical "grid" to write seomthing to an external file ?
2. How can I change settings for the stahdard image files. For example, I like to output the large files with a different JPEG compression than the thumbnails.Probably a newbie question...
I tried the exampe from jarnoh above, but I get the error "Attempt to index local 'file' (a nil value).
This is my code:
local LrTasks = import 'LrTasks'
local LrApplication = import 'LrApplication'
local LrFunctionContext = import 'LrFunctionContext'
local LrProgressScope = import 'LrProgressScope'
local LrBinding = import "LrBinding"
local LrView = import "LrView"
local LrDialogs = import 'LrDialogs'
local LrPathUtils = import 'LrPathUtils'
local LrFileUtils = import 'LrFileUtils'
local LrStringUtils = import 'LrStringUtils'
local LrDate = import 'LrDate'
local catalog = import "LrApplication".activeCatalog()
function WriteExternalFile()
local file = io.open("example.txt", "w")
file:write("This is an test.")
file:close()
end
WriteExternalFile()
Maybe you are looking for
-
Preview *****! How do I make Safari use Acrobat Reader?!
Hi everyone... I'm trying to fill out some forms for work, and there are several problems when I use Safari combined with Preview. Does anyone know how to force Safari to use Acrobat instead? I've already tried re-installing Acrobat Reader, and repai
-
My 2008 iMac 8 is running very slow these days. I do have 4Gb of SDRAM and can upgrade to 6 I think. Does anyone have any suggestions? Not sure if I can put a 2 and a 4 GB memeory module(s) in for a total of 6GB. Thanks in advance.
-
Would like to explore pros and cons for using Business Objects Universe on top of Microsoft Analysis Service Cube...?
-
PSE 5 index / catalog duplicate filenames
How does the Photoshop Elements 5 catalog / indexer handle duplicate filenames? Or not? If you just upload your camera's native filenames, you're going to have a lot of _mg_3444.jpg, _mg_3445.jpg, etcetera, files over time. Is this why when you add p
-
UserID and Passwords in Oracle BI EE Maui
Are UserID's stored in the .rpd, the .webcat or in some other file? If in some other file, what is the filename and path? We are setting up 3 environments: EPMDEV, EPMTST, and EPMPRO for Development, Test, and Production. To migrate from one environm