Options

Temporary page deletes all records

MagnoMagno Member Posts: 168
edited 2011-05-18 in NAV Three Tier
I have a page with the property SourceTableTemporary set to TRUE.
On openform i created a function FillTempTable which does a reset and deleteall to start.
When running the page, this works as a charm.

However, when a page.runmodal(ID,rec) is done, the page is using the rec var supplied in the runmodal on the page object. So not the temporary one. This causes all records in the real table to be deleted...

Does anyone have an idea how i could check/solve this?
There are no bugs, only random undocumented features...
---
My Blog: http://NAV-Magno.be

Comments

  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    Magno wrote:
    I have a page with the property SourceTableTemporary set to TRUE.
    On openform i created a function FillTempTable which does a reset and deleteall to start.
    When running the page, this works as a charm.

    However, when a page.runmodal(ID,rec) is done, the page is using the rec var supplied in the runmodal on the page object. So not the temporary one. This causes all records in the real table to be deleted...

    Does anyone have an idea how i could check/solve this?
    Hi Magno.
    Belias wrote an interesting post in his blog in which explain how to check if a variable is temporary or not.
    http://mibuso.com/blogs/belias/2010/09/ ... temporary/
    Maybe could help you.
    ~Rik~
    It works as expected... More or Less...
  • Options
    MagnoMagno Member Posts: 168
    I knew i could check and give an error, but a working solution would be preferred ;)
    There are no bugs, only random undocumented features...
    ---
    My Blog: http://NAV-Magno.be
Sign In or Register to comment.