New table error

I have saved the sales order header, line into a new table and also the pages have been saved to a new page. Now when i am trying to change the source table it is giving me the error that the table should be 37 and  the new table i am trying to give.

 

All kinds of help would be appreciated.

  • Hi Yuneek,
    Yes you will get this error a lot of times. Basically anywhere, were the table you copied calls an codeunit or function etc. in other table. Anywhere where this occurs, then you either need to remove the code or copy that code too.

    I do understand what you are trying to do (all developers "copy" code). But right here with two so complex tables, then I am not going to recommend you to do it, unless you are very "familiar" with NAV development. My guess is that it would take me about a week or so to copy the two tables into a separate set. And that's an optimistic estimate, based on 20+ years of NAV development.

    My advise is to start with something much simpler, or copy only the parts you need. Table 36 and 37 are just about the most complex to copy.
  • In reply to Erik P. Ernst:

    Thankyou so much for your reply erik.. i have created 2 new tables and added the fields i require(Header & line), but can you please tell me the way to show it like the sales order list and a collaborated page for the header and line?

    would be very thankful to you as it is required very urgently.
  • In reply to Yuneek Singh:

    Hi Yuneek.
    Not quite sure what you mean by a collaborated page? Like the normal sales order?
    So you need a part list page for the lines, which is inserted in the document page. And then of course the primary keys of your new tables need to link lines to headers.
Related