Select textframe based on textFrame.id

Dear all,

I want to assign a myFrame variable to one of the textFrame present in a page of textFrame.id.

myDoc var = app.documents.item (0);

var i;

for (i = 0; i < myDoc.textFrames.length; i ++) / / three blocks of text I have in myDoc (only one page)

{

myFrame var = myDoc.textFrame [i]

alert (I + "" + myFrame.id);   Here I get number 845, 869, 205

If (myFrame.id is 845)

{

myFrame.select ();

}

}

So now, I knew then, how can I assign / select which frame to a variable, which has the id 869 id three of three linked text frames.

myFrame1 = myDoc.textFrames.id (869);  entitlement does not work here //need code for it

myFrame1.select)

Marie rosine

Here's another solution:

var myItemId = 869;

myTest = tryIt (myItemId)

myTest.id; must return the same value as myItemId

function tryIt (myItemId) {}

docRef var = app.documents.item (0);

frameCount var = docRef.textFrames.count ();

var frameVar;

for (var i = 0; i)< framecount;="">

If (docRef.textFrames.item (i) user.user == myItemId) {}

Return docRef.textFrames.item (i);

}

}

}

Put the code inside a function allows the result to return when the match is made, eliminating unnecessary iterations.

Tags: InDesign

Similar Questions

  • Select data based on the priority of the State

    ID PRO_ID PRO_OBJ_ID TASK_ID DEVELOPER_ID STATUS
    121243 4940 37506 5250 6532 REJECTED
    122063 4940 37506 5250 6532 RELATIVES
    138306 4940 37506 5250 6532 ACCEPTED
    138307 4940 37506 5250 6532 WIP




    Hello

    In the table above, I need to select data based on the State, a status which precedes CLOSE or ACCEPTED it should display all status any State which is after CLOSE or ACCEPTED, we do not consider.


    In the scenioro above, it should display only the status of first three. After having ACCEPTED, it should not display something


    Please suggest me a request how to write.


    Thank you
    Sudhir.

    Try:

    SQL> with t as (
      2  select 121243 id, 4940 pro_id, 37506 pro_obj_id, 5250 task_id, 6532 developer_id, 'REJECTED' status from dual union all
      3  select 122063, 4940, 37506, 5250, 6532, 'CLOSE' from dual union all
      4  select 138306, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
      5  select 138307, 4940, 37506, 5250, 6532, 'WIP' from dual union all
      6  select 138308, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
      7  select 138309, 4940, 37506, 5250, 6532, 'REJECTED' from dual union all
      8  select 121243, 4940, 37777, 5250, 6532, 'REJECTED' from dual union all
      9  select 122063, 4940, 37777, 5250, 6532, 'CLOSE' from dual union all
     10  select 138306, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
     11  select 138307, 4940, 37777, 5250, 6532, 'WIP' from dual union all
     12  select 138308, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
     13  select 138309, 4940, 37777, 5250, 6532, 'WIP' from dual
     14  ) -- actual query starts here:
     15  select t1.id
     16  ,      t1.pro_id
     17  ,      t1.pro_obj_id
     18  ,      t1.task_id
     19  ,      t1.developer_id
     20  ,      t1.status
     21  from   t t1
     22  where id <= (select max(id)
     23               from   t t2
     24               where  t2.status in ( 'ACCEPTED', 'CLOSED' )
     25               and    t1.pro_id = t2.pro_id
     26               and    t1.pro_obj_id = t2.pro_obj_id
     27               and    t1.task_id = t2.task_id
     28               and    t1.developer_id = developer_id
     29               );
    
            ID     PRO_ID PRO_OBJ_ID    TASK_ID DEVELOPER_ID STATUS
    ---------- ---------- ---------- ---------- ------------ --------
        121243       4940      37506       5250         6532 REJECTED
        122063       4940      37506       5250         6532 CLOSE
        138306       4940      37506       5250         6532 ACCEPTED
        138307       4940      37506       5250         6532 WIP
        138308       4940      37506       5250         6532 ACCEPTED
        121243       4940      37777       5250         6532 REJECTED
        122063       4940      37777       5250         6532 CLOSE
        138306       4940      37777       5250         6532 ACCEPTED
        138307       4940      37777       5250         6532 WIP
        138308       4940      37777       5250         6532 ACCEPTED
    
    10 rows selected.
    

    If it works then please provide us with some representative sample data again.

  • Selected TextFrame contains a dashboard?

    Is it possible that I can browse the selected text items and if the text block contains a dashboard button all the contents of the text block in a table?

    If it does not contain a hyphen, it would just blow up.

    Thus, for example:

    The following would be selected...

    SNJ1-UP RYT245-587 WRX1-107 J:37

    There are 4 items in the selection...

    and he would push the contents of a table dashFrames [---] who would have the 3 elements of text inside frame...

    dashFrames [0] = SNJ1-UP

    dashFrames [1] = RYT245-587

    dashFrames [2] = WRX1-107

    Do you mean something like this?

    // 4 textFrames should be selected
    
    var tF = app.activeDocument.selection;
    if (tF.length == 4) {
        var count = 0;
        var dashFrames = new Array ();
    for (i = 0; i < tF.length; i++) {
        if (tF[i].typename == "TextFrame") {
            if (tF[i].contents.match ("-")) {
                dashFrames[count] = tF[i].contents;
                count++;
                }
            }
        }
    }
    // alert (dashFrames)
    // result: RYT245-587,WRX1-107,SNJ1-UP
    

    Have fun

  • How to paste a text in a selected textframe

    Hi, a new script I want to paste text into a textFrame.

    I would choose my text, copy and execute my script.

    My script locate a textframe, select it.

    I don't know how to paste the selected contents of the textframe.

    App.Paste ();

    The dough is OK, but it creates a new textframe while the block is selected.

    Can you help me?

    THX!

    If it works the same as it does in the interface itself. Try it: copier copy text, select (but do not enter) a block of text, tap on paste. A new block of text appears.

    To get what you want, you must put the text inside your selected image cursor. This is not a function but fortunately this weird-looking command works:

    app.selection[0].insertionPoints[-1].select();
    app.paste();
    
  • Poller DB to select records based on the timestamp

    Hi all

    I want select records from the coloumn timestamp where the timestamp is older than an hour. Is it possible to do this through poller db? I tried but unable to pass the dynamic value (currently - 1 hr)

    Thanks in advance!

    Eventually create a view based on the timestamp and singled out the dbpoller view.

  • The select query-based search page...

    I want to create a basic search page at the base on a select query.

    The select query will not be based on Table.Its based on functions.

    I created a view like this object

    Select xx_test_accruals(:p_date) of ACCUMULATION: p_date double DT

    I created a search page

    In the area of provision of Home Page, I added a region of the query. In this region of request I created a result based research Table.

    When I run the page opens with the field

    DT

    When I get back the date and click go, I get the error message like this...

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (select xx_test_accruals(:p_date) of ACCUMULATION: p_date double DT) QRSLT WHERE ((UPPER (DT) like: 1 AND (DT as: 2 OR DT as: 3 OR DT as: 4 OR DT as: 5)))



    Help, please

    Published by: [email protected] on October 4, 2009 14:04

    Hello

    I tried it on my machine... There is a little change on the approach.

    See we have a display object: XxAccrualsSummaryVO

    the query is

    Select xx_test_accruals (to_date (: 1, 'YYYY-MM-DD')) DT ACCRUAL, double to_date(:2,'YYYY-MM-DD')

    Create a view property object: say DateTestPVO and create a transitional DATE type attribute say dated. MinValue. How to create the View Object(read in dev guide) property.

    Link the date to DateTestPVO text entry and the date attribute. MinValue.

    Now that the page will load in process request initialize the PVO not XxAccrualsSummaryVO.

    Public Sub initialisePVO()
    {

    OAViewObject vo = (OAViewObject) getDatePVO1 ();
    If (! vo.isPreparedForExecution ())
    {
    vo.setMaxFetchSize (0);
    }
    Line = vo.createRow ();
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    And when you press the Go button and then enter the date entered and set the location where the XxAccrualsSummaryVO clause.

    If (PageContext.GetParameter ("Go")! = null)
    {
    Get the value entered by the user in the date field.

    DateField OAMessageDateFieldBean = (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("text");
    String datetest = (String) dateField.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    Now set the where clause VO settings.
    OAViewObject vodate = (OAViewObject) am.findViewObject ("invoicetestVO1");
    vodate.setWhereClauseParams (null);
    vodate.setWhereClauseParam(0,datetest);
    vodate.setWhereClauseParam(1,datetest);
    vodate.executeQuery ();
    }

    It works perfectly... I tested it.

    Thank you
    Gerard

  • Select column based on values in another table names.

    I would like to generate a sql statement based on the values in a table. For example, I would start "Select division from tableA".

    In the above example, 'division' would be a value of a column in TableB. Perhaps to looking like this.

    Table B

    The ColumnName of primary key
    -----
    -----
    Division of 1234
    Division of 3456
    Department of 7890

    I don't want back 'Division' of table B, based on the primary key = 1234 and then generate the SQL above.

    Any ideas?

    TIA

    It can be done through a PL/SQL block or the stored procedure.
    Below is a PL/SQL block to give you an idea:

    declare   NewColumnName varchar2(50);  SqlString     Varchar2(200);begin  select ColumnName into NewColumnName from TableB where PrimaryKey = 1234;  sqlString := 'select ' || NewColumnName || ' from TableA';  execute immediate sqlString;end;
    
  • Select text based on color or formatting?

    I have a document of 15,000 words, a transcript for my uni thesis.

    It works by using a color code system that turns any response which was made in what concerns the individual responses, now it would take me an age to do by hand, but I guess that there is a simpler way to do this and select all text with he same format or color?

    any help would be greatly appreciated!

    You say what version of Pages that you use.

    If it's the 5.6.1 Pages your first problem is that you can't find on the style, the second problem, even if you could you cannot select non-contiguous text.

    Peter

  • Check box selected property based on the EL Expression

    Hello

    I create adf table with af:selectBooleanCheckbox in the first column. the checkbox from always refreshable transitional attribute (boolean).

    in the same point of view, I have an Id attribute also.

    I want to set enabled status this box according to the Id, when I tried to change the selected checkbox true property always, all checkboxes checked and I can change the State active or non-active normally, but when I put an EL expression (#{bindings.) ID not null? ({"true": "false"} box normally checked but becomes readonly!).

    can someone help me?

    using jDev Studio Edition Version 12.1.3.0.0

    I think so

    You check or uncheck the box according to the value in VoRowimpl iteslf.

    It would be nice.

    Concerning

    Vincent

  • How to select objects based on a list written in a text frame?

    I want to choose objects whose names appear in a list in a text frame, but he cannot know.

    Let's say I have 200 items with very specific names that never change, like 'Polygon001', 'Polygon002', etc, and I put some of these names, classified or not, in a text box (or frame), comma - or CR-separated by tabs. I want to make a script that reads these names and selects the objects with the same name, so I can color, copy them or whatever. Is there a way to read such a list for this task? I'm new to scripting Illustrator and I think that would help me a lot when characteristic coloring in maps or copy a region to zoom-in.

    Thanks in advance!

    This should do what you want

    function list_to_selection(){
        var doc = app.activeDocument;
        var sel = doc.selection; // this will be the text frame
        var str = sel[0].contents; // get contents of text frame
        sel[0].selected = false; // deselect text frame
        var names = str.split(','); // split the string
        for(var i = 0; i < names.length; i++){
             // remove any white space from start and end of each name
            names[i] = names[i].replace(/^\s+|\s+$/g,'')
            // get each item by name and select.
            doc.pageItems.getByName(names[i]).selected = true;
        }
    }
    list_to_selection();
    
  • Select texts based on the option "customer tracking/kerning.

    Hi all

    If it is possible to push all the texts of tracking/kerning table? If it is possible to attack with highlighting of text as shown below?

    Screen shot 2015-05-05 at 5.11.34 PM.png

    Screen shot 2015-05-05 at 5.12.36 PM.png

    So I put together a few lines.

    Try them and tell me if it points in the right direction.

    To use the Script, you need an InDesign file with text. Some characters have kerning (-100). On top, you need a character style in the InDesign document with the name of "red". If you change the color in the character style, you should see that the characters with kerning (-100) have given color after you run the script.

    Kind regards

    Daniel (from Switzerland)

    main();
    exit();
    
    function main() {
    
        // if there is an open document in InDesign
        if (app.documents.length > 0) {
            var myDoc = app.activeDocument;
    
            // get the selected text
            var mySel = myDoc.selection[0];
    
            if ((mySel != null) && (mySel.constructor.name == "Text")) {
    
                // create an array
                var charArray = new Array();
                alert("information \nText selected");
    
                alert("Information\n# characters selected: " + mySel.characters.length);
    
                for (var i = 0; i < mySel.characters.length; i++) {
                    var myChar = mySel.characters[i];
    
                    // if the kerning was changed
                    if (myChar.kerningMethod == "Manual") {
    
                        // output to the console
                        $.write("Character: >" + myChar.contents + "< kerning: " + myChar.kerningValue);
    
                        // if the kerning is -100 or  less
                        if (myChar.kerningValue < -99) {
    
                            // apply characterstyle to found characters no array needed
                            myChar.appliedCharacterStyle = myDoc.characterStyles.item("red");
                            $.writeln(" OK got it");
    
                            // push character into array
                            charArray.push(myChar);
                        }
                        else $.writeln();
                    }
                }
                alert("Information\nCharacters with kernig -199 found: " + charArray.length);
            }
            else alert("Warning\nNoting or no text selected");
        }
        else alert("Warning\nno document open");
    
        alert("Information\nI did my job, what about yours?");
    }
    
  • Select records based on the monthly anniversary date

    Hello

    I have a table with a field of date_added and I want to select records from monthly birthday of this field.

    for example. ID, Date_added
    1, DECEMBER 10, 2012
    2, 11 NOVEMBER 2012
    3, 10 MARCH 2012
    4, FEBRUARY 28, 2012
    5, 30 DECEMBER 2012

    So for January 10, 2013, I would like to return the documents 1 and 3 only

    I started watching the extract function, but this little falls down to the records at the end of the month. For example, on 28 February, I also include records where 29, 30 or 31 is the day of date_added. So, in the above table, I won't return documents 4 and 5, but retrieves only returns 4.

    Is there a simple function to make the request of birthday this month - have I missed something very obvious? Or I have to write a query to explicitly dates at the end of the month? So far I have not found a reasonable solution!

    I use 11g

    Thank you

    user11259857 wrote:
    Hi Al,.

    No I don't think that there is a flaw. For example, the 30 Jan is not the last day of the month, but is June 30. Thus, on 30 January I want only to interrogate all the dates falling on the 30th - 28 February, after already being interrogated on the 28 Jan. However, on 30 June, I would query the 30th of each month, as well as the 31 January, March, may, July, Aug, Oct, dec. February is a special case, being both shorter and a leap year

    Thank you

    Richard

    Hi Richard,

    so, we can assume that your needs are:

    If the day is the last day of that month, interview the day of the other months being > = day of the current month.

    That is to say:

    Jan-30 = query only 30 other months
    Jan-31 = query only 31 of the other months

    Feb-28 (non-leap years) = question 28, 29, 30 and 31 other months
    29 February (leap year) = query 29,30,31 to other months

    Mar-30 = query only 30 other months
    Apr-30 = query 30 and 31 other months

    This hypothesis is correct?

    If so, then something like this should work:

    WITH mydates(id, date_added) AS
    (
       SELECT 1, TO_DATE('10-DEC-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 2, TO_DATE('11-NOV-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 3, TO_DATE('10-MAR-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 4, TO_DATE('28-FEB-2012', 'DD-MON-YYYY') FROM DUAL UNION ALL
       SELECT 5, TO_DATE('30-DEC-2012', 'DD-MON-YYYY') FROM DUAL
    )
    SELECT id, date_added
      FROM mydates
     WHERE (:input_date = LAST_DAY(:input_date) AND TO_CHAR(:input_date,'DD') <= TO_CHAR(date_added, 'DD'))
        OR TO_CHAR(:input_date,'DD') = TO_CHAR(date_added, 'DD');
    
    with input_date = 28/02/2013
    
    id   date_added
    4    28/02/2012
    5    30/12/2012
    

    Kind regards.
    Al

    Published by: Alberto Faenza on 10 January 2013 15:21
    Added example

  • Select lines based on the State of the same line

    Hello

    I have the following table structure and lines defind here
    http://sqlfiddle.com/#! 3f474/4/3

    I want Select if lines
    PRODUCT_NO
    is null, then I need to select rows that have the IS_PAYABLE = 'Y '. If
    PRODUCT_NO
    is not null
    then IS_PAYABLE will be ' no or IS_PAYABLE will be null.

    For example
    For PRODUCT_REG HPO_FABRIC, a
    PRODUCT_NO
    NULL if I need select this line only, not the other two rows.
    I can do
    select * from SUPPLIER_DETAILS where  IS_PAYABLE='Y'
    , but if there are many records with null or not null PRODUCT_NO

    How can I do this using sql?
    select
      PRODUCT_REG,
      PRODUCT_SUPPLIER_CODE,
      PRODUCT_NO,
      START_DATE,
      END_DATE,
      IS_PAYABLE
    from (
    select
      PRODUCT_REG,
      PRODUCT_SUPPLIER_CODE,
      PRODUCT_NO,
      START_DATE,
      END_DATE,
      IS_PAYABLE,
      row_number() over (partition by product_reg order by decode(is_payable,'Y',1,'N',2,3), product_no nulls first) rn
    from
    SUPPLIER_DETAILS
    )
    where
    rn = 1
    
    PRODUCT_REG     PRODUCT_SUPPLIER_CODE     PRODUCT_NO     START_DATE     END_DATE     IS_PAYABLE
    HPO_FABRIC     JP_008     -      08/01/2001     08/31/2001     Y
    STG_PIL     SJ_090     STG-PILLOWS     01/04/2001     01/31/2001     - 
    

    Published by: chris227 on 17.09.2012 13:30

  • Select records based on the value

    Hello

    I have a table with 3 fields,
    WITH t1 AS(SELECT 'P1' po_number,'R1' route_id,1900 route_cost FROM dual
    UNION ALL SELECT 'P1','R2',2300 FROM dual
    UNION ALL SELECT 'P1','R3',1100 FROM dual
    UNION ALL SELECT 'P2','R7',1200 FROM dual
    UNION ALL SELECT 'P2','R8',4500 FROM dual)
    SELECT * FROM T1
    
    PO_NUMBER     ROUTE_ID     ROUTE_COST
    P1     R1     1900
    P1     R2     2300
    P1     R3     1100
    P2     R7    1200
    P2     R8    4500
    and I want to choose single route_id for a po_number where the cost is high
    and my output should be
    PO_NUMBER     ROUTE_ID     ROUTE_COST
    P1     R2     2300
    P2     R8     4500
    Thank you
    San

    Published by: sandeep9 on April 9, 2011 04:22
    WITH t1 AS(
               SELECT 'P1' po_number,'R1' route_id,1900 route_cost FROM dual UNION ALL
               SELECT 'P1','R2',2300 FROM dual UNION ALL
               SELECT 'P1','R3',1100 FROM dual UNION ALL
               SELECT 'P2','R7',1200 FROM dual UNION ALL
               SELECT 'P2','R8',4500 FROM dual
              )
    SELECT  po_number,
            max(route_id) keep(dense_rank last order by route_cost) route_id,
            max(route_cost) route_cost
      FROM  T1
      GROUP BY po_number
    /
    
    PO RO ROUTE_COST
    -- -- ----------
    P1 R2       2300
    P2 R8       4500
    
    SQL> 
    

    SY.

  • This type of possible to query (select with based correspondence stop lines)

    I'm trying to write a SQL query and suspect it is impossible. Or at least, I cannot not mentally grasp, despite various stabs with subqueries. I simplified it by changing the metaphor here a bit.

    Let's say I have a truck in a city (say, Chicago). There are several roads leading out of town, with routes, we will label according to the compass points (N, NE, SW, etc.) Each truck can carry only one shipment. It starts along his route, and as soon as it comes to a city in need of his expedition, he stops.

    Yes, one cooked, but it is similar to my problem.

    Here is a table:

    TABLE: truck_routes
    scenario (integer - possible scenarios)
    Route (NE, SW, etc - 8 cardinal points)
    destination (towns along this road)
    sequence_number (order in which should go to the cities)

    So if I have a truck in Chicago, I can tell

    SELECT the road, sequence_number, destination
    OF truck_routes
    Scenario WHERE = 10 (or other)
    ORDER BY road_out, sequence_number;

    And I would get a report like this:

    SE 1 Gary
    SE 2 Valparaiso
    SE 3 Plymouth
    SE 4 Warsaw
    NO 1 Michigan City
    2 Kalamazoo
    ONLY 3 Grand Rapids
    DO 4 Cadillac
    ONLY 5 Traverse City

    So far so good. I have another table with a list of cities that must be the subject of the expedition:

    TABLE: cities
    scenario (integer - possible scenarios)
    Route (NE, SW, etc - 8 cardinal points)
    destination (same keys as in truck_routes)

    for example:

    10 Valparaiso SE
    Warsaw SE 10
    10 DON'T Cadillac
    10 DON'T cross City

    Now... the delicate part... How do rewrite the query above so that after a truck hit a city in need of a shipment (in this case), it stops? In other words, I want a report (for all channels) of which cities the truck stops to- and such that mentioned, it stops at the first one she performed. I don't want to see lines beyond that. If the report is as follows:

    SE 1 Gary
    SE 2 Valparaiso
    NO 1 Michigan City
    2 Kalamazoo
    ONLY 3 Grand Rapids
    DO 4 Cadillac

    Gary arises because it does not require a delivery. Valparaiso (road SE, sequence_number 2) arises because he takes delivery. The rest of the Southeast route does not appear. Same thing for the road DON'T.

    There are scenarios where I actually want to stop at the city just before the place of delivery, etc. and of course in the real world, that it's more complicated, but I think that if I could get this working model I could flesh out in a real-world application.

    Certainly I can code something in PL/SQL for this do, or do it in the logic of the application - but I wonder if there is a way to do it in a single SQL statement? I suspect there is something that could be built with subqueries and sorting, but... I can't reach him quite ;-)
    WITH report AS(
        SELECT 'SE' route, '1' seq_num, 'Gary' dest  FROM DUAL UNION ALL
        SELECT 'SE' route, '2' seq_num, 'Valparaiso' dest FROM DUAL UNION ALL
        SELECT 'SE' route, '3' seq_num, 'Plymouth' dest FROM DUAL UNION ALL
        SELECT 'SE' route, '4' seq_num, 'Warsaw' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '1' seq_num, 'Michigan City' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '2' seq_num, 'Kalamazoo' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '3' seq_num, 'Grand Rapids' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '4' seq_num, 'Cadillac' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '5' seq_num, 'Traverse City' dest FROM DUAL
    ),
    cities AS (
        SELECT '10' scenario, 'SE' route, 'Valparaiso' city FROM DUAL UNION ALL
        SELECT '10' scenario, 'SE' route, 'Warsaw' city FROM DUAL UNION ALL
        SELECT '10' scenario, 'NE' route, 'Cadillac' city FROM DUAL UNION ALL
        SELECT '10' scenario, 'NE' route, 'Traverse City' city FROM DUAL
    ),
    need_a_shipment AS (
          SELECT r.*
              , CASE WHEN EXISTS( SELECT 'Y' FROM cities c WHERE c.route = r.route AND c.city = r.dest )
                     THEN 'Y'
                     ELSE 'N'
                END need_a_shipment
        FROM report r
    )
    
    SELECT  route
          , seq_num
          , dest
          , need_a_shipment
    
    FROM need_a_shipment n
    WHERE seq_num <= (  SELECT MIN(seq_num) FROM need_a_shipment
                        WHERE route = n.route AND need_a_shipment = 'Y' )
    ORDER BY route DESC, seq_num
    ;
    
    ROUTE SEQ_NUM DEST          NEED_A_SHIPMENT
    ----- ------- ------------- ---------------
    SE    1       Gary          N
    SE    2       Valparaiso    Y
    NE    1       Michigan City N
    NE    2       Kalamazoo     N
    NE    3       Grand Rapids  N
    NE    4       Cadillac      Y
    

Maybe you are looking for

  • Lenovo Thinkpad Yoga X 1 touch screen does not work

    Hi all I just bought a brand new Thinkpad Yoga X 1 and out of the box, the touch screen is not recognized by windows and no entry through fingers or via pen works. I would be very happy if someone could tell me if it's just a wrong settings or if the

  • Slices about 433 for a minimum function?

    I designed a simple minimum function, which selects two numbers from the smallest. He needs a multiplexer and a comparator. When I compile it with LabVIEW FPGA, it generates me 433 Total slices, 513 slice records and 524 Slice LUTs. I don't understan

  • (Pavilion dv2000 vista) How to create discs of the comand recovery console

    What is the name of the executable file and directory for the command to create the recovery partition recovery DVD?  I am unable to get to the desktop to create, and the recovery console has been unable to reformat the hard drive.  The way I see it

  • Microsoft DVD Buring

    I created a movie with movie maker from Microsoft.  Then, I used the Microsoft's DVD burner to burn the DVD.  Can I see the DVD burned on my computer or what for a DVD player? After burn on a DVD, I tried to view in my computer, but nothing comes up?

  • My Windows Live Mail won't send/receive.

    I get the following message is displayed: Can't send or receive messages on behalf of mail.btinternet.com. An incorrect password was entered. The next time that you send or receive messages, you will be asked to enter your user name and password for