Temporary Table

Kc_NirvanaKc_Nirvana Member Posts: 146
Hello....
I want to have one form type card that only accepts one record with a temporary record.
Example:
temp record - gen. journal Line

when i open the form it creates a new record but i want that the user can't create a new record with the key f3.
It is possible?
Junior Consultant & Developer in Dynamics NAV

"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"

Nirvana - Nevermind - Smells Like Teen Spirit

Answers

  • vijay_gvijay_g Member Posts: 884
    set InsertAllowed property to No of form.
  • Kc_NirvanaKc_Nirvana Member Posts: 146
    But then i can't insert any record and that's not my objective.
    My objective is to insert only one record
    Junior Consultant & Developer in Dynamics NAV

    "I'm worse at what I do best
    And for this gift I feel blessed
    Our little group has always been
    And always will until the end"

    Nirvana - Nevermind - Smells Like Teen Spirit
  • Kc_NirvanaKc_Nirvana Member Posts: 146
    Someone?
    Junior Consultant & Developer in Dynamics NAV

    "I'm worse at what I do best
    And for this gift I feel blessed
    Our little group has always been
    And always will until the end"

    Nirvana - Nevermind - Smells Like Teen Spirit
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You could write code in the OnInsert-trigger of your table, to display an error-message when Rec.COUNT = 1. This way, no more than 1 record can be created.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Kc_NirvanaKc_Nirvana Member Posts: 146
    Very Much Thank you....
    Junior Consultant & Developer in Dynamics NAV

    "I'm worse at what I do best
    And for this gift I feel blessed
    Our little group has always been
    And always will until the end"

    Nirvana - Nevermind - Smells Like Teen Spirit
Sign In or Register to comment.