Open page with new record

rcverbeekrcverbeek Member Posts: 32
edited 2022-01-27 in NAV Three Tier
Hi,

I am working on a Nav 2009 3 tier environment. I have a list page and two card pages CardA and CardB. Based on the value of some column, the system needs to open either CardA or CardB.

First question:
Is it possible to overrule the double click action? So when the user double clicks, it opens PageA or PageB ?

Second question
Since I can't use the standard New record functionality, I have created two actions: NewA and NewB. If the user hits NewA it should open PageA and if he hits NewB it should open PageB. So far so good. However I want PageA or PageB to open with a new empty record. I thought I could do this with
Record.INIT
PageA.SETTABLEVIW(Record)
PageA.Run

But this doesn't work. Is there a way to open a page with an empty record?

Thank you!

Best Answer

  • bbrownbbrown Member Posts: 3,268
    Answer ✓
    Take a look at one of the pages for a granule setup table. See the "OnOpenPage" trigger. You will need to assign the primary key fields at that point.
    There are no bugs - only undocumented features.

Answers

  • bbrownbbrown Member Posts: 3,268
    Answer ✓
    Take a look at one of the pages for a granule setup table. See the "OnOpenPage" trigger. You will need to assign the primary key fields at that point.
    There are no bugs - only undocumented features.
  • rcverbeekrcverbeek Member Posts: 32
    Thanks, thats what I was looking for!
  • elundelund Member Posts: 1
    @rcverbeek What was the solution?
    Cannot find any solutions where I am not prompt for "Do you want to rename the record?"
    Thanks in advance!
Sign In or Register to comment.