3.3 - Find Book Process
Last updated 12/06/2023
A process, which is simply a form without a table, needs to be created so that we can create the fields a member can use to enter the serach data to find the books they would like to borrow. The process will also have a button and we will attach the SetSearchISBN function to this button which will execute the code when the member presses the button and display the book records that match the search criteria.Navigate to Processes
1. Click Tasks in the menu.2. Click Processes in the sub-menu.
Figure 1 - Processes menu item
Add the Find Book Process
1. Click the Add Item button.2. Type Find Book in the Title field.
3. Type Process after FindBook in the Action ID field.
tip
All action IDs in Five must be unique!
Figure 2 - Add the Find Book process
4. Click the Fields tab.
Figure 3 - Fields tab
5. Click the Add Fields button.
Figure 4 - Add Fields button
6. Type Title in the Caption field.
7. Click the lookup icon in the Display Type field and select _Text.
Figure 5 - Add the Title field
8. Click in the Width field and type 4.
9. Click in the Post Width field and type 1.
Figure 6 - Width of Title field
tip
All we are doing here is determining the width of the Title field manually instead of using the Form Designer like we did previously!
info
A row is made up of twelve grids. The Title field will take four grid positions and have one blank grid position after it.
10. Click the Save button in the form app bar.
Figure 7 - Save the Title field
11. Click the Add Fields button.
Figure 8 - Add Fields button
12. Type ISBN in the Caption field.
13. Click the lookup icon in the Display Type field and select _Text.
Figure 9 - Add the ISBN field
14. Click in the Width field and type 4.
15. Click in the Post Width field and type 1.
Figure 10 - Width of ISBN field
16. Click the Save button in the form app bar.
Figure 11 - Save the ISBN field
17. Click the Add Fields button.
Figure 12 - Add Fields button
18. Type SEARCH in the Caption field.
19. Click the lookup icon in the Display Type field and select _Button.
Figure 13 - Add the SEARCH field
20. Click in the Width field and type 2.
Figure 14 - Width of SEARCH field
21. Click the Events tab.
Figure 15 - Events tab
22. Click the lookup icon in the On Click field and select SetSearchISBN.
Figure 16 - Attach the SetSearchISBN function
info
The SetSearchISBN function will execute when the SEARCH button is clicked.
23. Click the Save button in the form app bar.
Figure 17 - Save the On Click event
24. Click the Save button in the form app bar above the list.
Figure 18 - Save the Find Book process