Currpage.Close on OnOpenPage() doesn't work

deV.chdeV.ch Member Posts: 543
edited 2011-05-02 in NAV Three Tier
Today i noticed that the currpage.close function doesn't work on the OnOpenPage trigger, it works when placed on an action but not on the trigger of opening Page.
Does anyone have a solution for that? I need this function, cause i need to open another Page instead of the page that is opened and close the original one! In Classic Client this works fine.

The only workaround i found, was to close the page with sendkeys, but this way i can see the original page beeing opened. It pops up and closes and then closes and thats not realy a solution...

Any ideas?

Comments

  • jreynoldsjreynolds Member Posts: 175
    Not sure if this will work for what you are trying to do, but ERROR('') will close the current page when called from the OnOpenPage trigger.
  • deV.chdeV.ch Member Posts: 543
    :thumbsup: Thx, works fine!
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    =D> nice solution. Thx!
    ~Rik~
    It works as expected... More or Less...
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    jreynolds wrote: »
    Not sure if this will work for what you are trying to do, but ERROR('') will close the current page when called from the OnOpenPage trigger.

    This one helped me today. Thx!

    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.