Currently the context procedure is not being called when adding a record. I wonder why and what the drawback of this could be.
When the context procedure is called when adding a record each time a default procedure (if any) would be called, the following could be achieved in the application:
When creating a new order for (in this case) a vehicle, it could be the case that a vehicle is not known in the database. So while adding and no vehicle is yet selected, a task is available to the user to create a vehicle with the minimum of known information entered as parameters. A vehicle is created with a “request” status, someone else can enter all viable information at a later point in time….
The new vehicle_id is an output parameter en will be entered in the new order's field….
But with a context procedure not being called at this stage, I can't hide or show the task and someone can keep clicking on it, creating one after the other partially entered vehicle…
I could circumvent this with a default and layout procedure in the task, but I'd rather see the task hidden completely when a vehicle_id is entered while adding a new order….
Long story short: why not call the context procedure always the same time when calling a default procedure (at least when adding a new row)….