次の方法で共有


OnLookup (Fields) Trigger

Causes the system to display a lookup page.

Applies To

Fields

Remarks

There are three lookup options:

  1. Default Lookup - The lookup into the table is performed without applying filters or other special parameters.

  2. Field Lookup - You can use this trigger to define a field lookup that will be used in place of the default lookup.

  3. Text box Lookup - You can use the OnLookup (Page fields) Trigger to define a lookup based on the value of a text box. This value will be used in place of the default lookup or the field lookup.

When using this trigger, follow this approach:

  • Use the field value to determine what filters or other parameters to apply.

  • Run the lookup page as a modal page.

  • Transfer the value the user selects back to the field when the user chooses OK.

If an error occurs in the trigger code, the lookup page is closed.

Note

On non-editable fields in the Microsoft Dynamics NAV Windows client, the field gets its lookup action rendered as a hyperlink. In the Microsoft Dynamics NAV Web client the lookup for a non-editable field is not rendered. You can use the OnDrillDown instead.

See Also

Other Resources

OnLookup (Page fields) Trigger