Programming Temporary Tables Problem: Fill data into table

AliBomberAliBomber Member Posts: 13
edited 2003-04-07 in Navision Attain
Hi,
I tried to create a temporary table, by using records, like recommended in the developers guide. No I have the following problem:
evertime I try to insert some date into a table, e.g. automatic by function, only the last value filled in is visible. Looks like the other values haven't been inserted. Has anyone an example, how to solve my problem or can help me ??
Thank You...

Comments

  • PrebenRasmussenPrebenRasmussen Member Posts: 137
    You will have to supply some of your code, if you expect to get any help.

    Possible causes:
    - Didn't fill the primary key fields.
    - Set a filter.
    - ...

    but I'm just guessing...
  • DenSterDenSter Member Posts: 8,307
    Even though you can create a record type variable and set it to temporary, you still have to treat it in code as if it were a regular table, so you must do INSERT and MODIFY and everything else. The variable and its values will only be destroyed as soon as the codeunit/form/etc. is closed. If you want to copy records from your temp table into your database, you must have another record type variable and copy the records from your temp one into the regular one.

    HTH
Sign In or Register to comment.