Step 2. Create Brief Notes Command Handler
VFW054 – Edit Text in a Memo / Edit Box
1. Create a new Reusable Part / Panel:
iiiVFW08
Employee Brief Notes
2. Give the reusable part an ancestor of VF_AC010
3. Select the ribbon. Give the component an .
4. Drop a Panel onto the right hand side. Give this panel the , BUTTON_PANL. Adjust the width so that it can contain push buttons.
5. Drop a onto the center of the left hand area.
6. Open the tab. If necessary, select it from the button on ribbon.
Select iiiVFW08 in the dropdown and select the tab. Check the are correctly defined.
a. BUTTON_PANL should be Right
b. MEMO_1 should be Centre.
c. Select the BUTTON_PANL and give it a manager.
d. On the tab. On the tab, select the and use the to set margins of 6 pixels.
7. Drop two push buttons onto the BUTTON_PANL.
a. the first PHBN_SAVE with a of Save.
b. the second PHBN_DLT with a of Delete.
8. Save your changes.
9. Locate your Employee Notes file on the tab.
Drop the field iiiNTELNE onto the Memo box.
The Multi-line edit box has columns just like other list components. You have just created column MECL_1.
10. Drop the field iiiNTESQN onto the Memo box.
At this point the new column MECL_2 should be selected. Use the tab to check its property. Since this is a numeric field it should have been automatically set to .
The Memo box will set this line number column as each line is created. This enables application code to be simplified, when writing the note data to a file. The sequence number will ensure the text is restored to the memo box in the same sequence.
11. Drop field iiiLneCnt onto the Memo box. Once again check this column's which should be LineContinuation.
12. Select the Memo box and set its properties as follows
|
Property |
Value |
|
WordWrap |
True |
|
AddEntryMode |
MultiplePerLine |
|
MaximumLineLength |
20,000 |
The Memo box component will increment line count (iiiLneCnt) as text is added.