Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3.    With the field xEmployeeTitle selected, select the Layout ribbon and give it a LayoutItem of Top, a Size of Content Width and Item Margins on all sides of 5. Your design should look like the following:

SNAGHTML158d38a1Image Modified

4.   Using the Details / Events tab, create a Changed event routine for field xEmployeeTitle.

5.   Add code to the xEmployeeTitle.Changed event to set the Document p_TITLE property to the value xEmployeeTitle. Your code should look like the following:

...

Evtroutine Handling(#xEmployeeTitle.Changed) Options(*NOCLEARMESSAGES *NOCLEARERRORS)

...

#Document.p_TITLE := #xEmployeeTitle

...

#EditorModified := True

...

Signal Event(Changed)

...

Endroutine

6.   Add code to Initialize routine to show Employee Title. Your code should look like the following:

...

#xEmployeeTitle := #Document.p_TITLE

7.   Compile your copy of the Editor component.