Difference between revisions of "Codeunit/Formevents"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 45: Line 45:
The following events are SOMETIMES be fired for normal users depending on navigation
The following events are SOMETIMES be fired for normal users depending on navigation
* afterUpdateRedirectActive
* afterUpdateRedirectActive
** Not executed in subform mode
** Not executed in SUBFORM mode
** Not executed in during automated imports
** Not executed in during imports etc.
* afterUpdateRedirectContent
* afterUpdateRedirectContent
** Same requirements as afterUpdateRedirectActive
** Depends on a TRUE result from afterUpdateRedirectActive()
** Requires TRUE result from afterUpdateRedirectActive()

Revision as of 13:06, 15 November 2013

Methods

Form events fires different actions during execution of a solution

LIST level event hooks are

   public String appendListPageHead() { return ""; }
   public String appendListPageFoot() { return ""; }
   public void beforeSelectList() throws Exception {}    
   public void beforeRenderList() throws Exception {}       

ITEM level event hooks are

   public String appendItemPageHead() { return ""; }    
   public String appendItemPageFoot() { return ""; }    
   public void beforeSelectItem() throws Exception {}    
   public void beforeChangeItem() throws Exception {}
   public void beforeUpdateItem() throws Exception {}
   public void beforeRenderItem() throws Exception {}    
   public void afterUpdateItem() throws Exception {   return false; }
   
   public boolean afterUpdateRedirectActive() {   return false; }
   public String afterUpdateRedirectContent()   {   return null;    }


Event firing global

The following events are ALLWAYS fired

  • beforeSelectItem
  • beforeChangeItem
  • beforeUpdateItem
  • afterUpdateItem

Event firing reserved for normal users using the UI

The following events will NOT be fired during imports etc.

  • appendListPageHead
  • appendListPageFoot
  • beforeRenderList
  • appendItemPageHead
  • appendItemPageFoot
  • beforeRenderItem

Event firing in UI depending on user actions

The following events are SOMETIMES be fired for normal users depending on navigation

  • afterUpdateRedirectActive
    • Not executed in SUBFORM mode
    • Not executed in during imports etc.
  • afterUpdateRedirectContent
    • Depends on a TRUE result from afterUpdateRedirectActive()