Correct syntax? - FindChangeByList

CS4, Mac OSX 10.5.8
Hi
I've been wrestling my way through a personalised FindChangeByList.
Ive managed to achieve most of what I'd like to, but I'm unable to incorporate a couple of items that I have been able to format using GREP Find/Change.
I receive a Word file, to format in InDesign which has 'locally' styled bullleted and numbered lists.
I can find and replace both of these using GREP Find/Change by using "+ list: bulleted" and + list: numbered" in the "Find Format:" but have been unable to work out how to specify these in the FindChangeByList....
Could someone point me in the right direction please?
below is an example of part of my  'FindChangeByList', acheived with help from this forum, but I'm not skillful enough to identify/describe the above.
grep    {findWhat:"(.+)", appliedParagraphStyle: app.activeDocument.paragraphStyles.item("Normal") }    {changeTo:"$1", appliedParagraphStyle: app.activeDocument.paragraphStyleGroups.item("Main text").paragraphStyles.item("Body text 10/12 SwissLtBt - Standard") }    {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true}
MTIA Steve

Thanks guys,
L. - I'd forgotten about that script/function - was able to pick out what I needed to great effect.
Kaysan - my lack of knowledge let me down with your string I'm afraid - it told me that what I was asking for was 'undefined' but I guess I didn't apply it correctly. The method above gave me a number for bullets (ListType:1280598644)
grep    {bulletsAndNumberingListType:1280598644}    {appliedParagraphStyle: app.activeDocument.paragraphStyleGroups.item("Lists").paragraphStyles.item("Bullets 10/12") }    {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true}
Steve

Similar Messages

  • Is this the correct syntax to submit a job using DBMS_JOB.SUBMIT?

    Hello,
    Is this the correct syntax to submit a job?
    DECLARE
    v_job_number NUMBER;
    v_job_command VARCHAR2(1000) := 'PREPARE_ORACLE_TEXT_SEARCH;';
    v_interval VARCHAR2(1000) := 'trunc(SYSDATE)+1+7/24';
    BEGIN
    DBMS_JOB.SUBMIT(v_job_number, v_job_command, sysdate, v_interval, false);
    COMMIT;
    END;
    Thanks
    Doug

    DECLARE
    v_job_number NUMBER;
    v_job_command VARCHAR2(1000) := 'BEGIN
    PREPARE_ORACLE_TEXT_SEARCH; END;';
    v_interval VARCHAR2(1000) :=
    'trunc(SYSDATE)+1+7/24';
    BEGIN
    DBMS_JOB.SUBMIT(v_job_number, v_job_command, sysdate,
    v_interval, false);
    COMMIT;
    END;
    About your error:
    PLS-00201: identifier 'PREPARE_ORACLE_TEXT_SEARCH'
    must be declared
    ORA-06550: line 1, column 96:
    PL/SQL: Statement ignored
    The problem is that the job cannot find the procedure
    (maybe own by an other user). The user who run the
    job is not the same as the owner of the package.
    Bye, AronYou forget the semicolon after END.
    But we don't need here begin - end Block.
    So it's OK.
    v_job_command VARCHAR2(1000) := 'PREPARE_ORACLE_TEXT_SEARCH;'[b];
    As you right mentioned, it is probably problem with owner or typo in the name of procedure.
    Regards
    Dmytro Dekhtyaryuk
    Message was edited by:
    dekhtyar

  • How do you correct syntax errors in OSX 10.9.3?

    How do you correct syntax errors in OSX 10.9.3?
    Hal Frederick

    Hal Frederick wrote:
    I amm double-clicking on the Disk Utility icon in the Utilities Folder.
    In that case, I'm with Tom in wanting to see a screen shot ot the error message. "syntax error" is a most unusual thing for Disk Utility to say in the GUI environment.

  • Correct syntax to make a field required

    what is the correct syntax to make a field required
    i assumed it would be like setReadOnly(true); but its not.
    i searched the forum and got only 1 hit that shows leaf.setRequired(UIConstants.REQUIRED_YES); i tried this it didnt work
    i am doing this.
    OAMessageTextInputBean po = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("PurchaseOrder") ;
    po.setRequired(true);
    couldnt find nothing in the manual neither. wheres the mistake in the example.
    cheers
    Edited by: s-man on Oct 15, 2008 1:55 PM

    i did as suggested multiple ways it runs but when create button on page 1 is hit to go to page 2 i get the error page w/ the same error below the code
    any other suggestions or is a problem sticking out.
    i tried these options
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    OAMessageTextInputBean et = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EtChoice") ;
    et.setRequired("true");
    Or
    OAMessageTextInputBean et = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EtChoice") ;
    et.setRequired("yes");
    Or
    OAMessageTextInputBean et = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EtChoice") ;
    et.setRequired("no");
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:544)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.ClassCastException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processRequest(manageOrgCO.java:50)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:518)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processRequest(manageOrgCO.java:50)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:518)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • Cannot find correct syntax for paint()

    Hi everyone,
    I am supposed to create an applet that has a textfield component and a button comp. the user is prompted to type in a drawing command press the "go" button and the program executes. here is an exampls of what the text should read like..FD 50, turn SW, BK 50, colour red.
    The FD is forward draw and the BK is backward. my problem is I am not using the correct syntax conventions when creating xnew and ynew coordinates. this might not be the best algorithm either, but with limited examples and resources it was the best I could come up with, any other suggestions would be much appreciated.
    Here is the problem code.
    public void init()
                   extraPanel.setBackground (Color.blue);
                   extraPanel.setLayout(new FlowLayout());//resizable panel
                   extraPanel.setBackground(Color.red);
                   extraPanel.add(button); button.addActionListener(this);
                   extraPanel.add(Mylabel);
                   Mylabel.setBackground(Color.white);
                   extraPanel.add(tf);
                   tf.setBackground(Color.green);
                   add(extraPanel);
                    //create a method to use the cursor to draw
                    public void paint(Graphics page)
                       //declare the coordinates and variables
                       int x;
                       int y;
                       int xcurrent;
                       int ycurrent;
                       int xnew;
                       int ynew;
                       String turn;
                       boolean FD;
                       String sData = new String();
                       //create an array object of commands
                       //create a bufferedReader to read in data
                       BufferedReader stdin = new BufferedReader(new
                                              InputStreamReader(System.in));
                       //create an object of commands[]and set its size
                       comm = new Commands[20];                      
                       //create a String Tokenizer to read the data in from the tf
                       StringTokenizer tok = new StringTokenizer(sData, ",");
                       //read the data in
                       for(int i = 0; i < comm.length; i++)
                          sData = stdin.readLine();
                          comm[i] = new Commands(tok.nextToken(),Integer.parseInt(tok.nextToken()),
                                    tok.nextToken(),Integer.parseInt(tok.nextToken()));
                          //use x and y coordinates to draw the image
                          xnew =  new (Commands(turn.x)* FD * dist + xcurrent + colour);
                          ynew =  new (Commands(turn.y)* FD * dist + ycurrent + colour);
                          repaint(xnew + ynew);
                          //set the focus on the new lines
                          xcurrent = xnew;
                          ycurrent = ynew;
    }//end of logo class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Maybe I'm being dense but I don't see a question in here anywhere. Unless it the xnew ynew thing. You can't use new to create an int, an Integer object yes, but not int so get rid of the "new"s. Next look at the methods in http://java.sun.com/products/jdk/1.2/docs/api/java/awt/Graphics.html
    And get rid of all of that BufferedReader stuff.
    you applet should have something like:
    TextField commands = new TextField("",20);
    Button btn = new Button("Draw It");
    String cmds = null;
    // add the button and text field to the applet
    // add an action listener for the button
    // in the ActionPerformed method do somthing like
    cmds = commands.getText();
    repaint();
    // in the paint method parse the cmds string and do the drawing via the Graphics class's methods
    That you give a good idea of where to go now.

  • Can't figure out the correct syntax for this select statement

    Hello,
    The following statement works great and gives the desired results:
    prompt
    prompt Using WITH t
    prompt
    with t as
       select a.proj_id,
              a.proj_start,
              a.proj_end,
              case when (
                         select min(a.proj_start)
                           from v b
                          where (a.proj_start  = b.proj_end)
                            and (a.proj_id    != b.proj_id)
                        is not null then 0 else 1
              end as flag
         from v a
        order by a.proj_start
    select proj_id,
           proj_start,
           proj_end,
           flag,
           -- the following select statement is what I am having a hard time
           -- "duplicating" without using the WITH clause
            select sum(t2.flag)
              from t t2
             where t2.proj_end <= t.proj_end
           ) s
      from t;As an academic exercise I wanted to rewrite the above statement without using the WITH clause, I tried this (among dozens of other tries - I've hit a mental block and can't figure it out):
    prompt
    prompt without with
    prompt
    select c.proj_id,
           c.proj_start,
           c.proj_end,
           c.flag,
           -- This is what I've tried as the equivalent statement but, it is
           -- syntactically incorrect.  What's the correct syntax for what this
           -- statement is intended ?
            select sum(t2.flag)
              from c t2
             where t2.proj_end <= c.proj_end
           ) as proj_grp
      from (
            select a.proj_id,
                   a.proj_start,
                   a.proj_end,
                   case when (
                              select min(a.proj_start)
                                from v b
                               where (a.proj_start  = b.proj_end)
                                 and (a.proj_id    != b.proj_id)
                             is not null then 0 else 1
                   end as flag
              from v a
             order by a.proj_start
           ) c;Thank you for helping, much appreciated.
    John.
    PS: The DDL for the table v used by the above statements is:
    drop table v;
    create table v (
    proj_id         number,
    proj_start      date,
    proj_end        date
    insert into v values
           ( 1, to_date('01-JAN-2005', 'dd-mon-yyyy'),
                to_date('02-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 2, to_date('02-JAN-2005', 'dd-mon-yyyy'),
                to_date('03-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 3, to_date('03-JAN-2005', 'dd-mon-yyyy'),
                to_date('04-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 4, to_date('04-JAN-2005', 'dd-mon-yyyy'),
                to_date('05-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 5, to_date('06-JAN-2005', 'dd-mon-yyyy'),
                to_date('07-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 6, to_date('16-JAN-2005', 'dd-mon-yyyy'),
                to_date('17-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 7, to_date('17-JAN-2005', 'dd-mon-yyyy'),
                to_date('18-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 8, to_date('18-JAN-2005', 'dd-mon-yyyy'),
                to_date('19-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 9, to_date('19-JAN-2005', 'dd-mon-yyyy'),
                to_date('20-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (10, to_date('21-JAN-2005', 'dd-mon-yyyy'),
                to_date('22-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (11, to_date('26-JAN-2005', 'dd-mon-yyyy'),
                to_date('27-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (12, to_date('27-JAN-2005', 'dd-mon-yyyy'),
                to_date('28-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (13, to_date('28-JAN-2005', 'dd-mon-yyyy'),
                to_date('29-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (14, to_date('29-JAN-2005', 'dd-mon-yyyy'),
                to_date('30-JAN-2005', 'dd-mon-yyyy'));

    Hi, John,
    Not that you asked, but as you proabably know, analytic functions are much better at doing this kind of thing.
    You may be amazed (as I continually am) by how simple and efficient these queries can be.
    For example:
    WITH     got_grp          AS
         SELECT     proj_id, proj_start, proj_end
         ,     proj_end - SUM (proj_end - proj_start) OVER (ORDER BY  proj_start)     AS grp
         FROM     v
    SELECT       ROW_NUMBER () OVER (ORDER BY grp)     AS proj_grp
    ,       MIN (proj_start)                         AS proj_start
    ,       MAX (proj_end)               AS proj_end
    FROM       got_grp
    GROUP BY  grp
    ORDER BY  proj_start
    ;Produces the results you want:
      PROJ_GRP PROJ_START  PROJ_END
             1 01-Jan-2005 05-Jan-2005
             2 06-Jan-2005 07-Jan-2005
             3 16-Jan-2005 20-Jan-2005
             4 21-Jan-2005 22-Jan-2005
             5 26-Jan-2005 30-Jan-2005This is problem is an example of Neighbor-Defined Groups . You want to GROUP BY something that has 5 distinct values, to get the 5 rows above, but there's nothing in the table itself that tells you to which group each row belongs. The groups are not defined by any column in hte table, but by relationships between rows. In this case, a row is in the same group as its neighbor (the row immediatly before or after it when sorted by proj_start or proj_end) if proj_end of the earlier row is the same as proj_start of the later row. That is, there is nothing about 03-Jan-2005 that says the row with proj_id=2 is in the first group, or even that it is in the same group with its neighbor, the row with proj_id=3. Only the relation between those rows, the fact that the earlier row has end_date=03-Jan-2005 and the later row has start_date=03-Jan-2003, that says these neighbors belong to the same group.
    You're figuring out when a new group starts, and then counting how many groups have already started to see to which group each row belongs. That's a prefectly natural procedural way of approaching the problem. But SQL is not a procedural language, and sometimes another approach is much more efficient. In this case, as in many others, a Constant Difference defines the groups. The difference between proj_end (or proj_start, it doesn't matter in this case) and the total duratiojn of the rows up to that date determines a group. The actual value of that difference means nothing to you or anybody else, so I used ROW_NUMBER in the query above to map those distinct values into consecutive integers 1, 2, 3, ... which are a much simpler way to identify the groups.
    Note that the query above only requires one pass through the table, and only requires one sub-query. It does not need a WITH clause; you could easily make got_grp an in-line view.
    If you used analytic functions (LEAD or LAG) to compute flag, and then to compute proj_grp (COUNT or SUM), you would need two sub-queries, one for each analytic function, but you would still only need one pass through the table. Also, those sub-queries could be in-line views; yiou would not need to use a WITH clause.

  • What is the correct Syntax to export to SWF using VBScript

    I am trying to export to swf using Indesign Server but i'm struggling to find the correct syntax using VBScript
    can someone point me in the correct direction or maybe give me this info?
    Thanks in advance
    Tom

    Malcolm,
    Just string the keywords in a row, and let 'er rip.
    The Store used to have a more sophisticated search capability known as Power Search, which allowed fielded entry.  But it seems to have disappeared a few releases ago.

  • The correct syntax for a recursive chmod command in Terminal

    I need to set recursive permissions on an external HDD to '777' or 'all read&write'.
    I have tried all of the following commands in Terminal:
    sudo chmod 777 -r /Volumes/...
    sudo chmod -r 777 /Volumes/...
    sudo chmod a+rw -r /Volumes/...
    sudo chmod -r a+rw /Volumes/...
    ...all of which being back a 'no such file or directory' error, e.g.
    sudo chmod 777 -r /Volumes/232Gb
    chmod: -r: No such file or directory
    Can anyone confirm the correct syntax for this command?
    Thanks in advance...
    Message was edited by: ChippyDeluxe

    If there were a solution that didn't involve using Terminal, I would prefer that.
    The reason I ask is, since my old iMac died and I connected my iMac's external HDD to my MacBook, thousands of folders on my external HDD have 'stop signs' on them and require me to go to
    Get Info -> Sharing & Permissions
    ...and add my MacBook username and set the privilege as "read and write". A bigger problem is, no backup software I've tried will back up this external HDD onto another external HDD any more, so I no longer have an up-to-date backup, which is very worrying.
    I am looking for a way of fixing this, and the chmod command appears to be the answer.
    Ideally, I don't want any permission restrictions on my external HDD at all, so I can connect it to any machine without problems.

  • Correct syntax with associative arrays??

    Hi All,
    I'm doing something wrong with my syntax. I'm trying to grab
    data out of an associative array, but I'd like to be able to
    dynamically pass that array name on a button press. Can someone
    help me out with the correct syntax. I can easily setup a switch
    statement and copy the code and hard code each associative array
    name three times...but I have that whole block below 3 times. It
    works...but it's very ugly. I'd like to just pass the 'phase'
    dynamically since they all use the same code setup, just different
    array names. Any help would be greatly appreciated. - Grant

    Maybe you should start learning AS3, its much more easier to
    use an xml file.

  • Need correct syntax to SELECT against  Excell or File

    I'm having problems setting up the correct SQL and JDBC syntax to be able to use JDBC with an Excell spreadsheet or a delimited text file as my data source. I'm able to set up DSNs using the MS Excell or MS Text drivers ok, and can successfully call DriverManger.getConnection. I can then use the implemented connection methods, DatabaseMetaData methods, etc.
    However, I'm missing something to just make a simple "SELECT * FROM <tablename>". For <tablename> I've tried the file name, the name returned from getColumnName(), and the worksheet name. I always get the following error:
    "java.sql.SQLException: [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object '<tablename>'. Make sure the object exists and that you spell its name and the path name correctly."
    I obviously am not providing a valid table name that the driver recognizes. But with a delimited file or an Excell spreadsheet what should I use?
    Thanks for any guidance.

    Thank you, Thomas. I got the Excell datasource to work based on your help.
    I had already worked out the table names by calling getTables() on the connection object and examining them. What I hadn't been doing is getting the sql quotations set properly.
    This didn't work when embedded in my code:
    String sql = "SELECT * FROM 'tablename$'";This did work when I passed in the tablename as a command line argument:
    String sql = "SELECT * FROM " + "\"" + args[0] + "\"";The delimited files were another interesting problem, which I had also managed to solve a short time ago. I found that the Microsoft Text Driver treats the directory that holds the files as the catalog (== the database), and as you have pointed out, the files themselves as tables. However, the driver expects you to define the table structure for each file within the driver setup wizard. If you don't then the driver doesn't recognize the files as tables. The wizard isn't that intuitive...you have to click on several buttons to expose the relevant dialog boxes.
    Thanks again. You've been a big help.

  • What is the correct syntax for using a variable in an ad hoc query?

    Hi all
    I am an occasional DB user and at the moment need to update about 1000+ records so that a certain column gets a unique value.
    So I thought that I would use a variable for this.
    I then built this kind of SQL statement for just a small subset of the records:
    variable recNumber number;
    exec :recNumber := 1;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + recNumber
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    I get the invalid SQL statement error when attempting to execute above (besides the prompt that asks for a value which I would like to omit).
    Anyway I also tried this one:
    CREATE SEQUENCE seqCounter;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + seqCounter.NEXTVAL
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    From this one I got the error ORA-01722: invalid number...I am guessing this comes because seqCounter is of type number and the COL_TO_BE_UPD is of type character...(?)
    So what I would like to ask is what is the correct way to define and use a counter type of variable to append a number at the end of a character string?
    Also another question that I would like to ask is that are variables that are used in ad hoc queries also called 'bind variables'?
    Thanks muchly

    If you want to append a unique number to a column then this would do it:
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD ||to_char(rownum)
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');

  • Which is correct Syntax for IN function in SQL expressions filters?

    Hi,
    I want to build a report which looks at the last 4 snapshot dates.
    I obtained each snapshot date using this filter
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 7 - dayofweek(current_date) + 2), current_date) ) A
    now the second one would be:
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 6 - dayofweek(current_date) + 2), current_date) ) B
    third one
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 5- dayofweek(current_date) + 2), current_date) ) C
    4th one
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 4 - dayofweek(current_date) + 2), current_date) ) D
    to simplify them let's call the filters A, B , C, D
    so, my sql expression should be like something like Snapshot Date."Snapshot Date" in 'A', 'B', 'D', 'C'
    I have tried to combine the below, with brackets and comma separated, without brackets, with single quotes and without, but I always get a syntax error.
    Snapshot Date."Snapshot Date" in TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 7 - dayofweek(current_date) + 2), current_date) ) ,
    TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 6 - dayofweek(current_date) + 2), current_date) ) ,
    TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 5 - dayofweek(current_date) + 2), current_date) ) ,
    TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 4 - dayofweek(current_date) + 2), current_date) )
    It doesn't seem to like the IN function either.
    Any idea?
    Regards
    G.
    Edited by: user6185307 on Oct 27, 2009 8:07 AM

    Take each of these filters and union them in your answers report.
    This way, you filter down to exactly the last 4 days.

  • What is the correct syntax to have the report log into different databases?

    Hi,
    My current Oracle Reports are called against several databases, depending on region. I pass 'userid=reports/new1@tsoc' as one of teh parameters to access the 'tsoc' db. I just as well call 'userid=reports/new1@penang'.
    This syntax does not appear to work when placed in the BI Publisher URL as follows:
    http://seerus04.soco.agilent.com:9704/xmlpserver/emerald/tutorial/tutorial.xdo?_xpf=&_xpt=0&_xdo=%2Femerald%2Ftutorial%2Ftutorial.xdo&_xt=tutorial&_xf=html&_xmode=0&userid=reports/[email protected]
    Thn in advance,
    Gary

    Jorge,
    I have 11 databases in different regions. Oracle Reports allows me to pass in the database I wish to connect to.
    This is extremely pertinent to my evaluation as I cannot justify having 11 seperate instances for each of my reports.
    If what you say is true, I would consider BIP a poor subsitute for Oracle Reports.
    Thx,
    Gary

  • What's the correct syntax for this?

    Hey guys
    If...
    trace(rowsHolder.getChildByName("mc"+newStr).y);  
    ...correctly outputs the y coordinate of (in this case) mc001, how do I output the y coordinate of a movieClip called item_base_mc that's within the timeline of mc001?
    trace(rowsHolder.getChildByName("mc"+newStr).item_base_mc.y);
    ...gives me a display object error.
    I've tried permutations of the above with [] brackets in various places, but haven't cracked the code.
    What would be the correct way to write it?
    Thanks for taking a look.
    Shaun

    I don't know how to really explain this, but from documentation you will notice  -   getChildByName()  -  is actually a function from  -  DisplayObject  - not MovieClip.
    Link here provides a better explanation!
    http://curtismorley.com/2007/06/13/flash-cs3-flex-2-as3-error-1119
    GOOD LUCK

  • Correct syntax to set "send as" permissions through Powershell

    Hello,
    A colleague of mine gave me a Powershell command to set "send as" permissions on a mailbox. His syntax is the following:
    Add-ADPermission -Identity UserBeingGrantedPermission -User UserWhoseMailboxIsBeingConfigured -ExtendedRights 'Send-As'
    In that example the user mentioned after "-User" is the one who's mailbox is being configured. Easy enough. Earlier Technet articles also use this syntax.
    However, I stumbled across the
    following article. Which clearly says:
    This example grants Send As permissions for Aaron Painter to Terry Adams's mailbox.
    Add-ADPermission -Identity "Terry Adams" -User AaronPainter -AccessRights ExtendedRight -ExtendedRights "Send As"
    In this example "-User" is not the one mailbox that is being configured but the person that gets the rights.
    So who is right? Technet or Technet?

    Hi Fr0ns,
    Your colleague mistook it a little bit, (and I don't think he can compete with the Technet library :)
    -User <is always someone who is given permissions to>. In the Technet example - AaronPainter gets the permission to
    Send As Terry Adams.
    You can check it yourself pretty easily - enable command logging and attempt to assign the permissions with GUI where you clearly know who gets what.
    ▲ Vote if Helpful / Mark if Answer
    MCSE: Messaging 2013 Charter / Private Cloud / Server Infrastructure
    MaximumExchange.ru

Maybe you are looking for

  • XSLT For-each loop issue

    Hi All, I have a below requirement: two source nodes: <NODE1>      <NODE2> Here node 2 is optional. i want to check if node 2 is present, if it is present then for-each value of node 2 if not the the for each must be based on the value of the parent

  • L/R 4.2 and PS CS5 RAW plugin 7.2

    Hi, I have L/R 4.2 and CS 5 installed but after update of Lightroom when I try to open a photo via "Photo Open in L/R 4.2" I get the message "This ver of L/R may require the Camera RAW version 7.2. Please update the Camera RAW plugin using the update

  • Call transaction 'SE38'

    Hi, i'm calling transaction SE38 from my report. First try was this: set parameter id 'RID' field selfield-value.   call transaction 'SE38' and skip first screen. But the first screen is not skipped, it just stays on the entry screen with the reportn

  • Customize Selection Screen

    Hi, For one of our reports, we need to display help text in selection screen. The report filters have a certain combination of default values for multiple fields and unless user keeps all filters active, certain type of information is not displayed.

  • Toolbar in InDesign disappears, trashing preferences doesn't solve the problem.

    Hello, I am using InDesign CS2 on system 10.5.8. I have fixed the missing Toolbar before with the resetting preferences auto and manual solution. For some reason, those fixes are not fixing the problem this time. Any other fixes to try? Thanks.