Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter EighteenDataView Integration (continued)

on_form_add_entry

Overview

The on_form_add_entry event is called when the FORM_ADD_ENTRY menu function is invoked.

Syntax/Parameters

Syntax

int on_form_add_entry ( ) { ... }

Parameters

(none)

 

Return Value

Must return an int. The int can contain error information as a formatted error code.

Return result will be passed back to the menu function dispatcher which in turn could be passed to a calling script. At a minimum the return value will be placed in the application log as a response to a user action.

Remarks

The default action for Forms View is to ignore the request (returns ERROR_FUNCTION_NOT_SUPPORTED).

To enable the ribbon or menu function, the hook on_menu_init() must return the bit FV_FORM_ADD_ENTRY. As part of an add function, the enable logic can look at the context and whether any more items can be added.

Related Events

Page revised 2024-12-13