Calling Page through Web Service, which triggers fire

jwilderjwilder Member Posts: 263
edited 2013-03-05 in NAV Three Tier
A little known fact about consuming a page webservice is that certain triggers do fire even though you are calling the page through web services. I am really looking for more info or documentation on which triggers fire and what is allowed in each trigger when called via web services.

Here's what I know:
OnOpenPage - works normally. You can insert records, raise errors, create temp tables etc...
OnAfterGetRecord - can be used for calculations or calling other functions but not database activity. You can put an error statement in this trigger and it will not even throw an error. I have not been able to write to the database in this trigger not even a temp table.

Anyone have anymore info on this?

Answers

  • pawanppawanp Member Posts: 90
    Triggers in sequence
    Read/ReadMultiple :
    OnOpenPage
    OnNextRecord
    OnAfterGetRecord

    Insert :
    Page : OnOpenPage
    Page: OnNewRecord
    Table: PrimaryKey OnValidate
    Page: PrimaryKey OnValidate
    Page: OnInserRecord
    Table: Insert
    Table OtherFields OnValidate
    Page: OtherFields OnValidate
    Page: OnModifyRecord
    Table: Modify
  • pawanppawanp Member Posts: 90
    Modify:
    Page: On open page
    Table: Field OnValidate
    Page: Field OnValidate
    Page: OnModifyRecord
    Table: Mofidy
  • jwilderjwilder Member Posts: 263
    Thats what I needed, thank you for this.
Sign In or Register to comment.