Luckily enough, i just found a sort of bug in Apex 3.0.1 (and earlier i believe), regarding the deletion of a button.
At any rate, before delving into the main topic, let me point out that this blog entry is heralding a new era for me, as it is the first one written on an Apple Mac, so now you can enroll me in the list of "ex-PC users" ;-)
And now for the main topic.
- Create a blank page in an Apex application
- Create a blank html region.
- Create a button and call it SUBMIT.
- Create an After Submit process of any kind and make it conditional on the SUBMIT button.
- Change the process type to Before Header.
- Try to delete the button:
Button SUBMIT cannot be deleted as a process referencing this button exists
If you open up the process definition page, you won't be able to see any properties telling that the button is linked to the button, but this is normal as it doesn't make sense to link a Before Header process to a button.
On the other hand, if you open the grid view for the process, you will actually find the missing property and it will report that button SUBMIT is attached to the process.
At this point you can clear the relationship from the grid view or alternatively change the process type back to After Submit and then clear the property from there.
And now i can go back to explore this exciting Mac world.