About insert txt file
I need to know how to insert a txt file in JDeveloper and how to read it, I found something like this but it does not work :
private File file = new File("C:\\Users\\Denis\\Desktop\\tilaran\\GUTILARAN.txt");
What specifically doesn't work?
You can try something like this: http://www.roseindia.net/java/beginners/java-read-file-line-by-line.shtml
Similar Messages
-
Problem about writing txt file and utl_put_line
After some research on the internet I found the way how to writre files from Oracle 11g to a txt file.
I read that utl_put_line only holds 32k per line and adds a new line at the end of each row but my problem it´s that if I want to open the file with SQL Server :D it doesn't recognize the CRLF so there is no end line and the last column has the data from the next row. The files are created on Linux so if I open them on Windows i have to convert into DOS format but if I try to open that file with Excel everything works fine, so I was wondering if there is a limit of columns or number of characters that can be on a txt file.
There is my pl sql that I used to create my txt files:
-------------------CODE-----------------------------
declare
cursor r1 is
select * from dqstage.st_nomdetalle
where sistema = 'NOR'
and procesar = 0
and identidad=02;
cursor r2 ( p_parid number) is
select * from dqstage.st_nomsubdetalle
where par_id = p_parid
and procesar = 0
and sistema = 'NOR'
and substr(nombrearchivo,6,2)=02;
vcadena varchar2(4000);
--vcadena1 varchar2(4000);
vcadena1 clob;
vcadena2 long;
c number:=0;
vencabezados long;
archivo sys.utl_file.file_type;
begin
archivo:= SYS.UTL_FILE.FOPEN(location=>'UPEPE_DIR',filename=>'nor02.txt',open_mode=>'w',max_linesize=>32767);
vencabezados :='FILEID|NOMBREARCHIVO|TIPOREGISTRO|IDENTIFICADORREGISTRO|FECHAEMISIONPAGO|CLAVETIPONOMINA|CLAVECT|TURNOCT|RFC|CURP|NUMEMPLEADOESTATAL'
||'|NUMSEGURIDADSOCIAL|NOMBRECOMPLETO|NOMBRES|PRIMERAPELLIDO|SEGUNDOAPELLIDO|CODIGOPAGADURIA|IDORIGENPRESUPUESTALPLAZA|CLAVEPRESUPUESTAL|'
||'PARTIDAPRESUPUESTAL|CODIGOPAGO|CLAVEUNIDAD|CLAVESUBUNIDAD|CLAVECATEGORIA|HSM|NUMEROPLAZA|CLAVENIVELPUESTO|CLAVENIVELSUELDO|ZONAECONOMICA|'
||'PERCEPCIONNETA|CLABECUENTA|NUMEROCHEQUE|CLAVEMOTIVOPAGORETROACTIVO|NUMTOTALPERDED|ERRORES|'
||'TIPOCONCEPTO1|CONCEPTOPAGO1|MONTO1|PERIODODEL1|PERIODOAL1|FUENTEFINANCIAMIENTO1|ORIGEN1|ERRORES1|'
||'TIPOCONCEPTO2|CONCEPTOPAGO2|MONTO2|PERIODODEL2|PERIODOAL2|FUENTEFINANCIAMIENTO2|ORIGEN2|ERRORES2|'
||'TIPOCONCEPTO3|CONCEPTOPAGO3|MONTO3|PERIODODEL3|PERIODOAL3|FUENTEFINANCIAMIENTO3|ORIGEN3|ERRORES3|'
||'TIPOCONCEPTO4|CONCEPTOPAGO4|MONTO4|PERIODODEL4|PERIODOAL4|FUENTEFINANCIAMIENTO4|ORIGEN4|ERRORES4|'
||'TIPOCONCEPTO5|CONCEPTOPAGO5|MONTO5|PERIODODEL5|PERIODOAL5|FUENTEFINANCIAMIENTO5|ORIGEN5|ERRORES5|'
||'TIPOCONCEPTO6|CONCEPTOPAGO6|MONTO6|PERIODODEL6|PERIODOAL6|FUENTEFINANCIAMIENTO6|ORIGEN6|ERRORES6|'
||'TIPOCONCEPTO7|CONCEPTOPAGO7|MONTO7|PERIODODEL7|PERIODOAL7|FUENTEFINANCIAMIENTO7|ORIGEN7|ERRORES7|'
||'TIPOCONCEPTO8|CONCEPTOPAGO8|MONTO8|PERIODODEL8|PERIODOAL8|FUENTEFINANCIAMIENTO8|ORIGEN8|ERRORES8|'
||'TIPOCONCEPTO9|CONCEPTOPAGO9|MONTO9|PERIODODEL9|PERIODOAL9|FUENTEFINANCIAMIENTO9|ORIGEN9|ERRORES9|'
||'TIPOCONCEPTO10|CONCEPTOPAGO10|MONTO10|PERIODODEL10|PERIODOAL10|FUENTEFINANCIAMIENTO10|ORIGEN10|ERRORES10|'
||'TIPOCONCEPTO11|CONCEPTOPAGO11|MONTO11|PERIODODEL11|PERIODOAL11|FUENTEFINANCIAMIENTO11|ORIGEN11|ERRORES11|'
||'TIPOCONCEPTO12|CONCEPTOPAGO12|MONTO12|PERIODODEL12|PERIODOAL12|FUENTEFINANCIAMIENTO12|ORIGEN12|ERRORES12|'
||'TIPOCONCEPTO13|CONCEPTOPAGO13|MONTO13|PERIODODEL13|PERIODOAL13|FUENTEFINANCIAMIENTO13|ORIGEN13|ERRORES13|'
||'TIPOCONCEPTO14|CONCEPTOPAGO14|MONTO14|PERIODODEL14|PERIODOAL14|FUENTEFINANCIAMIENTO14|ORIGEN14|ERRORES14|'
||'TIPOCONCEPTO15|CONCEPTOPAGO15|MONTO15|PERIODODEL15|PERIODOAL15|FUENTEFINANCIAMIENTO15|ORIGEN15|ERRORES15|'
||'TIPOCONCEPTO16|CONCEPTOPAGO16|MONTO16|PERIODODEL16|PERIODOAL16|FUENTEFINANCIAMIENTO16|ORIGEN16|ERRORES16|'
||'TIPOCONCEPTO17|CONCEPTOPAGO17|MONTO17|PERIODODEL17|PERIODOAL17|FUENTEFINANCIAMIENTO17|ORIGEN17|ERRORES17|'
||'TIPOCONCEPTO18|CONCEPTOPAGO18|MONTO18|PERIODODEL18|PERIODOAL18|FUENTEFINANCIAMIENTO18|ORIGEN18|ERRORES18|'
||'TIPOCONCEPTO19|CONCEPTOPAGO19|MONTO19|PERIODODEL19|PERIODOAL19|FUENTEFINANCIAMIENTO19|ORIGEN19|ERRORES19|'
||'TIPOCONCEPTO20|CONCEPTOPAGO20|MONTO20|PERIODODEL20|PERIODOAL20|FUENTEFINANCIAMIENTO20|ORIGEN20|ERRORES20|'
||'TIPOCONCEPTO21|CONCEPTOPAGO21|MONTO21|PERIODODEL21|PERIODOAL21|FUENTEFINANCIAMIENTO21|ORIGEN21|ERRORES21|'
||'TIPOCONCEPTO22|CONCEPTOPAGO22|MONTO22|PERIODODEL22|PERIODOAL22|FUENTEFINANCIAMIENTO22|ORIGEN22|ERRORES22|'
||'TIPOCONCEPTO23|CONCEPTOPAGO23|MONTO23|PERIODODEL23|PERIODOAL23|FUENTEFINANCIAMIENTO23|ORIGEN23|ERRORES23|'
||'TIPOCONCEPTO24|CONCEPTOPAGO24|MONTO24|PERIODODEL24|PERIODOAL24|FUENTEFINANCIAMIENTO24|ORIGEN24|ERRORES24|'
||'TIPOCONCEPTO25|CONCEPTOPAGO25|MONTO25|PERIODODEL25|PERIODOAL25|FUENTEFINANCIAMIENTO25|ORIGEN25|ERRORES25|'
||'TIPOCONCEPTO26|CONCEPTOPAGO26|MONTO26|PERIODODEL26|PERIODOAL26|FUENTEFINANCIAMIENTO26|ORIGEN26|ERRORES26|'
||'TIPOCONCEPTO27|CONCEPTOPAGO27|MONTO27|PERIODODEL27|PERIODOAL27|FUENTEFINANCIAMIENTO27|ORIGEN27|ERRORES27|'
||'TIPOCONCEPTO28|CONCEPTOPAGO28|MONTO28|PERIODODEL28|PERIODOAL28|FUENTEFINANCIAMIENTO28|ORIGEN28|ERRORES28|'
||'TIPOCONCEPTO29|CONCEPTOPAGO29|MONTO29|PERIODODEL29|PERIODOAL29|FUENTEFINANCIAMIENTO29|ORIGEN29|ERRORES29|'
||'TIPOCONCEPTO30|CONCEPTOPAGO30|MONTO30|PERIODODEL30|PERIODOAL30|FUENTEFINANCIAMIENTO30|ORIGEN30|ERRORES30|'
||'TIPOCONCEPTO31|CONCEPTOPAGO31|MONTO31|PERIODODEL31|PERIODOAL31|FUENTEFINANCIAMIENTO31|ORIGEN31|ERRORES31|'
||'TIPOCONCEPTO32|CONCEPTOPAGO32|MONTO32|PERIODODEL32|PERIODOAL32|FUENTEFINANCIAMIENTO32|ORIGEN32|ERRORES32|'
||'TIPOCONCEPTO33|CONCEPTOPAGO33|MONTO33|PERIODODEL33|PERIODOAL33|FUENTEFINANCIAMIENTO33|ORIGEN33|ERRORES33|'
||'TIPOCONCEPTO34|CONCEPTOPAGO34|MONTO34|PERIODODEL34|PERIODOAL34|FUENTEFINANCIAMIENTO34|ORIGEN34|ERRORES34|'
||'TIPOCONCEPTO35|CONCEPTOPAGO35|MONTO35|PERIODODEL35|PERIODOAL35|FUENTEFINANCIAMIENTO35|ORIGEN35|ERRORES35|'
||'TIPOCONCEPTO36|CONCEPTOPAGO36|MONTO36|PERIODODEL36|PERIODOAL36|FUENTEFINANCIAMIENTO36|ORIGEN36|ERRORES36|'
||'TIPOCONCEPTO37|CONCEPTOPAGO37|MONTO37|PERIODODEL37|PERIODOAL37|FUENTEFINANCIAMIENTO37|ORIGEN37|ERRORES37|'
||'TIPOCONCEPTO38|CONCEPTOPAGO38|MONTO38|PERIODODEL38|PERIODOAL38|FUENTEFINANCIAMIENTO38|ORIGEN38|ERRORES38|'
||'TIPOCONCEPTO39|CONCEPTOPAGO39|MONTO39|PERIODODEL39|PERIODOAL39|FUENTEFINANCIAMIENTO39|ORIGEN39|ERRORES39|'
||'TIPOCONCEPTO40|CONCEPTOPAGO40|MONTO40|PERIODODEL40|PERIODOAL40|FUENTEFINANCIAMIENTO40|ORIGEN40|ERRORES40|'
||'TIPOCONCEPTO41|CONCEPTOPAGO41|MONTO41|PERIODODEL41|PERIODOAL41|FUENTEFINANCIAMIENTO41|ORIGEN41|ERRORES41|'
||'TIPOCONCEPTO42|CONCEPTOPAGO42|MONTO42|PERIODODEL42|PERIODOAL42|FUENTEFINANCIAMIENTO42|ORIGEN42|ERRORES42|'
||'TIPOCONCEPTO43|CONCEPTOPAGO43|MONTO43|PERIODODEL43|PERIODOAL43|FUENTEFINANCIAMIENTO43|ORIGEN43|ERRORES43|'
||'TIPOCONCEPTO44|CONCEPTOPAGO44|MONTO44|PERIODODEL44|PERIODOAL44|FUENTEFINANCIAMIENTO44|ORIGEN44|ERRORES44|'
||'TIPOCONCEPTO45|CONCEPTOPAGO45|MONTO45|PERIODODEL45|PERIODOAL45|FUENTEFINANCIAMIENTO45|ORIGEN45|ERRORES45|'
||'TIPOCONCEPTO46|CONCEPTOPAGO46|MONTO46|PERIODODEL46|PERIODOAL46|FUENTEFINANCIAMIENTO46|ORIGEN46|ERRORES46|'
||'TIPOCONCEPTO47|CONCEPTOPAGO47|MONTO47|PERIODODEL47|PERIODOAL47|FUENTEFINANCIAMIENTO47|ORIGEN47|ERRORES47|'
||'TIPOCONCEPTO48|CONCEPTOPAGO48|MONTO48|PERIODODEL48|PERIODOAL48|FUENTEFINANCIAMIENTO48|ORIGEN48|ERRORES48|'
||'TIPOCONCEPTO49|CONCEPTOPAGO49|MONTO49|PERIODODEL49|PERIODOAL49|FUENTEFINANCIAMIENTO49|ORIGEN49|ERRORES49|'
||'TIPOCONCEPTO50|CONCEPTOPAGO50|MONTO50|PERIODODEL50|PERIODOAL50|FUENTEFINANCIAMIENTO50|ORIGEN50|ERRORES50';
--||'TIPOCONCEPTO51|CONCEPTOPAGO51|MONTO51|PERIODODEL51|PERIODOAL51|FUENTEFINANCIAMIENTO51|ORIGEN51|ERRORES51';
sys.utl_file.put_line(archivo, vencabezados);
for i in r1 loop
c:=c+1;
vcadena := i.fileid||'|'||i.nombrearchivo||'|'||i.tiporegistro||'|'||i.identificadorregistro||'|'||i.fechaemisionpago||'|'||i.clavetiponomina||'|'||i.clavect||'|'||i.turnoct||'|'||i.rfc
||'|'||i.curp||'|'||i.numempleadoestatal||'|'||i.numseguridadsocial||'|'||i.nombrecompleto||'|'||i.nombres||'|'||i.primerapellido||'|'||i.segundoapellido||'|'||i.codigopagaduria
||'|'||i.idorigenpresupuestalplaza||'|'||i.clavepresupuestal||'|'||i.partidapresupuestal||'|'||i.codigopago||'|'||i.claveunidad||'|'||i.clavesubunidad||'|'||i.clavecategoria||'|'||i.hsm
||'|'||i.numeroplaza||'|'||i.clavenivelpuesto||'|'||i.clavenivelsueldo||'|'||i.zonaeconomica||'|'||i.percepcionneta||'|'||i.clabecuenta||'|'||i.numerocheque||'|'||i.clavemotivopagoretroactivo
||'|'||i.numtotalperded||'|'||i.errores;
vcadena1:=null;
for j in r2 (i.fileid) loop
vcadena1 := vcadena1||'|'|| j.tipoconcepto||'|'||j.conceptopago||'|'||j.monto||'|'||j.periododel||'|'||j.periodoal||'|'||j.fuentefinanciamiento ||'|'||j.origen||'|'||j.errores;
end loop;
sys.utl_file.put_line(archivo, vcadena2);
end loop;
sys.utl_file.fclose(archivo);
end;
As you can see I write the column names first and with a loop I add the data, so I can have a very large column at the end.
How can I add the CRLF at the end of each line to have it working with Windows?user2068122 wrote:
After some research on the internet I found the way how to writre files from Oracle 11g to a txt file.
I read that utl_put_line only holds 32k per line and adds a new line at the end of each row but my problem it´s that if I want to open the file with SQL Server :D it doesn't recognize the CRLF so there is no end line and the last column has the data from the next row. The files are created on Linux so if I open them on Windows i have to convert into DOS format but if I try to open that file with Excel everything works fine, so I was wondering if there is a limit of columns or number of characters that can be on a txt file.
<snip>
Oracle is simply passing a string of characters to the OS to be written to a file in the host OS's native text format. That format is different from Windows and nix. Windows will append a CR-LF pair to the end of the provided character string, as its end-of-record delimiter. nix will append only a CR (or is it LF?) as its end-of-record delimiter. This is purely and OS issue that Oracle knows or cares nothing about. It is also something that must always be kept in mind when passing files between *nix and Windows. -
What do you think about creating TXT-files support in newer versions of firmware? I suppose it can be great! Imagine: you can store books (HDD! What am I talkin' about? You can store a great library on your player!), song lyrics and more!Message Edited by AL_exe on 0-30-2005 02:24 AMMessage Edited by AL_exe on 02-03-2005 05:55 PMMessage Edited by AL_exe on 02-08-2005 2:3 AMMessage Edited by AL_exe on 02-08-2005 2:33 AM
scorpian007 wrote:
We need to turn this into a petition
I've just made it by renaming the thread.
<img src='http://chandan.tx.com.ru/sguestbook/images/avatars/matrix.jpg'>Does anyone else want to join us? -
How can i open a DOC or TXT file and insert the data into table?
How can i open a DOC or TXT file and insert the data into table?
I have a doc file . the doc include some columns and some rows.(for example 'ID,Name,Date,...').
I'd like open DOC file and I'd like insert them into the table with same columns.
Thanks.Use the SQL*Loader utility or the UTL_FILE package.
-
SQL Loader - want to access data from .txt file but don't want to insert
Hello,
I have situation where I have some data in .txt file and I have to load that data into one of my table.
My problem is I have fundtion get_id(a,b,c) in database which I have to call while loading the data to find out value of x.
I have value of a, b and c in txt file which I can access it using POSITION(N:M) in sql loader, but After accessing that value I just want to past to get_id() function and dont want to insert into sql loader.
any helpMy control file is as below
Following field is not in database but I need to pass the value to the function to get a ESC_USER_ID. any help
OFFICE_NUM filler POSITION(32:35) ,
STATION_DESK filler POSITION(45:48),
LOAD DATA
INFILE REFERRALs.TXT
BADFILE REFERRAL_LOAD.BAD
DISCARDFILE REFERRAL_LOAD.DIS
INSERT
INTO TABLE REFERRAL
EVALUATE CHECK_CONSTRAINTS REENABLE DISABLED_CONSTRAINTS
TRAILING NULLCOLS
ID sequence (1,1),
JOB_ID POSITION (16:22) "GET_JOB_ID(:JOB_ID)" ,
CUS_ID POSITION (23:31) "GET_CUS_ID(:CUS_ID)" ,
STATUS_LU CONSTANT 'F' ,
REQUEST_USER_TYPE_LU CONSTANT 'S' ,
OFFICE_NUM filler POSITION(32:35) ,
STATION_DESK filler POSITION(45:48),
REQUEST_USER_ID POSITION(143:149) "GET_ESCUSER_ID(OFFICE_NUM,STATION_DESK,:REQUEST_USER_ID)" ,
REQUEST_DT POSITION (37:44) "to_date(:REQUEST_DT,'YYYY/MM/DD')" ,
REVIEW_USER_ID FILLER ,
REVIEW_DT FILLER ,
REFUSE_REASON_LU FILLER ,
RESULT_LU POSITION (97:97) ,
NOTIFY_STATUS_LU FILLER ,
NOTIFY_DT FILLER ,
APPOINTMENT_DT POSITION (106:113) "to_date(:APPOINTMENT_DT,'YYYY/MM/DD')" ,
RESULT_DT POSITION (98:105) "to_date(:RESULT_DT,'YYYY/MM/DD')" ,
NO_MATCH_IND CONSTANT 'N'
) -
Format probelm about the downloaded txt file
I encounter a problem. after the 4.7 system upgrade to ECC6.0 ..(sandbox)
Our report can't download the correct txt file.
I wrote a test program.
REPORT ZTEST NO STANDARD PAGE HEADING.
write: / '123',
/ 'abc'.
I download from menu :system->list->save_>local file: not converted.
but when opening the txt file , it shows:
2008.09.09 test 1----
123abc
everything is in one line. and add the current date ..and '----
Help.. what's the problem?
Many thanks
Edited by: hand consultant on Sep 9, 2008 8:13 AMHi,
Ganesh Modhave,
It is strange problem. Because in the same computer, I downloaded the txt file from 4.6c system. And the result is OK.
So I guess some upgrade issue result in the problem..
I path the gui 710 to level 2.,,........ It's okey now ,thanks. -
Insert line break into .txt file
Alright, so I am writing out to a simple .txt file, and I
need to force a line break in it. My immediate thought is to use
"\n" as that is a line break. So, I write it out to the text file,
and instead of a line break, I see the "complex character" symbol
(you know, that square that shows up with unknown characters). I
have tried the various ASCII values to no avail, tried \r, even
tried copy-pasting a line break in from notepad. Nothing seems to
be working for me. How do I do this?
_logFile = "\n";
stream = new FileStream();
stream.open(file,FileMode.WRITE);
stream.writeUTFBytes(_logFile);
stream.close();in windows use "\r\n"
i.e. _logFile = "\r\n"; -
Populate a table reading the data from a TXT file
how can I populate a table reading the data from a TXT file?
thanksHey Kevin!
Using FORMS.TEXT_IO to bulk load data from a file strikes me as re-inventing the wheel. It is just about justifiable in a self-service environment, but I regard the EXTERNAL TABLE is a better solution for that situation as well.
The same applies to UTL_FILE. I think the ability to read text with UTL_FILE is primarily intended for read file-based configuration or file manipulation/processing rather than data loading.
Re-writing a text file into SQL statements is too much like hard work (even with an editor that supports macro definition and regular expressions) for no real benefit. You lose all the bulk load peformance you would get from SQL*Loader. But for QAD I'd probably let you off with it.
You missed out one obvious alternative: using Java to turn the contents of an XML file into a CLOB and inserting it into a table which is read by a PL/SQL procedure that parses the XML records and insert the retrieved data into a table.
Stay lucky, APC -
Updated record should come in txt file
Hi Friends,
My requirements like this way, any changes make in mara, mard, mbew, makt, vbak, vbap, vbrk and abrp table. that newly created data should come in .txt file of application server.
I have already developed a program for that. it is downloading data in every 3 hours slots. it is running in background. whatever changes made during these hours it will download.
now, my requirement has been changed, instance data should come in .txt file of app server. e.g. when newly created record save in database table, same time that record should come in .txt file with proper format.
is it possible? please let me know.
Thanks in advance,
ParagHi Parag,
To obtain changes you know you can get the details from the tables CDHDR and CDPOS.
Also you have questions about performance and so. SO here are some details.
- When you flag a data element for change document (is checked) it is ONLY a marker that allows for registration of this field's changes into CDHDR and CDPOS. The actual control is done on datafile level in its technical settings (Transaction SE11 with datafile name and then push button "Technical Settings" or CtrlShiftF9). Herein you will find a flag "Log data changes".
Within the CDHDR file and CDPOS file a field OBJECTCLAS is used. Only for existing OBJECTCLAS values the changes are logged.
- Now obvious this is the trick for standard SAP (as Subramanian has already pointed out you can find "OBJECTCLAS" values with transaction SCDO). If you want to know on how to create your own "OBJECTCLAS" values with working logging on your own designed fields follow Subramanian suggestion and read the documentation.
Now to your questions:
You gave some tables you need to track changes (and now also for initial creation) like MARA, MARD, MAKT and others.
To get changes for these tables use the following "OBJECTCLAS" values:
- MATERIAL (Tables MARA, MARC, MARD, MBEW, MFHM, MLGN, MLGT, MPGD, MPOP and MVKE). By-the-way, this object will be replaced by MATERIAL_N (available from release 4.6x).
- VERKBELEG (Tables VBAK, VBAP, VBEP, VBKD, VBLB, VBPA, VBPA2 and VBUK).
To collect changes (suggested by Andreas) you could use function module CHANGEDOCUMENT_READ. This is very usefull if also archiving is active for the objects you need to track changes for and your changes are scattered through time, but for your problem it is better to approach the log data directly.
1. First select the main change documents from CDHDR table for a given "OBJECTCLAS" and "OBJECTID". Here you can use additional filtering on DATE (field UDATE) and TIME (field (UTIME). Even filtering on a specific transaction is possible (field TCODE).
This gives you a number of change documents (field CHANGENR).
2a. Secondly select the specific field changes from table CDPOS by using the found fields from CDHDR and additionally fill TABNAME with the specific table and if required FNAME with the specific field name. 2b. Since in your case the values will not be known, you need to track changes, you have to be very carefull in your selections. If you track the object MATERIAL or MATERIAL_N, you best loop over the MARA table and for each MATNR fill the OBJECTID field of CDHDR with this MATNR value.
3. In order to find NEWLY created items you need to check the CHANGE_IND flag. When 'I' it is an new insert, when 'U' it is an update. Now this rule applies ONLY to key fields, since SAP first creates the key record (CHANGE_IND = 'I') and then the other fields (CHANGE_IND = 'U').
Finally the warning given by Andreas (runtime increases - you MUST select with OBJECTCLAS and OBJECTID) is very important. Not supplying OBJECTID will have a very heavy impact on the runtime.
Hope this gives you some clues on how to approach your problem.
Regards,
Rob. -
Problems getting elements to work in a txt file within Flash.
Hello! I'm working on my band's new website and have been
searching many hours for answers to some problems I'm having with
txt files referenced as HTML in Flash.
Our site is
http://moumusic.com.
One of the problems is having an image as a link. For
instance, I have a photo and try to link a website to it:
quote:
<a href="
http://cdbaby.com/cd/motuniverse"
target="_blank"><img src="images/cdbaby.gif" width="100"
height="100"></a>
It works when loaded as an HTML file, but not when viewed in
the Flash site. The text file for this is at
http://moumusic.com/moualbum.txt.
The page comes up when you click the "MoU's First CD" link on
moumusic.com.
Next, I can't link to external media files. For instance, I
tried inserting the code:
quote:
<a href="
http://fusco-moore.com/videos/SongforCliff-2.wmv">Song
for Cliff Video Part 2</a>
. You can click the text (while viewing it as
part of the Flash site), but nothing happens. You can even copy the
shortcut, but you can't use the link properly.
Last, I want to put a PayPal Buy It Now button on one of the
pages. The link is pretty long:
quote:
<a
href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=producer%40wcjm%2ecom&it em_name=%22Masters%20of%20the%20Universe%22%20CD%20by%20MoU&amount=10%2e00&no_shipping=2&n o_note=1¤cy_code=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF%2d8">Buy
Now!</a>
. I heard that there's a 128 character limit for
links in Flash. Is there any way around this?
What about forms? PayPal has the option of doing a form for a
shopping cart. Flash won't even begin to recognize it when I just
drop the form code in there.
Well, thanks for the help in advance- hopefully this stuff
can be accomplished!
JimI assume you are using the Flash TextField object set to
render html.
First to understand is that the extent of html recognized is
limited and by
player version. That means you cannot use any HTML tag you
wish.
See
http://livedocs.macromedia.com/flash/8/main/00001459.html
for the
supported list in Flash Player 8
You might check "About making hypertext links out of embedded
media " as
well:
http://livedocs.macromedia.com/flash/8/main/00001477.html
Malformed html in a TextField can render any tag in the field
non
functional. Be sure the html in the TextField is validated.
I would assume the anchor tag in Flash text field would
follow the same
rules an anchor tag in HTML as to length of the query string.
Finally consider using Flash with a button and getURL for the
PayPal link.
http://livedocs.macromedia.com/flash/8/main/00001730.html
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"wcjmproducer" <[email protected]> wrote in
message
news:[email protected]...
> Hello! I'm working on my band's new website and have
been searching many
> hours
> for answers to some problems I'm having with txt files
referenced as HTML
> in
> Flash.
>
> Our site is
http://moumusic.com.
>
> One of the problems is having an image as a link. For
instance, I have a
> photo and try to link a website to it:
>
>
quote:
<a href="
http://cdbaby.com/cd/motuniverse"
target="_blank"><img
> src="images/cdbaby.gif" width="100"
height="100"></a>
>
> It works when loaded as an HTML file, but not when
viewed in the Flash
> site.
> The text file for this is at
http://moumusic.com/moualbum.txt.
The page
> comes
> up when you click the "MoU's First CD" link on
moumusic.com.
>
> Next, I can't link to external media files. For
instance, I tried
> inserting
> the code:
quote:
<a
> href="
http://fusco-moore.com/videos/SongforCliff-2.wmv">Song
> for Cliff Video Part 2</a>
. You can click the text (while viewing it
> as
> part of the Flash site), but nothing happens. You can
even copy the
> shortcut,
> but you can't use the link properly.
>
> Last, I want to put a PayPal Buy It Now button on one of
the pages. The
> link
> is pretty long:
quote:
<a
>
href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=producer%40wcjm
>
%2ecom&item_name=%22Masters%20of%20the%20Universe%22%20CD%20by%20MoU&amount=10%2
>
e00&no_shipping=2&no_note=1¤cy_code=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF
> %2d8">Buy Now!</a>
. I heard that there's a 128 character limit for
> links
> in Flash. Is there any way around this?
>
> What about forms? PayPal has the option of doing a form
for a shopping
> cart.
> Flash won't even begin to recognize it when I just drop
the form code in
> there.
>
> Well, thanks for the help in advance- hopefully this
stuff can be
> accomplished!
>
> Jim
> -
Importing txt file and placing in set up autoflow text
Hi there
I'm not really an indesign user so I am extremely new to the product.
I am wanting to place a text file into a (now) indesign template (was pagemaker) and into an autoflow text area where the text flows from one page to another. I want to overwrite what is in the current document with this new text but wanting the new text to fill the correct pages of the template.
My question is what is the fastest way to make this happen?
The auto flow is already set from the pagemaker template;
The txt file has separated the text by tabs across the page.
Your assistance would greatly be appreciated.
CheersWithout giving you a full lesson on how to format text in InDesign, I'm hoping the template contains, Text Frame placeholders (it sounds from your description that it does) Paragraph and Character styles at least to format the .txt file once the new text is in the document?
Use your Type tool, click in the existing text and Ctrl/Cmd+A (Edit > Select All). Then choose File > Place and navigate to your .txt file to replace currently selected text. Then format the text with appropriate paragraph styles etc.
If particular text must start on a new page, in a different frame or column, then you could insert break characters where needed (Type > Insert Break Character). I'd generally advice that the break information -- where linked to a particular paragraph style -- is set as part of the paragraph style itself.
You might also want to consult the InDesign Help to learn a bit more about all of this.
Good luck,
Cari
Cari Jansen - Adobe Certified Instructor
www.carijansen.com
www.twitter.com/carijansen -
Copy contents of a txt file into a transport request
I am implementing the steps of the 990534 note.
The note says "Create a new transport request (transaction SE09) in the source client of your Solution Manager system. Unpack file SOLMAN40_MOPZ_TTYP_SLMO_000.zip, which is attached to this note. Copy the contents of the SOLMAN40_MOPZ_TTYP_SLMO_000.txt file into the transport request."
can anyone tell me how can I copy the contents of a txt file into a transport request?Hello,
I don't know the OSS note, but I think they mean, that you have to go into the object list of your transport (in transaction SE09), switch to change mode and insert the objects from the text file.
I guess the text file looks like:
R3TR PROG xyz
R3TR TABL abc
Best regards
Stephan -
Hi,
I was hoping someone could help me. I am trying to read these values
3.182, 0.02734, 1126.0, 4.998E-4, 0.01581, 11.0, -150.3, 10.46, 3.735, 0.8474, -0.4854, 0.7866, 1.475, 0.9439, 0.769, 0.1846, 0.07678, -0.9491, -1.236, -0.9908, 0.5265, -0.27, 0.3569, -0.09167, 0.1295, -0.04507, 0.1029, -0.03005, 0.0, 0.03752, 0.001151, 0.2935, 74.84, 19080.0, 6.086, etcfrom a txt file. I have done some coding on it but dont seem to be getting the desired results. I want to take these values and put them in a 2D array.. but its not doing it. Can you see any mistakes i have done please ?
public double[][] readFile(){
double[][] dArray = new double[164][37];
int a = 0;
int b = 0;
try
{ FileReader fin = new FileReader("myFile.txt");
BufferedReader in = new BufferedReader(fin);
String line;
while((line = in.readLine()) != null){
String[] value = line.split(", ");
for (int x=0; x<value.length ; x++){
System.out.println("a: "+a+" || b: "+b);
if (b == 37) {
a = a++;
} else
dArray[a] = Double.parseDouble(value[x]);
System.out.println("value: "+dArray[1][1]);
b++;Yes thats because its part of larger code.. it is just a method within my code.
but your right about the catch but so yeah sorry i missed it when i copied pasted. I ve also added you a main method.
public double[][] readFile(){
double[][] dArray = new double[164][37];
int a = 0;
int b = 0;
try
{ FileReader fin = new FileReader("myFile.txt");
BufferedReader in = new BufferedReader(fin);
String line;
while((line = in.readLine()) != null){
String[] value = line.split(", ");
for (int x=0; x<value.length ; x++){
System.out.println("a: "+a+" || b: "+b);
if (b == 37) {
a = a++;
} else
dArray[a] = Double.parseDouble(value[x]);
System.out.println("value: "+dArray[1][1]);
b++;
catch (IOException e){}
return dArray;
public static void main(String[] args) {
new Extract();
}/code] -
HOW DO YOU CONVET AN ORACLE DATABASE FILE TO A TXT FILE?
Is there a way in a program unit of a form to convert an ORACLE database file into TXT format? When the file gets created, I want to use the text file in a distribution list for sending email. My code in the program unit is:
Insert into THE_IMO_EMAIL
Select distinct imo_email from DS_POC
where imo_email is not null;
commit;
Table THE_IMO_EMAIL is a temporary table. The temporary table gets deleted everytime before records get inserted into it. There is only 1 item in the temporary table.
IMO_EMAIL VARCHAR2(55)
After the COMMIT I want to copy the contents out of the
THE_IMO_EMAIL into a TXT File.
How do I do this? What parameters do I need to use? Should I do this in another program unit?can you be more clear on this
"DATABASE FILE" what is this? an RDBMS file and you need this in ASCII format. I am lost. -
I have a six year old lap top with an old OS and itunes 10. I backed up my i phone 4 on it. I got an I phone 5 and the version of Itunes compatible is not supported by the laptop. I installed itunes on a different computer and when trying to sync the iphone 4 to the desktop, updated the iphone 4 software. Now my iphone 4 is no longer compatible with my laptop. I am interested in getting my contacts and photos from my old laptop to either iphone at this point. I have the backed up files but they are txt files in the Mobile Sync Back ups. Any suggestions would be appreciated!
Generally when moving from one phone to another, individuals will make a backup of the one device and then restore to the second device. However, it seems you are no longer using the computer you made the backup on, so that can be a problem. There is no way for you to take information out of the backup and insert it in the iPhone. It is an all or none proposition. But, just moving the backup folder from one computer to another doesn't work either.
Did you sync the contacts to a supported application on the computer? Also, if you are referring to the photos in the camera roll, you can import them to the computer by connecting the phone to the computer. You do not need iTunes to do that. Just plug in and let the computer photo import utility take the pictures and put them on the computer. Then you would sync the photos back to the photo library on the new phone,
Contacts you can look at a 3rd party app that might help. MCBackup is in the app store and converts your contacts to a file you can email to yourself and then click on it and open it. Suggest syncing contacts/calendar to a supported application on the computer, or to iCloud so you can recover a lot easier.
Maybe you are looking for
-
TS1363 how can i restart my 2004 ipod click wheel?
How can i restart my 2004 model ipod (click wheel) on my computer and on my itunes?
-
ISE 1.1.4 and Windows 2012 AD
Hi. I'm trying to get 802.1x certificate authentication up and running. I want to use both user and machine certificate. On "vanilla" v1.1.4, I got an error message with user certificate. After some reading it seems support for AD 2012 was added in p
-
Since Firefox joined with Yahoo, I have been receiving Daily Spam Emails, never have I had so many since this merger. Plus only 3/4 of many received Emails are shown on the screen, the rest are cut off.. Thank you
-
A challenge for anyone who wants one : )
Hi, I am trying to write a method that basically takes in a vector containing short objects which have variable legnth codes in them. I want to manipulate these shorts and create a new Vector of shorts that contain fixed length code versions of these
-
I have got the nugget file for ABAP2XLSX class and imported it using ZSAPLINK. also i installed demo programs 'ZCl_ALV2XLSX_DEMO1' given by Zcl_alv2xlsx. When i execute that program it downloads a excel file in a format (.xls or .xlsx) but while open