Skip to main content

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.

1. Click Tasks in the menu.

2. Click Processes in the sub-menu.


Processes Menu Item
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!


Add the Find Book Process
Figure 2 - Add the Find Book process


4. Click the Fields tab.


Fields Tab
Figure 3 - Fields tab


5. Click the Add Fields button.


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.


Add the Title Field
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.


Width of Title Field
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.


Save the Title Field
Figure 7 - Save the Title field


11. Click the Add Fields button.


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.


Add the ISBN Field
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.


Width of ISBN Field
Figure 10 - Width of ISBN field


16. Click the Save button in the form app bar.


Save the ISBN Field
Figure 11 - Save the ISBN field


17. Click the Add Fields button.


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.


Add the Search Field
Figure 13 - Add the SEARCH field


20. Click in the Width field and type 2.


Width of SEARCH Field
Figure 14 - Width of SEARCH field


21. Click the Events tab.


Events Tab
Figure 15 - Events tab


22. Click the lookup icon in the On Click field and select SetSearchISBN.


Attach the SetSearchISBN Function
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.


Save the On Click Event
Figure 17 - Save the On Click event


24. Click the Save button in the form app bar above the list.


Save the Find Book Process
Figure 18 - Save the Find Book process