Options

Updating Record from Activate() trigger of Text Box

jmlozaresjmlozares Member Posts: 110
Im trying to insert a new record to a certain table and I placed the inserting commands inside the Activate trigger of a textbox. Why is that I received a message that I can't update a record inside the said trigger?
Janderol Lozares Jr.
Manila, Phils.

Comments

  • Options
    alanperualanperu Member Posts: 23
    Hi,

    In Navision there are certain triggers that you can and cannot write to the database from. The OnActivate trigger is one of the ones that cannot be used. You will need to find another trigger to use for your insert.

    What is it that you are inserting? Why do you need to do it on activate of a textbox?

    The C/Side help will tell you which triggers can and can't be used for database inserts/updates.

    Hope that helps.
  • Options
    jmlozaresjmlozares Member Posts: 110
    Big thanks!! I know it doesn't make sense to insert a record onto the OnActivate trigger. I was just wondering why I can't update record from within that trigger.

    Thanks a lot!!
    Regards
    Janderol Lozares Jr.
    Manila, Phils.
Sign In or Register to comment.