Selection of Multi block record values

Hello
Nice day!

Senario:

I have a block (age_file) that have A DB colum, colum b (point DB), X (not db) the box colum... I have 1000000 folders inside...

Block (age_file)
Colum (part of DB) colum b (point DB)
ABC 123
XYZ 456
ERT 852

The requirement is if I select records with the help of the box, the corresponding value in the column should be concatenated and value should present in colum X (not db) , IE, if I select registration 1 & 3, the value in the column X (not db) should be abcert

Please help me in this as soon as possible.

Thanks in advance

Hai,

Try this code.

DECLARE
     Str_Result VARCHAR2(30000);
     Num_Total_Records NUMBER;
     Num_Loop_I NUMBER;
BEGIN
     Str_Result := '';
     GO_BLOCK('');
     FIRST_RECORD;
     LAST_RECORD;
     Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
     FIRST_RECORD;
     FOR Num_Loop_I IN 1..Num_Total_Records LOOP
          IF :. = 1 THEN
               Str_Result := Str_Result || '' || :. || '' || :.;
          END IF;
          NEXT_RECORD;
     END LOOP;
     FIRST_RECORD;

END;

Kind regards

Manu.

If this answer is useful or appropriate, please mark. Thank you.

Tags: Oracle Development

Similar Questions

  • Sum on multi block record for only displayed records

    Dear all,

    I've been invited below question on interview session and I really do not come upwards with a logic to accomplish.

    In a multi record block, not the displayed items property has the value 10. In this block, an element is placed named current_rate (Number data type).

    While the form is running, it will display 10 records, and I need to display the sum of the current_rate for these 10 records. When I scroll to display multiple records, this amount must also be changed based on the record number of display. Is it possible to make forms to operate this way?

    Please advice.

    Thank you and best regards,

    The roots.

    Another way - create element (e.g. "sum") in a block of control (for example, "cb") and write this:

    -Prior REQUEST for the block of data (for example "E1")

    : cb.sum: = 0;

    -After REQUEST for the block of data (for example "E1")

    : cb.sum: =: cb.sum +: emp1.salary;

    Query the property size array in a data block (specifies the maximum number of records Form Builder to retrieve from the database at the same time)

    must be 0 (default = the number of records can display the block, as indicated by the property of block number of records displayed).

    Concerning

  • How to find the sum of an element of the record multi block?

    Hello

    Hi I have form have a multi block record and sing record block. Multi block record for an element, namely Excise_value. I want to find the sum of total Excise_Value of the entire tape. How to get there.

    Please guide me in this regard.

    PS: I want to use the Formula property / summary forms

    Thank you

    Iqbal

    For your unique record block, set the property of simple recording/precalculate summaries on YES.
    And in BlockA, set the property of all the query to YES.

    -Clément

  • Bean - erase Images on a Multi image recording block

    Hello
    I use beans HandleImage (Yves Junior) on a block record multi, which is also the retail block. Everything works fine except when master record is changed, and the detail block is disabled the bean is not erased automatcially and images are left behind (indicating when the new record master has less lines to detail the previous record and you get child previous images left behind)

    I was wondering what the trick was to erase the images? I know that the command I need to use is:

    Set_Custom_Property (p_bean, p_row, 'CLEAR', ");

    But what is the best way to erase all the lines?

    Steve

    Have you tried:

    Set_Custom_Property( p_bean, ALL_ROWS, 'CLEAR', '' );
    

    François

    Published by: Francois Degrelle on October 15, 2010 17:15

  • "Physics read total multi block applications ' wrong?

    Hello

    The statistics "block the physical demands reading total multi" should count the number of calls to e/s over a reading block (doc here). So I expect to be equal to the 'file db scattered read' (or 'direct path read' if read series direct-path of access is used).

    But this isn't what I get in the following unit test:

    SQL > create table DEMO pctfree 99 as select rpad('x',1000,'x') n from dual connect by level < = 1000;

    -I get the v$ filestat statistics in order to make a difference at the end:

    SQL > select phyrds, phyblkrd, singleblkrds from v$ filestat when file #= 6;

    PHYRDS PHYBLKRD SINGLEBLKRDS

    ---------- ---------- ------------

    6291-96488-3286

    I'm doing a table scan complete on a table of 1000 blocks, forcing sql_tracing and stamped readings

    SQL > connect demo/demo

    Connected.

    SQL > alter session set "_serial_direct_read" = never;

    Modified session.

    SQL > alter session set events =' waiting sql_trace = true ";

    Modified session.

    SQL > select count (*) in the DEMO.

    COUNT (*)

    ----------

    1000

    SQL > alter session set events = 'off sql_trace. "

    session statistics see the 30 requests for e/s, but only 14 requests for multi block:

    SQL > select name, value of v$ mystat join v$ statname using(statistic#) whose name like "% phy" and the value > 0;

    NAME                                          VALUE

    ---------------------------------------- ----------

    total read physics applications of e/s 30

    physical read total multi block 14 requests

    total number of physical read 8192000 bytes

    physical reads 1000

    physical reads cache 1000

    physical read IO request 30

    bytes read physical 8192000

    physical reads cache prefetch 970

    However, I did 30 'db file squattered read:

    SQL > select event, total_waits from v$ session_evenement where sid = sys_context ('userenv', 'sid');

    TOTAL_WAITS EVENT

    ---------------------------------------- -----------

    File disk IO 1 operations

    1 log file sync

    db file scattered read 30

    SQL * Net message to client 20

    SQL * Net client message 19

    V$ FILESTAT counts them as multiblock reads as follows:

    SQL > Select phyrds-6291 phyrds, phyblkrd-96488 phyblkrd, singleblkrds-3286 singleblkrds in v$ filestat when file #= 6

    PHYRDS PHYBLKRD SINGLEBLKRDS

    ---------- ---------- ------------

    30       1000            0

    And this is confirmed by sql_trace

    SQL > column tracefile new_value by trace file

    SQL > select the process trace file $ v where addr = (select paddr in session $ v where sid = sys_context ('USERENV', 'SID'));

    TRACE FILE

    ------------------------------------------------------------------------

    /U01/app/Oracle/diag/RDBMS/dbvs103/DBVS103/trace/DBVS103_ora_31822.TRC

    SQL > host mv and tracefile series-live - path.trc

    SQL > host grep ^ WAITING series-live - path.trc | grep read | NL

    1. WAIT #139711696129328: nam = "db-scattered files reading" ela = 456 file #= 6 block #= 5723 blocks = 5 obj #= tim 95361 = 48370540177

    2. WAIT #139711696129328: nam = "db-scattered files reading" ela = 397 file #= 6 block #= 5728 blocks = 8 obj #= tim 95361 = 48370542452

    3. wait FOR #139711696129328: nam = "db-scattered files reading" ela = 449 file #= 6 block #= 5737 blocks = 7 obj #= tim 95361 = 48370543216

    4 WAIT #139711696129328: nam = "db-scattered files reading" ela = 472 file #= 6 block #= 5744 blocks = 8 obj #= tim 95361 = 48370543816

    5. WAIT #139711696129328: nam = "db-scattered files reading" ela = 334 file #= 6 block #= 5753 blocks = 7 obj #= tim 95361 = 48370544276

    6 WAIT #139711696129328: nam = "db-scattered files reading" ela = 425 file #= 6 block #= 5888 blocks = 8 obj #= tim 95361 = 48370544848

    7 WAIT #139711696129328: nam = "db-scattered files reading" ela = 304 case #= 6 block #= 5897 blocks = 7 obj #= tim 95361 = 48370545370

    8 WAIT #139711696129328: nam = "db-scattered files reading" ela = 599 file #= 6 block #= 5904 blocks = 8 obj #= tim 95361 = 48370546190

    9 WAIT #139711696129328: nam = "db-scattered files reading" ela = 361 file #= 6 block #= 5913 blocks = 7 obj #= tim 95361 = 48370546682

    10 WAIT #139711696129328: nam = "db-scattered files reading" ela = 407 file #= 6 block #= 5920 blocks = 8 obj #= tim 95361 = 48370547224

    11 WAIT #139711696129328: nam = "db-scattered files reading" ela = 359 file #= 6 block #= 5929 blocks = 7 obj #= tim 95361 = 48370547697

    12 WAIT #139711696129328: nam = "db-scattered files reading" ela = 381 file #= 6 block #= 5936 blocks = 8 obj #= tim 95361 = 48370548287

    13 WAIT #139711696129328: nam = "db-scattered files reading" ela = 362 files #= 6 block #= 6345 blocks = 7 obj #= tim 95361 = 48370548762

    14 WAIT #139711696129328: nam = "db-scattered files reading" ela = 355 file #= 6 block # 6352 blocks = 8 obj #= tim 95361 = 48370549218

    15 WAIT #139711696129328: nam = "db-scattered files reading" ela = 439 file #= 6 block #= 6361 blocks = 7 obj #= tim 95361 = 48370549765

    16 WAIT #139711696129328: nam = "db-scattered files reading" ela = 370 file #= 6 block #= 6368 blocks = 8 obj #= tim 95361 = 48370550276

    17 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1379 file #= 6 block #= 7170 blocks = 66 obj #= tim 95361 = 48370552358

    18 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1205 file #= 6 block #= 7236 blocks = 60 obj #= tim 95361 = 48370554221

    19 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1356 file #= 6 block #= 7298 blocks = 66 obj #= tim 95361 = 48370556081

    20 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1385 file #= 6 block #= 7364 blocks = 60 obj #= tim 95361 = 48370557969

    21 WAIT #139711696129328: nam = "db-scattered files reading" ela = 832 file #= 6 block #= 7426 blocks = 66 obj #= tim 95361 = 48370560016

    22 WAITING #139711696129328: nam = "db-scattered files reading" ela = 1310 file #= 6 block #= 7492 blocks = 60 obj #= tim 95361 = 48370563004

    23 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1315 file #= 6 block # 9602 blocks = 66 obj #= tim 95361 = 48370564728

    24 WAIT #139711696129328: nam = "db-scattered files reading" ela = 420 file #= 6 block # 9668 blocks = 60 obj #= tim 95361 = 48370565786

    25 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1218 file #= 6 block # 9730 blocks = 66 obj #= tim 95361 = 48370568282

    26 WAIT #139711696129328: nam = "db-scattered files reading" ela = 1041 file #= 6 block #= 9796 blocks = 60 obj #= tim 95361 = 48370569809

    27 WAIT #139711696129328: nam = "db-scattered files reading" ela = file No. 300 = 6 block #= 9858 blocks = 66 obj #= tim 95361 = 48370570501

    28 WAIT #139711696129328: nam = "db-scattered files reading" ela = 281 file #= 6 block #= 9924 blocks = 60 obj #= tim 95361 = 48370571248

    29 WAIT #139711696129328: nam = "db-scattered files reading" ela = 305 file #= 6 block #= 9986 blocks = 66 obj #= tim 95361 = 48370572021

    30 WAIT #139711696129328: nam = "db-scattered files reading" ela = 347 file #= 6 block #= 10052 blocks = 60 obj #= tim 95361 = 48370573387

    So, I'm sure that I did 30 reading diluvium but block total multi physical read request = 14

    No idea why?

    Thanks in advance,

    Franck.

    Couldn't leave it alone.

    A ran some additional tests with sizes of different measure, with and without the SAMS.

    It seems that my platform includes no readings of scattered file db less than 128KB in the physical count. (or 16 blocks, given that I was with a block size of 8 KB).

    Concerning

    Jonathan Lewis

  • need to change all button select it after clear records

    Hi all

    (1) select order_no LOV and click query displays data in the Multi block

    (2) then after I clicked on the select all button and after I have am clicking the MOVE button

    (3) after I'm clear multi records (when you click the Button Clear), but after erase all records, the button select all show me deselect everything , okay it is good because we have written the code in the Select All according to our convinient

    I need to display the button select all as select all after clicking on the clear button

    Please help me

    After the clear_form() of the code clear button WBP, set the label 'Deselect all' for your button SELECT_ALL, as suggested.

  • selection of the missing records between 2 duplicity without worrying about tables of records

    Hi all

    I have received_bills and send_bills of 2 tables.

    The SEND_BILLS table is the source table displaying all records in it.

    I need to compare two tables together and insert all the missing elements in received_items including duplicate records.

    There may be duplicate in 2 tables records.

    I wrote a query, but it does not select the duplicate records if it's all the 2 tables. When the same duplicate records are send_bills and received_bill without worrying because send_bills has 4 of them and received_bill 2, it does not select the other 2 duplicate records. And it's just what I need.

    the query is

    SELECT SEND. POINT OF REFERENCE,

    Send. PAYMENT,

    Send. CODE

    OF SEND_BILLS SEND

    WHERE THERE IS NOT (SELECT REC. DATUM, PAYMENT, REC. REC. CODE

    OF RECEIVED_BILLS REC

    WHERE REC. REFERENCE = SEND. SCRATCH CARDS

    AND REC. PAYMENT = SEND. PAYMENT

    AND REC. CODE = SEND. CODE)

    send_bills records

    OCTOBER 10, 1519A1
    OCTOBER 10, 1519A1
    OCTOBER 10, 1519A1
    OCTOBER 10, 1529A3
    OCTOBER 10, 1547A4
    9 OCTOBER 1519A8
    OCTOBER 10, 1520A1
    OCTOBER 10, 1519A1
    OCTOBER 10, 1525A5
    OCTOBER 10, 1525A5

    received_bills records

    OCTOBER 10, 1519A1
    OCTOBER 10, 1529A3
    OCTOBER 10, 1547A4
    OCTOBER 10, 1519A1

    the result of the query is:

    OCTOBER 10, 1525A5
    OCTOBER 10, 1525A5
    OCTOBER 10, 1520A1
    9 OCTOBER 1519A8

    So he selects all the records

    the result should be

    OCTOBER 10, 1525A5
    OCTOBER 10, 1525A5
    OCTOBER 10, 1520A1
    9 OCTOBER 1519A8
    OCTOBER 10, 1519A1
    OCTOBER 10, 1519A1

    --------------------------------------------------------

    -The DOF for Table SEND_BILLS

    --------------------------------------------------------

    CREATE TABLE SEND_BILLS

    (DATE OF "DATUM",

    NUMBER OF "PAYMENT."

    'CODE' VARCHAR2 (5 BYTE)

    )  ;

    --------------------------------------------------------

    -The DOF for Table RECEIVED_BILLS

    --------------------------------------------------------

    CREATE TABLE 'RECEIVED_BILLS '.

    (DATE OF "DATUM",

    NUMBER OF "PAYMENT."

    'CODE' VARCHAR2 (5 BYTE)

    )  ;

    -Insert the script for send_bills

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 29, 'A3');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 47, 'A4');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('09-OCT-15','DD-MON-RR'), 19, 'A8');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 20, 'A1');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 25, 'A5')

    Insert into SEND_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 25, 'A5')

    -Insert invoices received from script

    Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

    Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 29, 'A3');

    Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 47, 'A4');

    Insert into RECEIVED_BILLS (DATUM, CODE) values (to_date('10-OCT-15','DD-MON-RR'), 19, 'A1');

    Can someone please help me with the query so that I can also select all the missing records, including duplicates.

    Thanks in advance.

    Best regards

    Caroline

    If you should by all means use loop and then (send_bills and received_bills contain the same data as your original post):

    Select the reference, payment, code

    of (with

    Duplicator (Datum, Payment, code, CNT) as

    (select the reference, code, payment, cnt - 1).

    from (select datum, payment, code, count (one) - cnt count (two)

    (select date, payment, code, 1 one, to_number (null) two)

    of send_bills

    Union of all the

    Select datum, payment, code, to_number (null), 2 two

    of received_bills

    )

    Reference group, code

    having count (one)! = count (two)

    )

    Union of all the

    Select the reference code, payment, cnt - 1

    The duplicator

    where cnt > 0

    )

    Select the reference, payment, code

    The duplicator

    )

    DATUM PAYMENT CODE
    10/09/2015 19 A8
    10/10/2015 19 A1
    10/10/2015 25 A5
    10/10/2015 20 A1
    10/10/2015 19 A1
    10/10/2015 25 A5

    Concerning

    Etbin

  • If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

    Mr President

    If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

    My two fields are FLOW AND DR_NAME

    FLOW = ACCT_ID

    DR_NAME = ACCT_NAME

    I created with success of LOV for these fields.

    First LOV gives acct_id in the debit field and second LOV gives the value of acct_name to dr_name.

    How can I report these lov, it's that when I change my acct_id then acct_name also change

    I have these two tables

    CREATE TABLE "NOM"  (
      "ACCT_ID" VARCHAR2(7) NOT NULL ENABLE, 
      "ACCT_NAME" VARCHAR2(50) NOT NULL ENABLE, 
      "O_BAL" NUMBER(13,2),
      CONSTRAINT NOM_PK PRIMARY KEY ("ACCT_ID")ENABLE
       
       );
    CREATE TABLE "VOUCHERDET" (
      "V_ID" VARCHAR2(9) NOT NULL ENABLE,
      "LINEITEM" NUMBER ,
      "DEBIT" VARCHAR2(7) , 
      "DR_NAME" VARCHAR2(50), 
      "CREDIT" VARCHAR2(7) , 
      "CR_NAME" VARCHAR2(50), 
      "PARTICULARS" VARCHAR2(100), 
      "AMOUNT" NUMBER(21,2),
    CONSTRAINT VOUCHERDET_PK PRIMARY KEY ("V_ID","LINEITEM")ENABLE, 
    CONSTRAINT PUR_SAL_LINE_POD_FK FOREIGN KEY(PROD_ID)
      REFERENCES PRODUCTS (PROD_ID)ENABLE,  
    CONSTRAINT VOUCHERDET_DEBIT_FK FOREIGN KEY ("DEBIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE, 
    CONSTRAINT VOUCHERDET_CREDIT_FK FOREIGN KEY ("CREDIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE,  
    CONSTRAINT VOUCHERDET_V_FK FOREIGN KEY ("V_ID")
       REFERENCES "VOUCHER" ("V_ID") ON DELETE CASCADE ENABLE
      );
    
    

    Concerning

    so, instead of this second ActId, choose ACCT_NAME:

  • Restrict the user to select a fixed number of values only to the SelectManyShuttle component

    Hello

    I'm working on JDeveloper 11.1.1.7.

    My requirement is to allow the user to select a fixed number of values using the SelectManyShuttle component only.

    Suppose if I have 10 available values in the left part of the element of the shuttle, I should allow the user to shuttle only three values on the right.

    In the image below, I already have 3 employees. Now the user should not be able to select employees more.

    < af:selectManyShuttle label = "Label 1" id = 'sms1.

    value = "#{pageFlowScope.shuttleBean.selectedEmpNames} '"

    leadingHeader = "all employees".

    trailingHeader = "selected employees.

    simple = "true" >

    < f: selectItems value = "#{pageFlowScope.shuttleBean.allEmpNames} '"

    ID = "si1" / >

    < / af:selectManyShuttle >

    Shuttle.png

    Can you please share your ideas to achieve this?

    Respect,

    Vinod

    There are different strategies how to implement this. The easiest will be to check the size of the selected list when the user cklicks the button finished. If the number is larger that the size limit display you an error message.

    Another way would be to use a valueChangeListener and the listener, check the size of the new value and add the tonthe size from the size of the already selected list. Then display an error message.

    Timo

  • How can I select text all blocks at once

    I tried different ways to do it, but in vain. If you have a large work surface with 30-40 + individual and any text that you want to do is to select all the blocks of text at once, then font change, or a variable of type, etc., how could you do this? A hard time understand this out, but it might be something obvious that I missed.

    ElegantScience,

    How about you select > object > text objects?

  • What is the difference btw: block.item and $item.block.item.value in State of form customization


    Hello

    What is the difference btw: block.item and $item.block.item.value in the customization of the form State section

    I've seen this condition as

    triggering event

    the point at which instance

    : PRESS RELEASE. PICKING_RULE not in the ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    and

    When the point instacne

    ${item.release.picking_rule.value} not in ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    the two are the same or different

    Thanks in advance

    In the particular example that you use, no difference, you are getting the value and comparing it with a set of values.

    The second form of the syntax, however, take into account what follows, while the first only retrieves the value of the field:

    Conditions can refer to properties of objects using a SPEL (simplest Possible Expression Language) syntax. For example, allows you to create a Condition that tests whether a field is displayed or not. These expressions take the following general form:

    ${objectType.objectName.Property}

    Internally, the expression of SPEL is a cover for Oracle Forms builtins like GET_ITEM_PROPERTY, GET_BLOCK_PROPERTY, etc. In addition, expressions of SPEL are supported recovery values of profile, the dictionary of text messages and local Variables (described later).

  • Select Max (date) multiple records

    I'm having a problem getting the last value for several gauges.  Here's my query:

    SELECT parameter_id,

    TS_ID,

    value,

    Location_id,

    Date_Time

    Of

    MyTable

    JOIN IN-HOUSE

    mytable2

    WE

    TS_ID = ts_id

    WHERE

    TS_ID LIKE '% - rev.

    unit_id = ("pi")

    the value IS NOT NULL

    Location_id as "xxxx".

    Date_Time =

    (SELECT Max (date_time)

    My TABLE

    GROUP BY parameter_id)

    ;

    Hello

    A scalar subquery, such as the expression to the right of the sign =

    Date_Time = (SELECT...)

    must produce (at most) only 1 row.  If the subquery produces 2 or more lines, it will trigger an error.

    Given that you are using "GROUP BY parameter_id" in the subquery, it will produce a separate line of output for each distinct value of parameter_id.  You can use a correlated subquery at that time, that only looks like a parameter_id, or you can use a subquery IN, like this:

    WHERE (parameter_id, Date_Time) IN

    (

    SELECT parameter_id

    MAX (date_time)

    FROM MyTable

    GROUP BY parameter_id

    )

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • I need to select all the blocks of text in a document and align text blocks in the back pages left frame margin and the text in the pages front to the right margin.

    Hello

    Am new to Java script.

    Can someone help me out here, I need to select all the blocks of text in a document and align text blocks in the pages back to the left margin frames and text in pages recto at the right margin.

    Thank you
    Harish

    Hi Harish,

    Try this.

    var doc =app.activeDocument,
        _pages = doc.pages;
    doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    for(var i =0;i<_pages.length;i++)
    {
            txfms = _pages[i].textFrames.everyItem().getElements();
            for(var j =0;j
    

    Kind regards

    Cognet

  • by selecting all the blocks of text on all visible layers

    I want to select all the blocks of text on all visible layers.

    the script below will select all the blocks of text, even in groups, but if the layer with the text is invisible the script error. (target layer cannot be changed)

    If (app.documents.length > 0) {}

    var doc = app.activeDocument;

    var numTextFrames = 0;

    for (i = 0; i < doc.textFrames.length; i ++) {}

    textArtRange = doc.textFrames [i];

    textArtRange.selected = true;

    }

    }

    So I made this script to select blocks of text on only visible layers, but now missing text belonging to a group.

    var layerCount = activeDocument.layers.length;

    var docSelected = activeDocument.selection;

    for (i = 0; i < layerCount; i ++)

    {

    currentLayer = activeDocument.layers [i];

    If (currentLayer.visible == visible)

    {

    for (j = 0; j < currentLayer.textFrames.length; j ++) {}

    textArtRange = currentLayer.textFrames [j];

    textArtRange.selected = true;

    }

    }

    }

    can someone tell me why it is not some frames of text bound in a group when made this way and is it possible to get all managers of related texts selected on all visible layers?

    Thank you

    Duane

    Try this:

    if (app.documents.length > 0 ) {
        var doc = app.activeDocument;
        var numTextFrames = 0;
        for (  i = 0; i < doc.textFrames.length; i++ ) {
            try {
            textArtRange = doc.textFrames[i];
            textArtRange.selected = true;
            } catch (e) {}
            }
        }
    

    Have fun

  • I need a query that selects the amount of records for each day of a table.

    I need a query that selects the amount of records for each day of a table.
    For example, the result would be:

    1 14 date
    Date 2-3

    etc.

    Any ideas?

    Sort:

    SELECT count ([IDCommentaire]), convert (varchar, dateAdded, 112)

    OF COMMENTSgroup by convert (varchar, dateAdded, 112)

Maybe you are looking for

  • Since the update to 28.0 typing too many address in the address bar has no effect.

    Updated to 28.0 31/03/2014. Nothing happens when I have too much to type the address in the address bar and press ENTER. Cannot access that tied to the breast of the web pages or emails, or addresses marked with a bookmark.

  • You can buy and 2 Air iPad smart case and use this case for the new iPad 9.7 Pro?

    can you get an iPad 2 case Air and use it for the new iPad 9.7 Pro

  • Problem webcam with Skype and MSN messanger on Satellite A300

    Hello. Well. The Australia contacted Toshiba. and got some information.Well, the person I spoke to said that he would try to find the drivers on the European site of Toshiba, which he did. And he said to uninstall the software from my camera assist.S

  • HP 15R036TU

    I BOUGHT A LAPTOP HP WITH WINDOWS PREINSTALLED TO 8.1 15-R036TU I'M PLANNING TO DOWNGRADE TO WINDOWS 7 X 64, DOWNLOADED THE DRIVER FOR WINDOWS 7 X 64 ON THE OFFICIAL WEB SITE AFTER INSTALLATION WINDOWS 7 X 64, I FOUND THAT THE DRIVERS THAT I DOWNLOAD

  • a problem

    Hello everyone When I want to install windows server 2012 x 64 in vmware 10, I faced with this error: i ' v run win 8.1 x 64 and my Matthew is lenovo g510. I need server in my vm, please help me, if you can. I thank.