Chapter 8: Advanced Server-Side Development Techniques
In Chapter 5, Basic Server-Side Development, you saw how to write methods for a model class, how to extend methods from inherited models, and how to work with recordsets. This chapter will deal with more advanced topics, such as working with the environment of a recordset, calling a method upon a button click, and working with onchange
methods. The recipes in this chapter will help you manage more complex business problems. You will learn how to create more interactive apps.
In this chapter, we will look at the following recipes:
- Changing the user that performs an action
- Calling a method with a modified context
- Executing raw SQL queries
- Writing a wizard to guide the user
- Defining
onchange
methods - Calling
onchange
methods on the server side - Defining
onchange
with thecompute
method - Defining a model based on a SQL view
- Adding custom settings options
- Implementing
init
hooks