Set the color of a .txt file?
Hello
I have a .txt file on my desktop that contains only 1 line of text: #79a3d2
I also have the following code in a .jsx file.
var fileToParse = File ('/Desktop/Photoshop.txt'); fileToParse.open('r'); var NewColor = fileToParse.readln(); fileToParse.close(); var color = app.foregroundColor; color.RGBColor.hexValue=NewColor; app.foregroundColor = color;
I'm trying to change the color of foreground to the hex code in the text file, but I have an error message saying "Undefined is not an object"?
Is someone can you please tell me what is the problem with my code (in layman's terms)?
Thank you in advance.
var File = fileToParse (Folder.desktop + ' / Photoshop.txt');
fileToParse.open ('r');
var NewColor = fileToParse.readln ();
fileToParse.close ();
app.foregroundColor.rgb.hexValue = NewColor;
Tags: Photoshop
Similar Questions
-
Set the color of a row in a JTable
Hi all
I need to set the color of a line (or simply a cell) in a JTable to a specific color,
I read these pages:
http://StackOverflow.com/questions/1057710/how-to-set-the-colour-of-my-1st-row-in-my-JTable-to-yellowor-any-colour
http://www.roseindia.NET/Java/example/Java/Swing/SadingRows.shtml
http://StackOverflow.com/questions/3875607/change-the-background-color-of-a-row-in-a-JTable
http://www.codeguru.com/Forum/archive/index.php/t-34478.html
http://www.thatsjava.com/Java-Swing/16549/
and lots and lots of links like these... all of them are too complicated and HARD...
What I need, it's too simple: pick a line and then set the color red for example...
Can you help me please...
I need the simplest code possible
Thank you very much{/ / Here a Question: this is the beginning of the block what?} Method? class? where is the name?
It's what we call a "class internal annonymous. Its extension JTable and similar to the override of the prepareRenderer() method if you do not need a separate source file.
This method returns a component... while I was expecting, it does the job and returns nothing (void)...
The code is substituting a JTable method defined in the API.
It seems that these codes CREATE a JTable with a custom look, whereas what I need is to EDIT and CHANGE a JTable that is ALREADY CREATED
Custom made is a design time decision. That is, you need to create and implement an API at design which allows to dynamically change the rendering at runtime. The default API does not support line-level rendering which is why you need to create your own API to do this.
I need to set the color of a line (or simply a cell) in a JTable to a specific color,
Converters of work by making the data contained in a table cell. If you want a rendering engine, a cell or a row of a table a different color, so you need to store this information somewhere so that the rendering engine knows what to do.
If you feared strictly for color lines, then approach you could do is create a
card. When you want a row to be a specific color, then you add and entry to the map. The best way to use this information would override the method prepareRenderer() to check the card each time to see if a custom color is for the line to be renderered. Here is a simple example of a simple API added to the JTable which lets you row rendered level:
import java.awt.*; import java.util.*; import javax.swing.*; import javax.swing.table.*; public class RowTable extends JTable { Map
rowColor = new HashMap (); public RowTable(TableModel model) { super(model); } @Override public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { Component c = super.prepareRenderer(renderer, row, column); if (!isRowSelected(row)) { Color color = rowColor.get( row ); c.setBackground(color == null ? getBackground() : color); } return c; } public void setRowColor(int row, Color color) { rowColor.put(row, color); } public static void main(String[] args) { DefaultTableModel model = new DefaultTableModel(10, 4); RowTable table = new RowTable( model ); table.setPreferredScrollableViewportSize(table.getPreferredSize()); table.setRowColor(1, Color.YELLOW); table.setRowColor(4, Color.RED); table.setRowColor(7, Color.ORANGE); JFrame frame = new JFrame(); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); frame.add( new JScrollPane( table ) ); frame.pack(); frame.setLocationRelativeTo( null ); frame.setVisible(true); } } -
Set the color to a table Cluster
Is it possible to set the color, if the table, fonts, cluster, etc. on a specific column and row within a table Cluster? Looking at the properties and methods, it does not seem so. I have no other options that rethink my VI?
Here's an example of how my data are implemented with the sample data provided.
I would appreciate any advice.
Interesting that you should raise this issue. Coincidentally, a similar question was answered just in time:
Check out Jeff's response and see if maybe you can adapt to your problem.
-
try to set the color of amd's message color depth less than 24. How to set the highest color depth?
If your computer allows you to change this setting, it will be located in the "Control Panel > display > resolution > Advanced Settings > Monitor tab > screen colors.
-
Set the color for emphasis on the interactive whiteboard to HorizontalFieldManager
I have an array of horizontal fields that contains a bitmap and a labelfield each. The entire line should be clickable who worked until now, but how do I set the color to accent properly? At the moment the onFocus and onUnfocus functions are completely ignored.
It's the definition of my table:
for (int i = 0; i < listSize; i++) { logInDetailManager[i] = new HorizontalFieldManager( Manager.USE_ALL_WIDTH | Field.FOCUSABLE) { protected void onFocus(int direction) { super.onFocus(direction); background_color = Color.RED; invalidate(); } protected void onUnfocus() { invalidate(); background_color = Color.GREEN; }
And that's how I add my horizontal fields:
logInDetailManager[i].setChangeListener(this); logInDetailManager[i].add(dummyIcon[i]); logInDetailManager[i].add(new LabelField("hello")); logInDetailManager[i].add(new NullField(Field.FOCUSABLE)); add(logInDetailManager[i]);
Thanks for your help!
AAH it got already...
If someone has trouble with this too: I removed onFocus() and onUnfocus and set the background color in the paint so the color of the entire line method is modified when:
protected void paint(Graphics graphics) { graphics.setBackgroundColor(isFocus() ? Color.RED : Color.GREEN); graphics.clear(); invalidate(); super.paint(graphics); }
-
How to set the color of foreground to EditField
Hi all
I added EditField to display new EditField("About:","",1024,EditField.FILTER_DEFAULT).
Now I want this editfield foreground color value. But there is not setForegroundColor() as setBackgroundColor() in the EditField class.
Can someone tell me how to set the color of foreground to EditField?
I think so
You can change the foreground color by replacing your method of painting:
That is to say
editField = new EditField() { public void paint(Graphics g) { g.setColor(Color.GRAY); super.paint(g); } };
-
I need something to smooth out grainy photos and set the color. I have several photos that I need to use which has a blue cast on them. Photoshop will remove the color blue? I need an answer immediately.
Yes, photoshop can remove noise and remove color casts
-
How to set the color for background ChoiceBox point to ChoiceBox with css?
How to set the color for background ChoiceBox point to ChoiceBox with css?
I need to change the backgound color list items.
I tried with the following code, but it's not help to:
{.context-menu .choice-box
-fx-background-color: Red;
}
.choice-box .menu-item {}
-fx-background-color: red;
}
In Java 8, either of your selectors should work.
In Java 7 (JavaFX 2.2), you need of the following workaround:
#choice-box-menu-item { -fx-background-color: red ; }
-
Change the color of an Illustrator file directly in InDesign?
Hello world
Excuse my bad English, I'm french.
Is it possible to your changes the color of a directly imported Illustrator file in InDesign?
In fact its possible to change the color of a bitmap file in InDesign photoshop, but I want to do the same thing with an Illustrator file.
Thank you
If you have the color as a spot color - like 'Red Special' in Illustrator. Then in inDesign use the ink Manager to assign an alias - you can select another Spot color to use instead of that.
But if you have the color as "Pantone 485" and sure alias in the ink Manager - anywhere else you used "Pantone 485" will change in InDesign - images et al. using Pantone 485.
I recommend that you use the names of 'Special' in Illustrator - perhaps with your trigger guard.
I would use "ET_RED_
" in order not to be confused with another logo and color or spot in the file or the color chart color. You will need to do on a document by document basis.
-
How to set the color for a particular column in the table in advance?
How can we set the color for a particular column in advance table based on a few feteched of vo in process request query parameter?Hello
Reference http://oraclearea51.com/blog/dynamically-color-the-rows-in-an-oa-framework-advanced-table.html
and prev thread. Can color us the lines in the column of a table
It will be useful.
Kind regards
GYAN -
Set the color of the horizontal rule
How to set the color of a horizontal rule? The properties box allows you to change the length, width, location & shading - but not color. Is it possible to change the color in the code? If the color change is NOT possible, is there another option to 'draw the objects' in Dreamweaver? Note: I use Dreamweaver 8.0.
Thanks for your time!You can go to Code view and add the color = "whatever" to the HR tag, but I think it only works on IE. The best way is to add a property of CSS color for the hr tag.
-
setting the color of the font in a text flash Member
Hi all
I'm trying to set the color of my text in a text flash member using the script below, but I get an error. No idea why? Thank you very much
on startmovie
Sprite (7) .fontSize = 20
Sprite (7).font.color = rgb (153,153,51)
end
If you use the flashComponents, you should consult the
the documentation that comes with Flash for formatting information. TO
to make changes, you need to set the style of the element. Of
Manager, you can change the color of the text for a TextInput component as
This (assuming that your wickedness is in channel 1):Sprite (1). SetStyle ("Color", "0xFF0000")
That will change the color red.
Other style options (for flash TextInput component) are:
backgroundColor
borderStyle
marginLeft
marginRight
disabledColor
IncorporerPolices
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textIndent
textDecorationYou can find out what are the current values using getStyle()
put sprite (1) .getStyle ("color")
-"0xff0000". -
How to read the Thai language in .txt file?
AttN; Who may apply.
How read txt file in another language (Asian language like Japanese, thai or Korea)?
Please let me know urgent... I have to use emergency...
Best regards
SAE
Hello CAs,
Welcome to the community of Sony.What is the model number of the digital book reader?
The reader supports text formats (.txt) as well as the two following formats:
-File EPUB (.epub) EPUB (version 2.0 of PAHO) taken in charge
-PDF file (.pdf) support is based on the PDF 1.6 specification.The default language on your Reader Digital Book setting does not affect the language in which the book is. Reading in a foreign language, you will have to buy them specifically in this language.
Thank you for your message.
-
with utl_file - save the result in a txt file.
PLS, help...
I have a question that I used to use SQL PLUS, using the COIL and it worked very well.
Now, I'm changing it to pl/sql, which I'll have to use UTL_FILE.
The problem is that I need to create a file with a pre defined provision.
Can help you me pls?
Don't have much experience with UTL_FILE
Prompt 'Periodo MON-YY:' Define periodo = '&periodo' SPOOL C:\Users\gtorrens\Documents\GLAudit_2014_2015\gl_audit-&&periodo..txt set termout off set echo off set verify off set feedback off set serveroutput off set head off set pagesize 0 set linesize 608 set timing off SELECT /*+ INDEX(GCC GL_CODE_COMBINATIONS_U1) INDEX(GJB GL_JE_BATCHES_U1) INDEX(FUS FND_USER_U1) INDEX(GJL GL_JE_LINES_U1)*/ rpad(SUBSTR (gcc.segment1, 1, 2),2,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (emp.de_sgm, 1, 70), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),70,' ') || rpad(SUBSTR (gjs.user_je_source_name, 1, 20),20,' ') || lpad(DECODE (NVL (gjl.entered_dr, 0) , 0, DECODE (NVL (gjl.accounted_dr, 0), 0, 'C', 'D') , 'D'),1,' ') || lpad(TO_CHAR (gjh.default_effective_date, 'DD-MON-YY'),9,' ') || lpad(TO_CHAR (gjh.posted_date, 'DD-MON-YY'),9,' ') || lpad(SUBSTR (gcc.segment2, 1, 9),9,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (cta.de_sgm, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || rpad(SUBSTR (cta.tp_sgm, 1, 10),10,' ') || lpad(TO_CHAR (NVL (gjl.accounted_dr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(TO_CHAR (NVL (gjl.accounted_cr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(SUBSTR (gjh.currency_code, 1, 5),5,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (REPLACE (SUBSTR (gjl.description, 1, 150), '|', '@'), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),150,' ') || rpad(gjb.last_updated_by,15,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (gjb.name, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || lpad(SUBSTR (fus.user_name, 1, 30),30, ' ') linha_utl FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 -- p_nr_livro AND gjh.actual_flag = 'A' AND gjh.period_name = upper('&&periodo') -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by -- AND rownum<1001 ; SELECT /*+ INDEX(GCC GL_CODE_COMBINATIONS_U1) INDEX(GJB GL_JE_BATCHES_U1) INDEX(FUS FND_USER_U1) INDEX(GJL GL_JE_LINES_U1)*/ (lpad(TO_CHAR (NVL (SUM(gjl.accounted_dr), 0),'999G999G999G999G999G990D00'),268,' ')) /*VL_DEBITO*/ ||' '||(lpad(TO_CHAR (NVL (SUM(gjl.accounted_cr), 0),'999G999G999G999G999G990D00'),37 ,' ')) /*VL_CREDITO*/ ||' '|| TO_CHAR (COUNT (*)) soma /*qtd_reg*/ FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 AND gjh.actual_flag = 'A' AND gjh.period_name = '&&periodo' -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by -- and rownum<1001; spool off;
I did something like that, when I turned it in a procedure...
create or replace PROCEDURE XXTVGAUDIT (o_return_err OUT VARCHAR2 , o_return_code OUT NUMBER , p_period_name IN VARCHAR2 , p_nr_livro IN NUMBER) IS CURSOR c1 IS SELECT rpad(SUBSTR (gcc.segment1, 1, 2),2,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (emp.de_sgm, 1, 70), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),70,' ') || rpad(SUBSTR (gjs.user_je_source_name, 1, 20),20,' ') || lpad(DECODE (NVL (gjl.entered_dr, 0) , 0, DECODE (NVL (gjl.accounted_dr, 0), 0, 'C', 'D') , 'D'),1,' ') || lpad(TO_CHAR (gjh.default_effective_date, 'DD-MON-YY'),9,' ') || lpad(TO_CHAR (gjh.posted_date, 'DD-MON-YY'),9,' ') || lpad(SUBSTR (gcc.segment2, 1, 9),9,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (cta.de_sgm, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || rpad(SUBSTR (cta.tp_sgm, 1, 10),10,' ') || lpad(TO_CHAR (NVL (gjl.accounted_dr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(TO_CHAR (NVL (gjl.accounted_cr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(SUBSTR (gjh.currency_code, 1, 5),5,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (REPLACE (SUBSTR (gjl.description, 1, 150), '|', '@'), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),150,' ') || rpad(gjb.last_updated_by,15,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (gjb.name, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || lpad(SUBSTR (fus.user_name, 1, 30),30, ' ') linha_utl FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 -- p_nr_livro AND gjh.actual_flag = 'A' AND gjh.period_name = upper('null') -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by AND rownum<1001; CURSOR c2 IS SELECT /*+ INDEX(GCC GL_CODE_COMBINATIONS_U1) INDEX(GJB GL_JE_BATCHES_U1) INDEX(FUS FND_USER_U1) INDEX(GJL GL_JE_LINES_U1)*/ (lpad(TO_CHAR (NVL (SUM(gjl.accounted_dr), 0),'999G999G999G999G999G990D00'),268,' ')) /*VL_DEBITO*/ ||' '||(lpad(TO_CHAR (NVL (SUM(gjl.accounted_cr), 0),'999G999G999G999G999G990D00'),37 ,' ')) /*VL_CREDITO*/ ||' '|| TO_CHAR (COUNT (*)) soma /*qtd_reg*/ FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 AND gjh.actual_flag = 'A' AND gjh.period_name = 'null' -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by and rownum<1001; w_ind_erro NUMBER; w_erro_geral EXCEPTION; w_msg_erro VARCHAR2 (240); w_linha VARCHAR2 (1000); w_nm_arq_utl UTL_FILE.file_type; w_nm_arq_utl_r UTL_FILE.file_type; w_nm_dir_dad VARCHAR2 (80); --w_nm_int_dir_dad VARCHAR2 (80); --w_nm_arq_dad VARCHAR2 (80); w_nm_arq_dad_aux VARCHAR2 (80); w_nm_arq_dad_qtd VARCHAR2 (80); P_DIRETORIO VARCHAR2(200) := '/tmp'; P_ARQUIVO VARCHAR2(200) := 'Desliga_mainframe_indices_economicos.csv'; W_DIRETORIO VARCHAR2(50) := P_DIRETORIO; W_ARQUIVO VARCHAR2(50) := P_ARQUIVO; w_qtd_reg NUMBER; -- ----------------------------------------------- PROCEDURE pr_abre_txt --(p_nm_dir IN VARCHAR2, p_nm_arq IN VARCHAR2, p_tp_abertura IN VARCHAR2) IS BEGIN w_nm_arq_utl := UTL_FILE.fopen ( W_DIRETORIO, W_ARQUIVO, 'W'); EXCEPTION WHEN UTL_FILE.invalid_path THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Caminho Invalido'); WHEN UTL_FILE.invalid_mode THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Modo Invalido'); WHEN UTL_FILE.invalid_filehandle THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Nome Arquivo Invalido'); WHEN UTL_FILE.invalid_operation THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Operacao Invalida'); WHEN UTL_FILE.read_error THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Erro Leitura'); WHEN UTL_FILE.write_error THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Erro Escrita'); WHEN UTL_FILE.internal_error THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Erro Interno'); END pr_abre_txt; -- ------------------------------------------------------ PROCEDURE pr_grava_txt (p_de_msg IN VARCHAR2) IS BEGIN UTL_FILE.put_line (w_nm_arq_utl, p_de_msg); EXCEPTION WHEN UTL_FILE.invalid_path THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Caminho Invalido'); WHEN UTL_FILE.invalid_mode THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Modo Invalido'); WHEN UTL_FILE.invalid_filehandle THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Nome Arquivo Invalido'); WHEN UTL_FILE.invalid_operation THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Operacao Invalida'); WHEN UTL_FILE.read_error THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Erro Leitura'); WHEN UTL_FILE.write_error THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Erro Escrita'); WHEN UTL_FILE.internal_error THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Erro Interno'); END pr_grava_txt; -- ------------------------------------------------------ PROCEDURE pr_fecha_txt IS BEGIN UTL_FILE.fclose (w_nm_arq_utl); EXCEPTION WHEN OTHERS THEN raise_application_error (-20501, 'ERRO NO FECHAMENTO ARQUIVO DE LOG'); END pr_fecha_txt; -- -------------------------------------------------------------------------------------------------- BEGIN --PR_ABRE_TXT (W_NM_DIR_SQL, W_NM_ARQ_DAD ,'w'); pr_abre_txt ( W_DIRETORIO, W_ARQUIVO, 'w'); w_nm_arq_utl_r := UTL_FILE.fopen ( w_nm_arq_utl, w_nm_arq_dad_qtd, 'w'); -- w_qtd_reg := 0; /* FOR cur2 IN c2 LOOP w_linha := cur2.soma; pr_grava_txt (w_linha); w_qtd_reg := w_qtd_reg + 1; --IF MOD (w_qtd_reg, 100000) = 0 THEN UTL_FILE.put_line (w_nm_arq_utl_r, 'Qtd. de linhas geradas = ' w_qtd_reg w_linha ); --END IF; END LOOP; -- UTL_FILE.put_line (w_nm_arq_utl_r, 'Final de Qtd. de linhas geradas = ' || w_qtd_reg); UTL_FILE.fclose (w_nm_arq_utl_r); --*/ -- -------------------------------------------------------------------------------------------------- pr_fecha_txt; -- -- -------------------------------------------------------------------------------------------------- EXCEPTION WHEN w_erro_geral THEN raise_application_error (-20501, 'Parada por motivo de Erros na execução.'); -- END XXTVGAUDIT;
Oracle Directory object is not OS directory. It is a definition saying Oracle which OS directory to use. When Oracle run
v_file: = UTL_FILE.fopen ('TMP_DIR', 'output.log', 'W');
He goes to the data dictionary and:
1. it checks the Oracle directory object exists tmp_dir
2. If the Oracle user is allowed to create files on this object directory Oracle (see WRITING privilege granted I posted)
3 reflects the object of Oracle TMP_DIR for OS directory/tmp directory
4 creates the file /tmp/output.og owned by OS oracle user with the appropriate permissions on the database server (assuming that OS directory Oracle Directory object points on exists and oracle OS user can create files there).
Remember, most of the time the OS Oracle user created files permissions are such that the 'others' can even read.
SY.
-
marking of the words in a .txt file
Hi all
We have looked everywhere on the internet for a script we can use/buy. But can not find it anywhere.
We have a fairly large document and an external list of words in a .txt file. This list contains the words that should be in the index at the end of the document.
Instead of a few hundred words filling and by linking them to the hand, it would be great if there is a script that can handle this.
We watched in Indexmatic2 (http://www.indiscripts.com/post/2011/07/indexmatic-2-public-release-and-user-s-guide ), but this script generates its own list of index and creates no links to the original words in the document.
We found a script that can create indexes links between words colored in the document.
Then someone knows if there is a script floating around that can load an external .txt wordlist and either color or add a character style to words in a document?
Or even a script that does what you need in 1 GB?
Thank you
Thedesmodus,
There is a script by Martin Fischer at www.hilfdirselbst.ch (swizz-German site) that might meet your needs. You can download it if you choose to be a premium member, which requires a small fee. It is written for InDesign CS3 but it should work with CS4 or CS5. I tested it with a small list of words, and it worked very well with InDesign CS5.
If you prefer a Google translation:
Uwe
Maybe you are looking for
-
Audio problem with Skype on the helmet
Hello. I have a sound problem with Skype on my helmet, when I talk to my friend I can hear him on my helmet, although the rest of the sound on my speakers. How change that so I could hear any sound on my headset?
-
Satellite L10 - problems with my Wi - Fi button
Hi guys. I'm new to this forum so please be gentle with me. My Satellite L10 cut last week and I have problems getting the wireless on again.I was on the button since but without success. Everyone knows that before and someone has suggestions or cons
-
Search drivers XP for Satellite A210-198 and/or P200D-128
Hello I'm looking at the two models listed in the title and would be looking to buy one of these but want to load XP. I looked on the Toshiba site and drivers for XP are not there. Are they available anywhere? Hope you can help!
-
Single function key commands Officejet
Overtime some printers have not been updated for the latest operating systems. When this happens, sometimes the functions of the software to order a printer to perform tasks, such as print a self-test page or clean the print head, have been lost. Ho
-
workout app locked in Apple Watch
I accidentally locked my watch while using the application of the workout on the watch, but when I try to unlock it does no good. I press the screen and get the option to unlock, but by pushing the release button does nothing.