Is it better to make several tables of data or a large painting and access as many times?.


I don't see where you got the 4 dimensions for your table.  I only see 2: channel and sample.

From what you describe, I would put any information 'support' for a channel in a cluster.  You must have an array of clusters to hold your data support.

Tags: NI Software

Similar Questions

  • Can we make several Off features in a collection of panels and how the query-off based on the example?

    Mr President.

    Can we make several Off features in a collection of panels and how the query-off based on the example?

    Concerning

    Once again, no jdev version?

    It must be really hard to remember ehich version you are working.

    Would have given a quick glance in the docs

    featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are

    That is the answer to a message.

    The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.

    Timo

  • A block of data, several tables

    In the manual of Concepts 10.2 is the following definition:

    Table directory
    This part of the data block contains information about the table with lines in this block.

    11.2 Concepts manual, the definition has been changed:

    Table directory
    + For a table in a heap, this directory contains metadata about the tables whose lines are stored in this block. Several tables can store lines in the same block. +

    How many tables can store lines within a single block? A block belongs to a point belongs to a segment belongs to an object.

    The only case I could think of where it is true is in a cluster in the table.

    Of http://docs.oracle.com/cd/E14072_01/server.112/e10713/tablecls.htm#i25478

    A cluster of the table is a group of tables that share common columns and store related data in the same blocks. When the tables are grouped, a single data block can contain several tables lines

  • Reading data from a file txt and inserting into table

    I have a text file and have uploaded data in this text file in an internal table,

    the data is normally placed online and I managed to recover most of the data, but I have problems by inserting a few conditions

    OK, well it goes like this.

    I got the right reailer id,

    Well, I have a table with all the columns in the file. Now it I'll try to throw it out as simple as I can


    Reseller 1

    column 1 column 1 column 1 column 1 column 1 column 1 column 1 column 1
    ===============
    Total 0 0 0 0 0 0 0
    -------------------------------------

    Distributor 2

    column 1 column 1 column 1 column 1 column 1 column 1 column 1 column 1
    ===============
    X 1123... .. .. .. .. ..
    234 Y... .. .. .. .. ..

    Total 23... .. .. .. .. ..

    see the problem is I have to associate the retailer number to their corresponding x and y and also not all retailers have values X and Y

    The remains of standard file format but only the values of the columns may change, but they must be inserted in the table according to the number of retailers.

    U understand what I mean...

    How about you, including both terminal number (just for the fun of it... hehe!):

    SQL> ed
    Wrote file afiedt.buf
    
      1  select retailer_no, terminal_no, retailer_name, val1, val2, val3, val4, val5, val6, val7, val8, val9, val10
      2  from (
      3        select case when retailer_no is null then lag(retailer_no, decode(val1, 'Loto', 1, 'Inst Tk', 2, 3)) over (order by line_no) else null end as retailer_no
      4              ,case when terminal_no is null then lag(terminal_no, decode(val1, 'Loto', 1, 'Inst Tk', 2, 3)) over (order by line_no) else null end as terminal_no
      5              ,case when retailer_name is null then lag(retailer_name, decode(val1, 'Loto', 1, 'Inst Tk', 2, 3)) over (order by line_no) else null end as retailer_name
      6              ,val1, val2, val3, val4, val5, val6, val7, val8, val9, val10
      7        from (
      8              select rownum as line_no
      9                    ,case when regexp_like(line, '^Retailer Number:') then regexp_replace(line, '^Retailer Number: +([0-9]+).*$', '\1') else null end as retailer_no
     10                    ,case when regexp_like(line, '^Retailer Number:') then regexp_replace(line, '^.* Terminal Number: +([0-9]+).*$', '\1') else null end as terminal_no
     11                    ,case when regexp_like(line, '^Retailer Number:') then regexp_replace(line, '^.* Retailer Name: +(.*)$', '\1') else null end as retailer_name
     12                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then trim(substr(line, 1, 15)) else null end as val1
     13                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 1) else null end  as val2
     14                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 2) else null end  as val3
     15                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 3) else null end  as val4
     16                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 4) else null end  as val5
     17                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 5) else null end  as val6
     18                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 6) else null end  as val7
     19                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 7) else null end  as val8
     20                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 8) else null end  as val9
     21                    ,case when regexp_like(line, '^( +Loto | +Inst Tk|Totals)') then regexp_substr(line, '[^ ]+', 16, 9) else null end  as val10
     22              from cdc_file
     23              where regexp_like(line, '^( +Loto | +Inst Tk |Totals|Retailer Number:)')
     24             )
     25        )
     26  where retailer_no is not null
     27* order by 1, decode(val1, 'Loto', 1, 'Inst Tk', 2, 3)
    SQL> /
    
    RETAILER_N TERMINAL_N RETAILER_NAME                  VAL1       VAL2       VAL3       VAL4       VAL5       VAL6       VAL7       VAL8       VAL9       VAL10
    ---------- ---------- ------------------------------ ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    10000      1000006    XXXX XXXX XX Default Location  Totals     0.00       0.00       0          0.00       0          0.00       0          0.00       0
    10000      1000008    XXXX XXXX XX Default Location  Totals     0.00       0.00       0          0.00       0          0.00       0          0.00       0
    200101     20010100   XXXXXXX Popular Store          Loto       36,100.00  0.00       0          0.00       36         -5,646.00  0          0.00       0
    200101     20010100   XXXXXXX Popular Store          Inst Tk    22,000.00  0.00       0          0.00       166        -9,360.00  0          0.00       0.00
    200101     20010100   XXXXXXX Popular Store          Totals     58,100.00  0.00       0          0.00       202        -15,006.00 0          0.00       0
    200103     20010300   XX XXXXXXXX Snack              Loto       35,980.00  0.00       0          0.00       20         -3,426.00  0          0.00       0
    200103     20010300   XX XXXXXXXX Snack              Inst Tk    14,000.00  0.00       0          0.00       157        -9,180.00  0          0.00       0.00
    200103     20010300   XX XXXXXXXX Snack              Totals     49,980.00  0.00       0          0.00       177        -12,606.00 0          0.00       0
    
    8 rows selected.
    
    SQL>
    

    Published by: BluShadow on January 22, 2010 13:37
    added the retailer's name as well, but out anonymous that we dislike the actual data on the forums... ;)

  • create the view of several tables of days

    Hello
    I'll have existing oracle db with the daily stat data, tables strangely named data_mon, data_tue, data_wed... For my batch that I intend to use the view with multiple day data, let say for the last 5 days.
    Do not know how better to implement my sql with these suffixes _mon statement to make it more or less dynamic.
    I create also ever seen from several tables, then, probably, that I can do something that will add daily updated data and remove data from 5 days?

    You will appreciate comments on the details and the whole concept. I have prev sql server experience.

    Thank you
    T

    user12943718 wrote:
    Hello
    I'll have existing oracle db with the daily stat data, tables strangely named data_mon, data_tue, data_wed... For my batch that I intend to use the view with multiple day data, let say for the last 5 days.
    Do not know how better to implement my sql with these suffixes _mon statement to make it more or less dynamic.
    I create also ever seen from several tables, then, probably, that I can do something that will add daily updated data and remove data from 5 days?

    You will appreciate comments on the details and the whole concept. I have prev sql server experience.

    Thank you
    T

    Change the data model if you have 1 table for a day.

    You have just a DATA table and a column to indicate the day of the application.

    Then you don't need a view, do not need anything dynamic, do not need to break your head against a wall for a simple query... etc.

  • Can I make my table to DataSet table 3d 2D data set?

    Hello.  I'm putting my data in a 3D Board.  I'm not really satisfied with the table 3D data set since that requires a large amount of manipulation of the table whenever I want to do something with the data - I do a lot of analysis, it's a pain.  It is reliable, but it takes space BD and is generally a pain.  I read here (post #6 & #7 if the link don't you shoot directly to it) a few messages by some respected LabVIEW guru they didn't see no reason to 3D tables used.  I was hoping someone might be able to point to a better solution to know how to store and access my data logically.

    I'm n channels of data acquisition (a while but I have will add to this later), that puts me in a table 2D with each line being the channel and the columns are the data points.

    I need to acquire multiple test runs a data value.

    I also need using data in each series of tests, average averages and check the test medium-sized operating are with a tolerance of the average general.

    I also need to be able to revive one of the test tracks if its average does not fall within the tolerance of the average general.

    I use the page in 3D as the series of tests table.  If I can then get some tests, I want to by selecting the corresponding page.

    I'm waiting to save all the test runs at the same time until the user selects to save the data.  Which means that the user has run the minimum number of test runs, and all have averages that fall within the tolerance of the average general.  I love this soley because this test will be carried out different several times for different of UUT and all data for this USE can be saved in a single file.

    I am currently save the file as a binary file (for my purposes of data backup) and then the user can also choose to save it in Excel, with each test on its own sheet.

    I thought to save after each race.  I don't know how add/replace the data in the binary file. I would rather not a separate binary file for each set of tests, but it's not a dealbreaker.

    The only way I see to avoid the 3D Board is back up after each series of tests.  This would mean that I would have a lot more handling of file (when they should be replaced, when the averages should be analyzed, etc..).

    Is the "save after each test cycle" approach that is generally used?  If so, it seems to me that file manipulation would be more prone to error than the manipulation of table 3D (maybe just for me I guess). Can someone tell me otherwise?

    Is there another approach that I have not thought or discovered here?

    Thank you

    Scott

    I think that save after each test cycle is a safer and more reliable way to accomplish what trying to boot of all data and recording at the same time.  This way, if the program crashes, you don't lose all the data because it was still in memory.  The data had been collected so far are safely in a file.  Why do you think of file manipulation would be more subject?

    If you want to add an existing file, then you just use the position to set the file to set the pointer to file at the end of the file, after you open the file.

    You can also watch the TDMS file format because it has means of sorting and organization of several sets of data.

  • Join several Tables versioned

    Hello

    We are working on a data warehousing project and wonder how do to join several tables that each are versioned separately (type SCD 2 with a valid and valid to date).

    Because for example, we get our client from a single source of information (id customer, name, etc.) and the information on the rate of customer from another source.  The sources are different, we have the separate tables for them and each of them gets versioned independently.

    Here's my customer table (with its own valid and valuable to the columns).

    IDName of the customerValid fromValid until the
    1CitiBank1 JANUARY 14JANUARY 1, 15
    1New CitiBank2 JANUARY 15FEBRUARY 1, 15
    1Latest CitiBank2 FEBRUARY 15APRIL 1, 15

    And similarly the Client side ID and rating information.

    IDNoteValid fromValid until the
    1Platinum1 JANUARY 14FEBRUARY 1, 14
    1PremiumFEBRUARY 1, 141ST MARCH 15

    I want to merge the two tables above and present information at a glance.  I have some difficulty to determine validates the valid columns.

    IDName of the customerNoteValid from (Calculated)Valid until the (calculated)
    1CitiBankPlatinum1 JANUARY 14FEBRUARY 1, 14
    1CitiBankPremiumFEBRUARY 1, 14JANUARY 1, 15
    1New CitiBankPremium2 JANUARY 15FEBRUARY 1, 15
    1Latest CitiBankPremium2 FEBRUARY 151ST MARCH 15

    And it's the query I used to get the above result:

    SELECT client. id ,

           customer . name ,

           CRM . level ,

           Greatest (client. vld_fm , crm. vld_fm ),

           Least (client. vld_to , crm. vld_to )

    DE    client client,

           client_rating crm

      client. id = crm. id

           AND ( client. vld_fm <= crm. vld_fm

                 AND client. vld_fm <= crm. vld_to

                 AND client. vld_fm >= crm. vld_fm

                 AND client. vld_fm >= crm. vld_to )

            OR ( client. vld_fm BETWEEN crm. vld_fm AND crm. vld_to )

            OR ( client. vld_to BETWEEN crm. vld_fm AND crm. vld_to );



    The problem is we have several data sources (and each with its own versions) and joins become so very very complex.  Is there a better way to write the query?

    Or maybe a better way to design our tables?

    Thanks for your help.

    Anand

    Hello

    you only need ranges that overlap to join.

    Re: How do to sql query in a loop

    Is a simpler way to test if the x_start to x_stop range comes into conflict with the range of y_start to y_stop

    WHERE     x_start <= y_stop AND     y_start <= x_stop
    

    In other words, two overlapping if and only if everyone will start before the other ends one. If this is not obvious (and it was certainly not clear to me when I heard it), then look at it this way: two ranges are not overlapping if and only if one of them starts after the end of the other.

    Concerning

    Marcus

  • Reg: With the help of several tables of facts in the RPD!

    Hi all

    Can I get help with the following scenario?

    We use OBIEE 11 g.
    We have a report that uses 1 single fact table to retrieve data and it must be hell a lot of time to display the data in the report.

    My question is is there a way to show the performance of the report if divide us the data in table 1 to 2 fact tables and the report uses them 2 made tables.
    Are there other ways of finalization of the report for better performance.

    Thanks for the help in advance!

    Ajay.

    Hi Ajay,

    Follow these steps for tuning;
    1. try to adjust the SQL query generated first by the report, and then make the necessary changes. (Put index on the column that is required so that your query is scanning the index instead of the whole table)

    2. you can try to create the agg fact table and use agg navigation to improve performance. (This is to reduce the data set on which sql is triggered)

    3. you can try to create partitions on the table of FACTS in the comic book, and so held the partitions are queried according to the filters.

    4. in the last if all the foregoing does not resolve your query, you can try to divide the FACT table in two or more depending on your decision and then use fragmentation content in the MDB of the RPD layer if it will strike appropriate tables depending on whether you declare.

    Mark Correct/utile so this can help.

    Good luck
    Kashi

  • Performance in the treatment of the based on a game, several tables from target

    Welcome.

    I have question about a treatment based on a game, when mapping have several tables in the target. I noticed that OWB generate SQL code that usually build a query for each table in the target insertion. Suggest that each table has results from different stages of the treatment, so multi table insert cannot be used. Looking for generated code PL/SQL, I feel that each insert query managed independently and so each make analyses of source table and joins on its own.
    To make my question more concrete, I will introduce two simple examples of stream ETL:
    1) start-> (table scan)--> (joins)--> (inserting into the table t1)
    2) start-> (table scan)--> (joins)-> two targets: (insert into table t1)
    -> two targets: (deduplicator)--> (insertion in table t2)
    Admit, that scans and joins are very expensive comparing to insert rows. Thus, it is usually, if oracle performs scans of tables 2 and joined in example 2) and example 2) take twice longer than example 1)?
    Or fact Oracle is so smart that it can cache the result of entering the first query and use it again in the second query?

    Best regards
    Pawel

    Hi Pawel,

    Thus, it is usually, if oracle performs scans of tables 2 and joined in example 2) and example 2) take twice longer than example 1)?

    Yes, you are right

    Or fact Oracle is so smart that it can cache the result of entering the first query and use it again in the second query?

    Nor the database Oracle or OWB don't is not to intermediate capabilities query result caching.
    While the Oracle database feature "result cache queries", but it must match exactly to SQL source and it store only the final query result...

    Kind regards
    Oleg

  • Creating a combined chronology based on several chronologies in several tables

    Hello
    I need to extract a timeline for a customer based on valid_from and valid_to dates in several tables.
    For example: I have a table named customers with an id, a valid_from a valid_to date and a table named contracts with contrat_name and customer_id and valid_from valid_to:

    CUSTOMERS:
    ID | VALID_FROM | VALID_TO
    1. 01.03.2010 | 01.01.4000

    CONTRACTS:
    CONTRACT_NAME | CUSTOMER_ID | VALID_FROM | VALID_TO
    Contracted | 1. 01.03.2010 | 01.10.2010
    ContractB | 1. 01.10.2010 | 01.01.4000

    The following statement would now give me the correct chronology:
    Select customer cus.id, con.contract_name, greatest(cus.valid_from,con.valid_from) least(cus.valid_to,con.valid_to) valid_to valid_from
    customers cus
    stupid contracts on cus.id = con.customer_id inner join;

    CUSTOMER | CONTRACT | VALID_FROM | VALID_TO
    1. Contracted | 01.03.2010 | 01.10.2010
    1. ContractB | 01.10.2010 | 01.01.4000

    It works, but I get a problem whenever I have a point from the time there is no contract for a client, but I would always like to have these periods in my calendar:

    Suppose the following data and the same select statement:

    CUSTOMERS:
    ID | VALID_FROM | VALID_TO
    1. 01.03.2010 | 01.01.4000

    CONTRACTS:
    CONTRACT_NAME | CUSTOMER_ID | VALID_FROM | VALID_TO
    Contracted | 1. 01.05.2010 | 01.10.2010
    ContractB | 1. 01.12.2010 | 01.03.2011

    What I would now get would be:
    CUSTOMER | CONTRACT | VALID_FROM | VALID_TO
    1. Contracted | 01.05.2010 | 01.10.2010
    1. ContractB | 01.12.2010 | 01.03.2011

    But what I get is the following:
    CUSTOMER | CONTRACT | VALID_FROM | VALID_TO
    1. null | 01.03.2010 | 01.05.2010
    1. Contracted | 01.05.2010 | 01.10.2010
    1. null | 01.10.2010 | 01.12.2010
    1. ContractB | 01.12.2010 | 01.03.2011
    1. null | 01.03.2011 | 01.01.4000

    What I won't is generate a result with contract = null any time, there is no contract because I actually want to join the chronology of several different tables into one and it would be very complicated to assume things based on what data can or can not be found in a specific table.

    Thanks for any help or ideas,
    Kind regards
    Thomas

    Hi, Thomas,.

    Whenever you have a problem, after the sample data in a form that people can use to recreate the problem and test their ideas. CREATE TABLE and INSERT statements are great.
    For example:

    CREATE TABLE     customers
    (     customer_id     NUMBER (6)     PRIMARY KEY
    ,     valid_from     DATE          NOT NULL
    ,     valid_to     DATE          NOT NULL
    );
    
    INSERT INTO customers (customer_id, valid_from, valid_to) VALUES (1, DATE '2010-03-01', DATE '4000-01-01');
    INSERT INTO customers (customer_id, valid_from, valid_to) VALUES (2, DATE '2010-03-01', DATE '4000-01-01');
    
    CREATE TABLE     contracts
    (     contract_name     VARCHAR2 (15)     NOT NULL
    ,     customer_id     NUMBER (6)
    ,     valid_from     DATE          NOT NULL
    ,     valid_to     DATE          NOT NULL
    );
    
    INSERT INTO contracts (contract_name, customer_id, valid_from,        valid_to)
         VALUES            ('Contract 1a', 1,           DATE '2010-03-01', DATE '2010-10-01');
    INSERT INTO contracts (contract_name, customer_id, valid_from,        valid_to)
         VALUES            ('Contract 1b', 1,           DATE '2010-10-01', DATE '4000-01-01');
    
    INSERT INTO contracts (contract_name, customer_id, valid_from,        valid_to)
         VALUES            ('Contract 2a', 2,           DATE '2010-05-01', DATE '2010-10-01');
    INSERT INTO contracts (contract_name, customer_id, valid_from,        valid_to)
         VALUES            ('Contract 2b', 2,           DATE '2010-12-01', DATE '2011-03-01');
    

    If a customer contracts of n, then you might need as much as 2n + lines 1 output for this client:
    (a) 1 row showing the period, not from the date of customers both valid_from 1st contract begins
    (b) n lines indicating the periods under contracts
    (c) n lines indicating the period right after each contract, until the following starts (or valid_to of the client, if there is no next contract)
    However, you will have lines for periods not contacted ((a) or (c)) if their mandate is 0 days.

    This sounds like a job for the UNION. Make a UNION 3 lanes in a subquery to generate (a), (b), and (c), and then put a WHERE clause on the combined, results to filter the lines not length 0.
    In the query subsidiary UNION, (a) can be done with a query GROUP BY, and (c) can be done using the analytical function of LEAD.

    WITH     union_data     AS
    (
         SELECT       ua.customer_id
         ,       NULL               AS contract_name
         ,       MIN (ua.valid_from)     AS valid_from
         ,       MIN (oa.valid_from)     AS valid_to
         FROM       customers     ua
         JOIN       contracts     oa     ON     ua.customer_id     = oa.customer_id
         GROUP BY  ua.customer_id
         --
        UNION ALL
         --
         SELECT       customer_id
         ,       contract_name
         ,       valid_from
         ,       valid_to
         FROM       contracts
         --
        UNION ALL
         --
         SELECT       uc.customer_id
         ,       NULL               AS contract_name
         ,       oc.valid_to          AS valid_from
         ,       LEAD ( oc.valid_from
                     , 1
                     , uc.valid_to
                     ) OVER ( PARTITION BY  uc.customer_id
                        ORDER BY      oc.valid_from
                         )          AS valid_to
         FROM       customers     uc
         JOIN       contracts     oc     ON     uc.customer_id     = oc.customer_id
    )
    SELECT       *
    FROM       union_data
    WHERE       contract_name     IS NOT NULL
    OR       valid_from     < valid_to
    ORDER BY  customer_id
    ,       valid_from
    ;
    

    Output:

    CUSTOMER_ID CONTRACT_NAME   VALID_FROM VALID_TO
    ----------- --------------- ---------- ----------
              1 Contract 1a     01.03.2010 01.10.2010
              1 Contract 1b     01.10.2010 01.01.4000
    
              2                 01.03.2010 01.05.2010
              2 Contract 2a     01.05.2010 01.10.2010
              2                 01.10.2010 01.12.2010
              2 Contract 2b     01.12.2010 01.03.2011
              2                 01.03.2011 01.01.4000
    

    Published by: Frank Kulash, April 20, 2011 06:51
    Examples added

  • Problem creating several tables in a story

    Hello

    I have a script that any text in a .txt file, then make a table out of it. Which works very well. However, at a later date I want to import text over a different .txt file and also what to do in a table. And I'll have the opportunity to do several times.

    All the tables are in the same story.

    The first table is created at the same time, the document ID is created. When I run the script to add a second table, the script detects that the document exists and that it assumes that there is already a table. The script then goes to a function that creates a second table. This works fine as well.

    However, I can't add then all the tables more without the following tables to be added to the second table, which is quite messy.

    Here's a mush down script that just focuses on the problem. I wrote it so that it will add a table of second and third in the first. What I have to do is to reduce the functions secondTable() and thirdTable() in a function. If you comment out the thirdTable() and run the script with the function secondTable(), twice, you will see the problem I have.

    To do this, simply open a new document ID, page, with structure in a single text.

    Thanks for any help,

    Tom

    myDoc var = app.activeDocument;

    monarticle var = myDoc.stories.everyItem ();

    firstTable();

    secondTable();

    secondTable();

    thirdTable();

    functions *.
    function firstTable() {}
    var lastInsertionPointIndex = myStory.insertionPoints.lastItem () .index;
    myStory.insertionPoints.item (lastInsertionPointIndex) = .silence ' Cell a \tCell two\rCell three four \tCell;
    var lastChar = myStory.characters.lastItem ();
    var firstChar = myStory.characters.item(-lastInsertionPointIndex);
    var theTextRange = myStory.texts.itemByRange (firstChar, lastChar)
    theTextRange.convertToTable("\t","\r");
    } //end firstTable

    function secondTable() {}
    var lastInsertionPointIndex = myStory.insertionPoints.lastItem () .index;
    myStory.insertionPoints.item (lastInsertionPointIndex) = .silence ' Cell a \tCell two\rCell three four \tCell;
    var lastInsertionPointIndex = myStory.insertionPoints.lastItem () .index;
    var lastChar = myStory.characters.lastItem ();
    var firstChar = myStory.characters.item(-lastInsertionPointIndex+1);
    var theTextRange = myStory.texts.itemByRange (firstChar, lastChar)
    theTextRange.convertToTable("\t","\r");
    } //end secondTable

    function thirdTable() {}
    var lastInsertionPointIndex = myStory.insertionPoints.lastItem () .index;
    myStory.insertionPoints.item (lastInsertionPointIndex) = .silence ' Cell a \tCell two\rCell three four \tCell;
    var lastInsertionPointIndex = myStory.insertionPoints.lastItem () .index;
    var lastChar = myStory.characters.lastItem ();
    var firstChar = myStory.characters.item(-lastInsertionPointIndex+2);
    var theTextRange = myStory.texts.itemByRange (firstChar, lastChar)
    theTextRange.convertToTable("\t","\r");
    } //end thirdTable

    Hi Tom,

    Please check below the code.

    var myDoc = app.activeDocument;
    
    var myStory = myDoc.stories[0];
    
    firstTable();
    
    secondTable();
    
    secondTable();
    
    thirdTable();
    
    //***functions*****
    function firstTable(){
        var lastInsertionPointIndex = myStory.insertionPoints.lastItem().index;
         var firstChar = myStory.characters.item(lastInsertionPointIndex);
         myStory.insertionPoints.item(lastInsertionPointIndex).contents = "Cell one \tCell two\rCell three \tCell four";
        var lastChar = myStory.characters.lastItem();
        var theTextRange = myStory.texts.itemByRange(firstChar, lastChar)
        theTextRange.convertToTable("\t","\r");
    }//end firstTable
    
    function secondTable(aa){
        var lastInsertionPointIndex = myStory.insertionPoints.lastItem().index;
         var firstChar = myStory.characters.item(lastInsertionPointIndex);
         myStory.insertionPoints.item(lastInsertionPointIndex).contents = "Cell one \tCell two\rCell three \tCell four";
        var lastInsertionPointIndex = myStory.insertionPoints.lastItem().index;
        var lastChar = myStory.characters.lastItem();
        var theTextRange = myStory.texts.itemByRange(firstChar, lastChar)
        theTextRange.convertToTable("\t","\r");
    }//end secondTable
    
    function thirdTable(){
        var lastInsertionPointIndex = myStory.insertionPoints.lastItem().index;
         var firstChar = myStory.characters.item(lastInsertionPointIndex);
         myStory.insertionPoints.item(lastInsertionPointIndex).contents = "Cell one \tCell two\rCell three \tCell four";
        var lastInsertionPointIndex = myStory.insertionPoints.lastItem().index;
        var lastChar = myStory.characters.lastItem();
        var theTextRange = myStory.texts.itemByRange(firstChar, lastChar)
        theTextRange.convertToTable("\t","\r");
    }//end thirdTable
    

    Hope it will work for you.

    Shonky

  • How to make a table with ActiveX Excel using Excel_RangeSetValue2?

    Hello

    I want to make a table in Excel. For this, I use two functions: Excel_WorksheetGetRange and Excel_RangeSetValue2.

    I write the table on Excel file, but only the first instance of the table is copied.

    Here, a part of my program:

    char * DataToWrite = {"A", "B", "C", "D"}

    cCell Char [10];
    VARIANT vCell, data;

    ExcelObj_Worksheet hWorksheet;

    ExcelObj_Range hRange;

    ...

    CA_VariantSetCString (& vCell, cCell);        cCell = a1: a4
    Excel_WorksheetGetRange (hWorksheet, NULL, vCell, CA_DEFAULT_VAL, & hRange);
    CA_VariantSetCString (& Data, DataToWrite);
    Excel_RangeSetValue2 (hRange, NULL), data;

    Here what I get when I'm compiling on Excel file:

    A

    A

    A

    A

    You must use the other instructions to complete the range of cells:

    strcpy (msg, "A1: a4");
    CA_VariantSetCString (& MyVariant, msg);
    Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyVariant, CA_DEFAULT_VAL, & ExcelRangeHandle);
    Excel_RangeActivate (ExcelRangeHandle, NULL, NULL);

    Create a SafeArray of data table
    CA_VariantSet2DArray (& MyVariant, CAVT_CSTRING, lines, 1 table);
    Transfer data to Excel range
    Excel_SetProperty (ExcelRangeHandle, NULL, Excel_RangeValue2, CAVT_VARIANT, MyVariant);

    ClearObjHandle (ExcelRangeHandle);

  • How to make the table from separate text semikolon

    Hello

    I have a text with multiple lines. The lines are separated with \r\n.

    In every row is the same number of values that are separated by a semikolons.

    How can I (easy) make the tables of each value online?

    Currently, I solved it by creating a loop and using game-model, register shift, to insert to the table... But this looks very great.

    How can I make this easier?

    Thanks for the help

    Hello

    We must define the separator.

    See the image as an attachment.

    Mike

  • in win movie maker several times during any change in my film, it does not

    in windows movie maker several times when I made changes in my movie, he does not he will accept that one change, then it will not respond

    What is the source of your file? What is a compatible format?
    Try with a small file and see if you still found a blockage when you try to make a change.

    Thank you

    Marilyn

  • joining several tables to generate data

    with itemlist as

    (select 1 cid, listname 'test', 'r' flg Union double all the)

    Select 2 cid, listname 'test2', ' not flg double

    ),

    category 1)

    Select 1 cid, 122 k' sub '123' catcode, of any double Union

    Select 1 cid, '234i' catcode, sub '124' all Union double

    Select 1 cid, 238 k' void '124' catcode, double

    )

    void)

    Select 1 cid, sub '123' of any union double

    Select 1 cid, sub ' 124' double

    )

    I want to write a static query that gathers all the tables and produces the following output assuming that

    CID is you pass as a parameter

    CID listname flg topic catcode

    1 123 122 k r test

    1 test of r 234i 124

    1 124 238 k r test

    Suppose the data as changes to follow and even cid 1 is to pass as a parameter:

    with itemlist as

    (select 1 cid, listname 'test', 'r' flg Union double all the)

    Select 2 cid, listname 'test2', ' not flg double

    ),

    category 1)

    Select 1 cid, 122 k' sub '123' catcode, of any double Union

    Select 1 cid, '234i' catcode, sub '124' all Union double

    Select 1 cid, 238 k' void '124' catcode, double

    )

    void)

    Select 2 cid, sub '123' of any union double

    Select 2 cid, sub '124' double

    )

    then the output should be

    CID listname flg topic catcode

    1 r test 123

    1 test of r 124

    1 test of r 124

    for a final example, suppose the data now as to user 1 as cid

    with itemlist as

    (select 1 cid, listname 'test', 'r' flg Union double all the)

    Select 2 cid, listname 'test2', ' not flg double

    ),

    category 1)

    Select 2 cid, 122 k' sub '123' catcode, of any double Union

    Select 2 cid, catcode '234i', '124' void in any union double

    Select 2 cid, 238 k' void '124' catcode, double

    )

    void)

    Select 1 cid, sub '123' of any union double

    Select 2 cid, sub '124' double

    )

    output must be

    CID listname flg topic catcode

    1       test            r                 123

    Basically, the user will pass a cid, in this case 1. I'll read the itemlist where cid = 1 and I want to join all the other tables

    to itemlist in such a way that I can generate extra lines.  If no entry is found for cid 1, for example, in category 1 or auxiliary table

    then the beloging column of this table must be null in the result

    can someone help me write a query to produce the output above

    Hello

    elmasduro wrote:

    ...

    Here is an explanation of the output.  a user will have a front screen where it can enter itemlist info.
    then in a submenu may enter a category or sub or both or none of them. the user can select multiple categories or sub
    When the user presses the button Save, an entry will be made in the itemlist table, for example the cid = 1.
    If he choose a category but without Subs, then will be entered into the table at say cid = 1


    but no entries will be made for sub because he chose not to all values.  If he chooses void instead of category values
    then sub taable will fill and category is not. If he chooses the category and under, then both will be filled.

    what I want to do is to join the itemlist with table category and sub table and get the data to the Scriptures, this intervention of the user.
    These entries not found will be the null value column in the result.
    for example, the cid = 1 itemlist, if user enter category but not void, itemlist will be the join with the table category and sub
    but since sub has no entry for the cid = 1, the column object will be empty in the output, but catcode will fill

    I'm so confused.

    It is a query (that is, just a SELECT statement, which shows the data already present in the tables), or is this a DML statement, that will add data to the tables?  If it's just a query, then do not say things like "entries will be taken" or "filled with tables.

    Assuming you want a request maybe you want something like this:

    WITH c_and_s AS

    (

    SELECT NVL (c.cid, s.cid) AS cid

    NVL (c.sub, s.sub) AS topic

    , NVL2 (s.cid, c.catcode, NULL) AS catcode

    CATEGORY 1 c

    FULL OUTER JOIN void s ON c.cid = s.cid

    AND c.sub = s.sub

    )

    SELECT i.cid, i.listname, i.flg

    cs.subject, cs.catcode

    Itemlist I have

    LEFT OUTER JOIN c_and_s ON cs.cid = i.cid cs

    WHERE the i.cid (1) - you can do the cids 2 or several at the same time, if you want to

    ORDER BY i.cid, cs.subject, cs.catcode

    ;

    This example gets the output you asked data sample you posted.

Maybe you are looking for

  • How do I re download beta MacOS Sierra?

    I signed up for the beta and registered program my Mac and installed MacOS Sierra beta but had problems and had to reinstall a backup of my old system of El Capitan. I want to download and re-install MacOS Sierra and I registered on the beta Apple we

  • Can I change the video card in the Portege M700?

    I recently received a Portege M700 as a gift and I didn't really like the Intel supplied with the laptop video card. If I want to change the video card to a more adapted to more modern games. Something like an nVidia or ATi video card. I don't think

  • -17502: Level system runtime exception

    Hi, have a question about the management of the IDS uEye cameras in TestStand 4.2.1. When I use the development system LabView2009 all work very well. When select the adapter of the term I have a-17502: System-level Exception. I create a debug test s

  • HP Officejet 6500 709 has scanning problem

    My USB printer scanning is no longer the computer. It worked fine under Vista but on the upgrade to Windows 7 Solution center has crasehd. I tried to download the Solution Center HP full feature, but it seems to download is not available for use. Try

  • Laptop battery does not load fully

    I replaced battery week & last with a new original Toshiba battery when first start morning computer, it does not load, but not discharge does not, either.  The battery was working fine, but he is 7 years old.  I discovered that if I unplug the charg