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 center of the left hand area.
onto the6. 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 6 pixels.
tab. On the tab, select the and use the to set margins of7. Drop two push buttons onto the BUTTON_PANL.
a. PHBN_SAVE with a of Save.
the firstb. PHBN_DLT with a of Delete.
the second8. 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 LineContinuation.
which should be12. 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.