Last row of data in a 2d array is not written, but is written using VI is next time

Hi all

I have problems with writing the data. I'm taking some statistics of a bunch of files .tdm and their record in a master file. I have all this down, but the last part data is not written using the program first. When I run the program immediately after, the last line of data from the first run is the first line of the recorded data. I guess that the buffer that contains the table is not be emptied at the end of the program, but I don't know how to "clear" a Board or if such a method exists (I know it does for queues, but tables are supposed to be simpler). I tried including a boot read before hand for loop because I thought that this was an option disabled by a question. This does not resolve the issue. For example, here is what may look like the data:

1st round:

A

B

C

D

2nd round:

E

A

B

C

D

I have included my code and if you see something I can do to fix this problem, please let me know.

Thank you for your time,

Seth

My guess is the race condition critical you created using local variables.

You have local variables of min table, average, max table, cycle count and names of channel that you use to write to a file.  However, the terminals are readily available that you can branch wires directly from

The problem is the race condition.  Your local variables will be read very early in the iteration of the loop For, before any valid data was written to the terminals referring to these people.

Don't use local variables, simply use the son.

Tags: NI Software

Similar Questions

  • How to write to an existing file, but replace the data just to the last row

    In my data acquisition system, the columns represent the channels and each represent line analysis of the data for all channels. It is easy to get the file write by add or replace a file exist. But sometimes I want to just overwriting new data in the last line in a file exist. for example: I have DAQ with 10 channels and scan all channels for three times in each race. So my data file will be 10 columns and 3 rows of each run if I put the file "append". next time I want to record the data by "crash" (so a single row of 3 scans) in the same file but just crash to 11th place (so I'm going to keep all the data I had previously). How to do this?

    Hi GPIB Analyzer.

    Why do you need to read the entire file?

    You can:

    -get the size of file with 'Get file size' or 'file info '.

    -set the position of reading with "Set file position.

    You should subtract the file size 1024, define what the position of the file read 1024 bytes. Now analyze this 1 KB of data, find the last line, set the file again, write to the file. No need to read the entire file.

    And as previously stated:

    How Labview should know the last line in the file without looking for him? You can do this research better than a simple brute force attack

  • Will be able to choose only the last the last row in a window/desktop icon in Windows 7

    I use my laptop with Windows. Recently I could not open the icons/files you want in the Office of a window.

    I may be able to choose only the last the last row in a window/desktop icon in Windows 7.
    Although double-clicking on an icon only the last icon in the window opens. Pls help me...

    Hi Peter,.

    1 when was the last time that the desktop icons worked?

    2. you have any security program installed on the computer?

    3. don't you face any performance issues on the computer?

    4 did you a recent software or changes to the material on the computer?

    Method 1:

    I would say allowing you to run the FIXIT from the link provided and check.

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

    Method 2:

    If the problem persists, you can also run the Scanner security Microsoft and check all infections.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: there is a risk of data loss if all the files are infected and which can be removed in the cleaning process.

    Method 3:

    I also suggest to try to run the System File Checker scan on the computer. The scan will replace all the Windows files corrupted with new ones.

    Click on the link mentioned below for further guidance on the scanning of the file system Checker

    http://support.Microsoft.com/kb/929833

    Hope this helps and let us know if you need more assistance. We will be happy to help you.

  • Select the first or last row of sql Command

    Hello

    I am trying to get the fist or the last line of output from sql below

    SQL> set head off;
    SQL> select  r.actual_start_date,r.phase_code,r.status_code,r.actual_completion_date from
      2      apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r
       where p.concurrent_program_id = r.concurrent_program_id
      3    4      and p.application_id = r.program_application_id
      5      and p.user_concurrent_program_name like 'Purge Concurrent Request and/or Manager Data'
      6  and  r.actual_start_date >= sysdate-7
    --and rownum<1
      7    8  --order by r.requested_start_date
      9  ORDER BY r.actual_completion_date DESC;
    
    
    29-DEC-13          C C 29-DEC-13
    28-DEC-13          C C 28-DEC-13
    27-DEC-13          C C 27-DEC-13
    26-DEC-13          C C 26-DEC-13
    25-DEC-13          C C 25-DEC-13
    24-DEC-13          C C 24-DEC-13
    23-DEC-13          C C 23-DEC-13
    
    
    7 rows selected.
    
    
    SQL> select  r.actual_start_date,r.phase_code,r.status_code,r.actual_completion_date from
      2      apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r
       where p.concurrent_program_id = r.concurrent_program_id
      3    4      and p.application_id = r.program_application_id
      5      and p.user_concurrent_program_name like 'Purge Concurrent Request and/or Manager Data'
      6  and  r.actual_start_date >= sysdate-7
      7  and rownum<2
      8  --order by r.requested_start_date
      9  ORDER BY r.actual_completion_date DESC;
    
    
    
    27-DEC-13          C C 27-DEC-13
    
    
    
    
    
    
    SQL> select  r.actual_start_date,r.phase_code,r.status_code,r.actual_completion_date from
      2      apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r
       where p.concurrent_program_id = r.concurrent_program_id
      3    4      and p.application_id = r.program_application_id
      5      and p.user_concurrent_program_name like 'Purge Concurrent Request and/or Manager Data'
      6  and  r.actual_start_date >= sysdate-7
      7  and rownum<1
      8  --order by r.requested_start_date
      9  ORDER BY r.actual_completion_date DESC;
    
    
    no rows selected
    
    
    SQL>
    
    

    I want to get the last run of the program which is the first line of the top of the output of sql. (which is December 29, 13, first row on top of the exit)

    But if I use the condition as ' where rownum < 1, its not giving any output, if I use where rownum < 2, if you do not have out. "

    Grateful if someone can help.

    -Thank you

    Vijay...

    Hi Vijay,

    The following should work...

    ROWNUM< 1="" will="" not="" retrieve="" any="" rows="" as="" rownum="" values="" start="" with="" 1.="" to="" get="" the="" desired="" result="" you="" have="" to="" build="" the="" result="" set,="" order="" it="" and="" then="" select="" the="" desired="">

    SELECT *.

    Of

    (SELECT r.actual_start_date,

    r.phase_code,

    r.status_code,

    r.actual_completion_date

    Apps.fnd_concurrent_programs_vl p,

    Apps.FND_CONCURRENT_REQUESTS r

    WHERE p.concurrent_program_id = r.concurrent_program_id

    AND p.application_id = r.program_application_id

    AND p.user_concurrent_program_name LIKE 'Serve concurrent demand and/or Manager Data'

    AND r.actual_start_date > = sysdate-7

    -Order of r.requested_start_date

    ORDER BY r.actual_completion_date DESC

    )

    WHERE rownum< 2="">

    I hope this helps.

    VR,

    Sudhakar

  • CFHTTP Parse page for the last row of the table

    OK, so I need to analyze the page returned from a cfhttp call and select the last row in a table. I then take the value of this line and run another cfhttp to another page. This returns an html page where I'll need to parse for extr the img tag. Any thoughts?

    Here is a code:

    "" < cfhttp url = ' http://SERVERNAME/GetPhotoEncounters.cgi ' method = 'post' resolveurl = "yes" >
    < name cfhttpparam = 'TXTBox' type = "formfield" value = "17133804" >
    < / cfhttp >

    He returns (at the source):

    "< form method = post name ="EncounterInfo"action =" http://SERVERNAME/GeneratePhotos.cgi "> "
    < table border units is relative width is 0.9 colspec "C2 C1 C1 C1 C1 C1 C1 C1 C1" = >
    < th align = center > < view h3 > < / h3 >
    < th align = center > < No. h3 > < / h3 >
    < th align = center > < ID h3 > < / h3 >
    < th align = center > < Type of encounter h3 > < / h3 >
    < th align = center > < h3 > Date & time < / h3 >
    < th align = center > < Type h3 > < / h3 >
    < th align = center > < system indicator X h3 > < / h3 >
    < th align = center > < location Images h3 > < / h3 >
    < th align = center > < h3 database Ind > < / h3 >
    <! - data - >
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "36659622; 02/06/05 13:31:29 ">
    < td align = center > 36659622
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 02/06/05 13:31:29
    < td align = center > F
    < td align = center > ENF
    < td align = center > 967
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "37070943; 09/06/05 14:28:28 ">
    < td align = center > 37070943
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 09/06/05 14:28:28
    < td align = center > R
    < td align = center > ENF
    < td align = center > 968
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "38114421; 23/06/05 19:03:50 ">
    < td align = center > 38114421
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 23/06/05 19:03:50
    < td align = center > R
    < td align = center > ENF
    < td align = center > 968
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "38216303; 24/06/05 22:30:42 ">
    < td align = center > 38216303
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 24/06/05 22:30:42
    < td align = center > R
    < td align = center > ENF
    < td align = center > 968
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "41424139; 04/08/05 22:48:21 ">
    < td align = center > 41424139
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 04/08/05 22:48:21
    < td align = center > R
    < td align = center > ENF
    < td align = center > 968
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "42971024, 19/08/05 11:59:35" >
    < td align = center > 42971024
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 19/08/05 11:59:35
    < td align = center > R
    < td align = center > ENF
    < td align = center > 968
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "43676008, 15/09/05 00:43:33" >
    < td align = center > 43676008
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 15/09/05 00:43:33
    < td align = center > R
    < td align = center > ENF
    < td align = center > 968
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "51501911; 20/02/06 01:17:16 ">
    < td align = center > 51501911
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 20/02/06 01:17:16
    < td align = center > R
    < td align = center > ENF
    < td align = center > 970
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "52543143; 20/03/06 06:06:56 ">
    < td align = center > 52543143
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 20/03/06 06:06:56
    < td align = center > R
    < td align = center > ENF
    < td align = center > 971
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "52812077, 30/03/06 08:36:15" >
    < td align = center > 52812077
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 30/03/06 08:36:15
    < td align = center > R
    < td align = center > ENF
    < td align = center > 971
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "52983796; 07/04/06 15:15:32 ">
    < td align = center > 52983796
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 07/04/06 15:15:32
    < td align = center > R
    < td align = center > ENF
    < td align = center > 971
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "53243687; 23/04/06 14:58:23 ">
    < td align = center > 53243687
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 23/04/06 14:58:23
    < td align = center > R
    < td align = center > ENF
    < td align = center > 972
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "54447246; 24/06/06 00:46:23 ">
    < td align = center > 54447246
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 24/06/06 00:46:23
    < td align = center > R
    < td align = center > ENF
    < td align = center > 973
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "56717661; 05/07/06 06:45:19 ">
    < td align = center > 56717661
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 07/05/06 06:45:19
    < td align = center > R
    < td align = center > ENF
    < td align = center > 973
    < td align = center > R
    < b >
    < td align = center > < input type = "checkbox" name = "eid" value = "61073876; 28/08/06 02:13:33 ">
    < td align = center > 61073876
    < td align = center > 17133804
    < td align = center > BP
    < td align = center > 28/08/06 02:13:33
    < td align = center > R
    < td align = center > ENF
    < td align = center > 974
    < td align = center > R
    < /table >
    < /Center >
    < p align = "left" > < input type = "checkbox" name = "photoOnly" > < p >
    < INPUT TYPE = "SUBMIT" NAME = 'SUBMIT_BUTTON' VALUE = 'Show the photo (s)' >
    < INPUT TYPE = "BUTTON" NAME = "SELECT_ALL_BUTTON" VALUE = "Select all" onClick = "doSelectAll (15)" >
    < INPUT TYPE = "RESET" NAME = "CLEAR_ALL_BUTTON" VALUE = "Remove all" >
    < input type = "hidden" name = 'TXTBox' value = "17133804" >
    < br >
    < / make >

    I need the last row of the table checbox value. In this way, I can present this value on the next page via cfhttp. That would return:

    border = 1 >
    < b >
    < td align = "center" > < font color = 'blue' size = 4 > EID < / make >
    < td align = "center" > < font color = 'blue' size = 4 > Date < / make >
    < td align = "center" > < font color = 'blue' size = 4 > picture < / make >
    < td align = "center" > < font color = 'blue' size = 4 > picture < / make >
    < td align = "center" > < font color = 'blue' size = 4 > picture < / make >
    < b >
    < td > < b > < /b > 61073876
    < td > < b > 28/08/06 < /b > < br > < b > < /b > 02:13:33
    < td >
    < img src = "" / image_cache/61073876.jpeg ' height width 200 = 200 = > "
    < td >
    < img src = "" / image_cache/61073876_F2.gif ' height width 200 = 200 = > "
    < td >
    < img src = "" / image_cache/61073876_F7.gif ' height width 200 = 200 = > "
    < /table >

    On this basis, I need to the variable value, CBC three img tags. Then I can insert these values into a local database.

    Help me please, because I'm drowning on this one!

    Thank you all.

    You could loop on the content of the file and then parsing each line using a regular expression to extract your checkbox values and image. This is code that I wrote which gets the last box and a panoply of images based on your example. You may need to adjust the regular expression a bit if your example is not the same as the HTML code that you are monitoring.

  • Adding or several new rows of data to the DataGrid control

    My requirement is to provide the ability to add a new line to the data grid when the tabs off (the last cell of the last row of the data grid. I did my editable datagrid and in 'itemEditEnd' Manager I'm adding a new object (with empty values) to the data provider for the grid and setting focus to the grid and then by setting the new row index as the Index selected for the grid. None of this activation itemEditor for the first cell of the new row.

    I saw somewhere that sending the itemEditBeginning will do for me. But do not know how to proceed. Appreciate if you can point me to an example of woring sample.

    Set the editedItemPosition on the grid property. That should do it.

  • These can be wired together as their data types (digital, string, array, cluster, etc.) do not match.

    Hi, I get an error update LabVIEW 8.2 for 2011:

    These can be wired together as their data types (digital, string, array, cluster, etc.) do not match. View the contextual help window to find out what type of data is required.
    The type of the source is cluster of 2 elements.
    The type of the sink is typedef "IMAQ Image.ctl"
    IMAQImage (IMAQImage,).

    This type of incorrect argument can be caused by an old instance of the Image data type.
    To fix, simply replace the instance with the definition of type IMAQ Image.ctl in the control menu of the image palette.

    The source is:

    Call library function node - image (dup)

    The sink is:

    IMAQ_array for image - image

    I tried to delete the image VI IMAQ_array & always replacing but it connects...

    Here is a picture of the VI, I have a number of VI to update and they all have this problem

    Home is also the VI.

    See if you can shed some light on this

    The solution, he had to do with the representation of images in the old and the version of Labview

    I'm completely new to NI Vision, so I had no idea what I was looking for

    from this thread:

    http://forums.NI.com/NI/board/message?board.ID=200&message.ID=5849#M5849

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • Error renaming dates to an associative array of type date

    Hi all

    I am facing issue while assigning dates in an associative array of type date:

    Oracle version:

    SQL > select * from v version $;

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Stored procedure, I try to write is as follows

    1. create or replace procedure (jp1)
    2. p_start_date default date trunc(sysdate,'MM')
    3. p_end_date date default trunc (sysdate)
    4. )
    5. is
    6. number of l_no_of_days;
    7. type t_date_id is table of date
    8. index by pls_integer;
    9. l_date_id_arr t_date_id;
    10. Start
    11. l_no_of_days: = p_end_date - p_start_date;
    12. for i from 0
    13. .. l_no_of_days - 1
    14. loop
    15. l_date_id_arr: = p_start_date + i;
    16. dbms_output.put_line (p_start_date + i);
    17. end loop;
    18. end;
    19. /

    I get error on line 14 when compiling it. and the error message is as follows:

    JP1 PROCEDURAL errors:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    14/5 PL/SQL: statement ignored
    14/22 PLS-00382: expression is of the wrong type

    While studying this, I tried the value of (p_start_date + i) using dbms_output.put_line and the output is so date itself.

    1. create or replace procedure (jp1)
    2. p_start_date default date trunc(sysdate,'MM')
    3. p_end_date date default trunc (sysdate)
    4. )
    5. is
    6. number of l_no_of_days;
    7. type t_date_id is table of date
    8. index by pls_integer;
    9. l_date_id_arr t_date_id;
    10. Start
    11. l_no_of_days: = p_end_date - p_start_date;
    12. for i from 0... l_no_of_days-1

    13. loop
    14. -l_date_id_arr: = p_start_date + i;
    15. dbms_output.put_line (p_start_date + i);
    16. end loop;
    17. end;
    18. /

    output of the

    1. exec jp1

    is as follows:

    1ST DECEMBER 13

    2 DECEMBER 13

    3 DECEMBER 13

    DECEMBER 4, 13

    5 DECEMBER 13

    DECEMBER 6, 13

    7 DECEMBER 13

    DECEMBER 8, 13

    9 DECEMBER 13

    DECEMBER 10, 13

    DECEMBER 11, 13

    DECEMBER 12, 13

    13 DECEMBER 13

    14 DECEMBER 13

    15 DECEMBER 13

    16 DECEMBER 13

    17 DECEMBER 13

    18 DECEMBER 13

    I see the release date itself. so why he throws error while the same assignment to an associative array of type date.

    I tried Google too for the same but without success.

    Any help is appreciated in this regard not or any pointer another thread on the internet or in this forum.

    Thanks in advance

    Jagdeep Seven

    Read associative arrays:

    1. create or replace procedure (jp1)
    2. p_start_date default date trunc(sysdate,'MM')
    3. p_end_date date default trunc (sysdate)
    4. ) is
    5. number of l_no_of_days;
    6. type t_date_id is table of date
    7. index by pls_integer;
    8. l_date_id_arr t_date_id;
    9. Start
    10. l_no_of_days: = p_end_date - p_start_date;
    11. because me in 0.l_no_of_days - 1
    12. loop
    13. l_date_id_arr (I): = p_start_date + i;
    14. dbms_output.put_line (p_start_date + i);
    15. end loop;
    16. end;

    ----

    Ramin Hashimzade

  • Display an empty table row of data when the data is not present

    Hello

    Can u please tell me How to display a row of data empty table when the data is not present?

    in my case the column header appears as the code below.

    <? If: SD_Type_Data_ID3 = 'KH '? > <? If: SD_SpecialHandlingCode_SPHD_ID17 = 'H '? > <? for each: Supplemental_Data_S17? > <? end if? >

    can u pls help me.

    Thanks and greetings

    Sylvie Kumar

    You can insert a fictitious line. Have an if condition in it, to show only when condition does not satisfy.

  • Hide/no equla to the last row of records

    Hello

    I mentioned below records in Mount so each time I have select any mount it should now show the last line of this mount i.e. test No-3
    all records of Assembly that will not display the last rank of the number of test

    Mount day test_No and org2 to org3 org4 org1
    299,00 1 0 1 1 0 7186
    299,00 1 0 2 1 0 7186
    299,00 0 3 3 0 7186
    298,00 0 4 1 0 7186
    298,00 1 0 2 1 0 7186
    298,00 1 1 3 1 0 7186

    You want to show or hide the last row?

    If you want to display only last row, use the following query...

    select mount, day, org1, test_no, org2, org3, org4
    from
    (
      select mount, day, org1, test_no, org2, org3, org4,
               row_number()
                    over (partition by mount order by test_no desc) rn
      from your_table t
      --"Use the below filter if you need"
      --where mount = &your_value
    )
    where rn = 1;
    

    If you want to hide only last row, use the following query...

    select mount, day, org1, test_no, org2, org3, org4
    from
    (
      select mount, day, org1, test_no, org2, org3, org4,
               row_number()
                    over (partition by mount order by test_no desc) rn
      from your_table t
      --"Use the below filter if you need"
      --where mount = &your_value
    )
    where rn != 1;
    

    Published by: JAC on 7 February 2013 15:58

  • By selecting the last row of the table

    I'm trying to select the last row in a table. The tables will have a different number of lines, so I can't select based on a line number. I tried to use the location options, but get an error that "the object is not a function". Not sure what the problem is.

    table = app.selection[0];
    if (table.hasOwnProperty("baseline")) table = table.parent;
    if (table instanceof Cell) table = table.parent;
    if (table instanceof Column) table = table.parent;
    if (table instanceof Row) table = table.parent;
    if (table instanceof Table)
    
    {
                table.rows(LocationOptions.AT_END).cells.texts.everyItem().fontStyle = "regular";
     }
    

    You can use the placement options for this?

    Hello

    table. Rows being a collection of object using the index-[1] is a proper way

    but cells.texts generates an error. Change it to:

    table.rows[-1].cells.everyItem().texts.everyItem().appliedCharacterStyle = "myriad regular";
    

    Jarek

  • How show only last row value in a column of OBIEE

    Hi Experts

    How show only last row value in a column of OBIEE


    Thank you
    V

    Hello
    Pull column criteria, which you want to display only last row. Filter Advanced sql apply now to this column as a.
    RCOMPTE ("customer D1". "C1 Cust Name") = MAX (RCOMPTE ("customer D1". " Cust C1 Cust Name name')) here is the column where I applied the filter.
    So, it gives only last row in the name column of the Cust.

    Awarded points if the answer
    Reference: http://forums.oracle.com/forums/ann.jspa?annID=939

    Kind regards
    Srikanth
    http://bintelligencegroup.WordPress.com/

  • Creation of new rows of data in FDM

    Is it possible to use scripts or logical process to create new lines of data in MDF? For example, I have a single row of data containing a customs account sales intercompany, PIC, etc. I want this to come in the system of notification of GAAP in CANADA, but I need to create a second line that changes the account becomes the PEAK (none) and becomes the 4 Custom to one outside our main hierarchy.

    I know it can be done in the consolidation of HFM, but want to discover and FDM solution if possible. Any tips? I have accounts single source key off of. Thank you!

    Yes, this is one of the main reasons logical groups exist in FDM. The guide of the administrator for more information.

Maybe you are looking for

  • What type of DVD backup disc is good for instance RW + used on Windows Vista Home Premium?

    I need to know if I can back up my drive (E :) with RW + 16 x 4.7 GB 120 min?  Is this one image the plant to recover and restore on my personal computer?  Also when I use Microsoft Security Essentials and run a scan completes or a quick analysis wha

  • VAIO Duo 11 charges slow reeeallyy

    If anyone else has noticed this? I admit that I only got the Duo the other day, maybe I'm breaking in. It took almost all day for my second battery... I'll see if I can get a program to actually record how long it takes.

  • Bandwidth does not exceed 384 Kbps.

    Hello I installed CUCM 11.5 and configured DX80 with her. I have the video quality is very low because the bandwidth does not exceed 384 Kbps. Please suggest if it is possible to increase it to 2 Mbps. Thanks in advance.

  • RE: Response to your last e-mail asking me: 'where did you get THIS information?

    You (MSN); just emailed me asking "where did you get THIS information? [Here's the answer]: I received a message from the "YOU"? MSN, the other day detailing your NEW policy that would take effect as of October 19, claiming that #1): anyone using MSN

  • Screen saver won't stay on time

    Hey! My screen saver options do not change by more than a minute, I would change it to 60 minutes, click on apply and OK, but when I go back to the options that it would still be just over one minute, rotation of the screen saver wont do as well, it