Problem in creating txt report.

Hi all

I need to create the report, if the document with OPS, $$$, T.K., 000 etc...

GOLD,

don't create the report "no found error.

My script works fine, but the problem is creating the report not as user friendly

The coding is below:

myDoc = app.activeDocument;

FPOArray = new Array
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findChangeTextOptions.wholeWord = true

app.findTextPreferences.findWhat = "fpo"
var myFound = myDoc.findText()
for (f = 0; f < myFound.length; f++) {
    var myFindFPOPage = myFound[f].parentTextFrames[0].parentPage.name
    FPOArray.push(myFindFPOPage)
}

$$Array = new Array
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

app.findGrepPreferences.findWhat = "\\$\\$+"
var myFound = myDoc.findGrep()
for (s = 0; s < myFound.length; s++) {
    var myFind$$$Page = myFound[s].parentTextFrames[0].parentPage.name
    $$Array.push(myFind$$$Page)

}

var myTextFile = File("~/Desktop/abcde.txt")
myTextFile.open("w")
if(myFound.length>0)
{
    myTextFile.write("FPO: " + FPOArray + "\n\n"  + "$$ Page Number: " + $$Array + "\n\n")           //Error this line only please help
    }
else
{
    myTextFile.write("No Error")
    }

Could someone please help for my application.

Thanks in advance

Beginner_X

change of u

myTextFile.open("e") and than

if(myFound.length>0)
{
    myTextFile.write("FPO: " + FPOArray + "\n\n" )           //Error this line only please help
    }

if(myFound1.length>0)
{
    myTextFile.write(
"$$ Page Number: " + $$Array + "\n\n")           //Error this line only please help
    }

else
{
    myTextFile.write("No Error")
    }

Tags: InDesign

Similar Questions

  • Problem when creating a report with a date of schduled

    When I tried to create a report with a schedule (any option except now) I get the error 'Date of the first report occur must be after or equal to the current date", unless I have use a date of 01-10-2012 or later in the first report occurs on the field.  Current date is 2012-08-23.

    Let me know if you can recreate it and if or when there is a fix.

    Hi Tim,.

    We have fixed the problem now. Could you please check that you are able to schedule a report now with start date of today?

    Thank you

    The OnPlus team

  • problem with creating a report in websheet applications

    Hello

    the menu Create (runtime) does not show the entrance to the new report, or it appears in Control Panel.

    under properties websheet allow SQL and PL/SQL is set to Yes, adding suggested objects also works very well

    Apex 4.2.4

    Oracle 11 g 2

    64-bit Windows 7

    any ideas?

    KR

    Martin

    can be closed

    found, had in turn activate SQL and PL/SQL Access in Websheets at the instance level

  • How to create the report of this style?

    Hello

    I have a problem when creat a report using obiee, this is a monthly report, the layout like calendar,.

    There is a quick baseed on the month, if I choose 201109, the report will be poster of daily sales and the number of customers in September.

    Every day have the sale and every day must be listed, first line display name of 7 days, second row shows sales and number of customer information,

    third row display name of 7 days, and all the following steps.

    1 sep | 2 sep | 3 sep | 4 sep | 5 sep | 6 sep | 7 sep
    Sales: sales: 10 sales: 10 sales: 10 sales: 10 sales: 10 sales 10,10
    : No.10 No.: No. 10: No. 10: No. 10: No. 10: 10 no: 10

    8 sep | 9 sep | 10 sep | 11 sep | 12 sep | 13 sep | 14 sep
    Sales: sales: 10 sales: 10 sales: 10 sales: 10 sales: 10 sales 10,10
    : No.10 No.: No. 10: No. 10: No. 10: No. 10: 10 no: 10

    15 sep | 16 sep | 17 sep | 18 sep | 19 sep | 20 sep | 21 sep
    Sales: sales: 10 sales: 10 sales: 10 sales: 10 sales: 10 sales 10,10
    : No.10 No.: No. 10: No. 10: No. 10: No. 10: 10 no: 10

    22 sep | 23 sep | 24 sep | 25 sep | 26 sep | 27 sep | 28 sep
    Sales: sales: 10 sales: 10 sales: 10 sales: 10 sales: 10 sales 10,10
    : No.10 No.: No. 10: No. 10: No. 10: No. 10: 10 no: 10

    29 sep | 30 sep
    Sales: sales 10: 10
    No: 10 no: 10

    Thank you! waiting for your response.

    So you're a user same as below:
    How to view the report by using the style of calendar in obiee

    Follow my instructions. Also, give a look at this http://bischool.wordpress.com/2010/10/22/calendar-view-in-obiee-and-applications/

    You can have dates instead of the name of the day, but you must ensure that your definition is very clear in your time dimension i.e. each week week 7 days. You table looks like his week to jump and you have each month as 30.31 or 28 days...

    Come and play and you're done... hope its helpful

  • Hello! I'm having a problem of creating folders.

    Hello! I'm having a problem of creating folders. I have a right click, go again, but nowhere in this box, it says file. I create everything except folders. (shortcut, bitmap, contact, journal paper, document text, compressed (zipped) folder and towel.) What the guys or girls you recommend?

    You have installed chrome? It's looking like a recent update of Chrome is responsible. If you want to remove Chrome and restart to test, please do. To fix it without removing chrome, here are your options.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
     
    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     
     
  • How to create a report in this style

    Hello

    I faced a problem with the display of reports in the dashboard.

    There is a prompt of the year, if I choose to 2010, the report will show sales of three years, namely 2009,2010,2011, given three years.

    as:

    2009 2010 2011 YEAR
    SALES 100 200 300

    and if I choose to 2009, it will display 2008,2009,2010, given three years.

    How can I achieve this requirement?

    waiting for your help, thank you!

    Here you go... Just blindly follow these steps and you're done.
    (1) create a command prompt of the year with variable presentation as pv_year

    (2) create a report saying report Mid year with selected 3 times column
    -Put a filter of pv_year presentation on the first column of the year with a default variable tell @{pv_year} {2008}
    -Rename the second time column say YEAR + 1 and change the fx to CAST (TIME_DIM. ("' YEAR ' AS INT) + 1
    -Rename the second time column say YEAR-1 and change the fx to CAST (TIME_DIM. ("' YEAR ' AS INT)-1
    Now when you run the report environment, this will give you a records whose value as 2008-2009-2007

    (3) create your main report with criteria such as pass year and measure
    -Change the fx for column year as CAST (TIME_DIM. ("' YEAR ' AS INT)
    -Now to put a filter on the year column with filter based on the results of another application and select them:
    Relationship = superior or equal to one
    Registered request = browse mi report
    Use the values of column = YEAR-1
    -Again, put a filter on the year column with filter based on the results of another application and select them:
    Relationship = less than or equal to one
    Registered request report Mid = browse (incase it does not select and select any other application first, then report Mid)
    Use the values of column = YEAR + 1

    This will select year > = 2007 AND year< =="" 2009.="" hence="" the="" results="" will="" be="" for="" year="">

    This will 100% work...
    http://i56.Tinypic.com/wqosgw.jpg

    See you soon

  • problem with showing the report forms

    Hello
    Today, I have another problem :)

    I fix this text and it's simpler

    I have run reports of froms and I use RUN_REPORTS_OBJECT_PROC

    If I use standard report_id in this procedure, then I get

    WEB. SHOW_DOCUMENT ('http://oracle:8889 /'| reports_servlet |) ' /getjobid' | vjob_id |'? Server =' | report_server_name, "_blank");

    If the report is not any parameter is ok and this work but if I put some then I get page with witch element, I set value (parameter witch I want) then when I put send query I get error REP-50134

    But
    If I use
    WEB. SHOW_DOCUMENT ('http://oracle:8889 /'| reports_servlet |'? server = raportserv & report=c%3A\raporty\mod.jsp & destype = CACHE & desformat = HTMLCSS & userid = SCOTT % 2FTIGER % 40SZD & paramform = "Yes);

    I can open reports with the setting or not :)
    Where is the error in how hidden values see report_object?

    concerning

    Published by: user515960 on 2010-07-06 08:00

    Hello

    If you want to use parameters, then you need to create the report with parameters and your query owes me something like that.
    example: -.

    select ename,empno,sal.....from emp
    where empno=:p_no.............so here :p_no is parameter.now how you will use this in form with that code which is provide you in u r previos thread.
    

    something like that.

    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    BEGIN
    
    plid := Get_parameter_List('tmp'); 
    
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    add_parameter(plid,'p_no',text_parameter,to_char(:emp.empno));---------------here you have to add your block name and item name and also we add parameter(P_no) which is created in report builder with the above query.
    
    Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
    
    repid := FIND_REPORT_OBJECT('REPORT6');-----------------when you create report by using report nodes in form builder so you hav to Presss F4 to go to Property and there you have to set the report server name,desformat which is PDF and report name which is Report6 and also there in property u have to give the report path.
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep); 
    
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP; 
    
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://computer name/IP:8889/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
    '||'server=report_server_name' || '¶mform=no','_blank'); 
    
    END;
    

    Note:-you need to start the report server before displaying the report.

  • Problems with downloading the reports BI to Excel in Office 2007

    Hello
    I created reports using the plugin BI Publisher for Word 2007 and deployed through the Apex. Users with Office 2003 is installed get download the file without any compatibility issues. These users on Office 2007 get a warning as follows:

    'The file you are trying to open.' filename.xls, is in a different format than specified by the file extension. Check that the file is not corrupted and precedes from a trusted source before you open the file. Do you want to open it now? "

    The file will open and save, it's all just annoying to get this message every time. There are no problems when downloading the report to other formats.

    It is a known problem... It is a "Fix" of Microsoft, to ensure that people know that the file is NOT a style true Blue XLS file... My office just to go through it and it is adjustable, but involves a registry setting that they do NOT HAVE want to impliment...

    Please see the attached url:

    http://Stephen.paytonplace.us/archives/74

    Thank you

    Tony Miller
    Webster, TX

  • Need advice on how to create the report

    I don't know how to do this, so I ask for advice from the gods apex...

    Here is the question, I have two tables I need to combine the info from. not a problem in his car. I can do it. but here's the question. in table A, I have some data such as title, theids, disc_id, etc... Table B contains fullname, theid, emplid

    now in the table A column "theids" is filled with apex as a multi select list. the values in the column is therefore something like 48; 3; 88

    He got these identification numbers of the Table B (popup lov) query that returns theid of the one of the person.

    now, I need to create a report that will be used in an excel download and what they want is a line by disc_id and they want the most useful "cost" in the field where to run the "theids." It is instead of:

    disc_id title theids
    101 the 48 test; 3; 88

    they want:

    disc_id title Theids
    101 N33456, N3457, try N43562

    so I'm a bit stuck, I can understand how to write a sql using instr to get something like this:
    101 N33456 of test
    101 N3457 of test
    etc.

    but this isn't what they want. so I think I need to create a package to do this and some sort of return values. the problem is that I can't figure out how I can replace the 48; 3; 88 to N33456, N3457, N43562

    I'm still new to this kind of things pl/sql and apex sorry if this appears to be an obvious answer.

    If you have a look at this example:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:138

    You'll see there

    SELECT empno, ename, job, mgr, sal
      FROM emp
     WHERE INSTR(':'||:p138_select_empno||':', ':'||empno||':') > 0
    

    and

    p138_select_empno is a multiple selection list displaying the names of the employees and containing the string of nosm as 7888; 8900; 3499.

    This info is enough to get to a function like this:

    CREATE OR REPLACE FUNCTION get_string (p_string IN VARCHAR2)
       RETURN VARCHAR2
    IS
       v_string   VARCHAR2 (4000);
    BEGIN
       FOR c IN (SELECT ename
                   FROM emp
                  WHERE INSTR (':' || p_string || ':',
                               ':' || empno || ':'
                              ) > 0)
       LOOP
          v_string := v_string || ', ' || c.ename;
       END LOOP;
    
       v_string := LTRIM (v_string, ', ');
       RETURN v_string;
    END;
    

    and use this function in a report like this:

    SELECT get_string (:p138_select_empno)
      FROM DUAL
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • I get this email - theory of Apple - say my Id is in problems - where do I report it?

    I get this email - theory of Apple - say my ID Apple is in problems - where do I report it? I'm sure it's fishy - but I must say that it looks real

    Where can I repot, I'm in trouble - I haven't checked

    Thank you

    Dear customer,

    We inform you that we have detected unusual activity on your account during the past 24 hours, you were logged of diffirent locations which is marked as suspect.
    It is now necessary to perform verification steps to us now that you are the owner of this Apple account.
    Please click on the link below and follow the steps of verification.

    Verify your account

    Customer service Apple
    Copyright Apple, Inc. 2016. All rights reserved.

    This is a phishing attempt. Do not respond. Shall not disclose any personal or financial information. You can use the address below to send the suspicious message to Apple. [email protected]

    The link below has information to identify fraudulent emails.

    http://support.Apple.com/kb/HT4933

  • When Microsoft will fix the problem they created with Skype.

    It's been more than 24 hours now that Skype has worked on my pc. When Microsoft will have their sh * t together and rectify the problem, they created with this program. Now it becomes ridiculous and smells of incompetence!

    Hello

    Be sure to contact the Skype Support like this might be a known issue and they might have the solution.
    There is also information and on the Skype Forums.

    There is an alert to update Skype system on the Skype homepage
    http://www.Skype.com/intl/en-us/home?intcmp=Alogo

    Skype - Support
    https://support.Skype.com/en-us/

    Skype - Forums
    http://Forum.Skype.com/

    It's the latest Skype Heartbeat information in date 27/05/2011:

    Skype Heartbeat - [MAJ] problems connecting to Skype and calls for a small number of users
    http://heartbeat.Skype.com/2011/05/problems_signing_into_skype_an.html

    I hope this helps.

  • Problem with Top SQLs report

    Hello

    I have a big problem with Top SQLs reports, when I generate a report of high SQLs, SQL, the value text is not end, I know that there is a "The SQL text size" setting on the properties of the agent (this configuration is also on the collections setting ' Ta maximum size in characters of the short collects text of the SQL statement is ") on the two options , I've incremented the value of 256 (default) 1500, but when I generate the Top SQLs postpones continue it problem, once the changes I restarted the agent but the problem persists, I generate the report on the different formats, but result is the same, could you help me please.

    Thank you.

    Best regards.

    I see this in support KB article https://support.software.dell.com/kb/109536

    "

    • Title

      SQL in DB2 Top instructions are truncated in the delivered report of Top SQL

    • Description

      SQL in DB2 Top instructions are truncated in the delivered report of Top SQL

    • Resolution

    • Resolution A DDB-3673 request improvement with Support software Dell to show the full text of SQL high in the report Top SQL for DB2.

      Workaround At this point you should be able to make a custom report by cloning the Top SQL existing and then customizing report. »

    I know that this is not the solution, more of an explanation and guidance on how to solve this problem by using customizations.

    Golan

  • Create a report of performance... not so easy simple :-)

    Hello
    I m trying to create a performance report monthly with a very simple page layout:

    • CPU utilization for the last month
    • Use of memory for the past month
    • Use of the network for a month
    • Use (disk i/o) for the past month

    I would like to generate this report each month and then sent it by mail to the owner of this technical environment.

    This medium contains 10 servers that are distributed on our virtual infrastructure. How can I (Step by Step) create this report? I created a dashboard customized these 10 servers, but then I Don t understand how to create this report.

    The best way would be to create a report with the above data model so that I could use is both environments.

    Hello heather,
    I don't know how you built your custom dashboard sense if the page requires a context to fill then you should be able to build a report out of your dashboard by selecting create report option on the general tab in the Actions pane and then choosing the option to create a report based on the current dashboard. However this option will be grayed out if your dashboard needs no background fill.
    The other option is to create a Service with these 10 servers and create a customized report based on that service.
    Concerning

  • Create a report - custom time

    Hello
    Went down a demo, I've created a report for each of our groups showing "memory usage" and "CPU usage" which works very well. (simple start is my motorcycle!)
    If we had to, but the product I need to be able to do the following (to monitor weekly usage and foreground models)
    I need this report to run, but only for hours during the Monday to Friday - so I would get a report at the end of the week showing these measures from 9 to 5 Monday to Friday. (we have a high utilization of the processor and memory outside these hours for short periods where Mcafee scans - but I want to include these numbers)
    I don't see a way to do this?, I know I could shecdule a daily report at 16:00 for the past 8 hours, but then I'd end up with 5 different reports?

    Try the training site and see if it helps you steer in the right direction.
    www.Vizioncore.com/.../Training

  • I can't register names and create playlist appear windows media player acountered a problem when creating or saving the playlist

    appear windows media player acountered a problem when creating or saving the playlist

    To the WMP library, please click on organize and select manage libraries - music . What places are? If there is no available location, remove them and also make sure that a default save location is set. Do the same for the other libraries (videos, pictures, and Recorded TV).

    If this does not help, close WMP, open Windows Explorer, right-click the music library, select Properties and click on restore by default . After that, make sure that a backup location is defined (as indicated by a check mark).

    Tim Baets
    http://www.BM-productions.TK

Maybe you are looking for