|
Improving Input Window Titles
Have you noticed that Foundation gives your input form windows really boring names, like "Contacts (record #4)"? You can override this default setting to give your input windows more appropriate window titles. Just set the desired window title in the input form's On Load phase:
Case of
: (Form event=On Load )
$windowTitle_t:=[Contacts]First Name+" "+[Contacts]Last Name
SET WINDOW TITLE($windowTitle_t)
Fnd_Menu_Window_Add ($windowTitle_t)
End case
Fnd_IO_InputFormMethod
Notice that after changing the window title, we passed the same text value to Foundation's Fnd_Menu_Window_Add method. This tells Foundation to update the Window menu with the new title. It automatically replaces the existing value in the menu.
If you're using a field value, as in the example above, you can also use similar code in the field's object method (usually in the On Data Change event) to update the window title if the user enters a new value.
|