I have a Delete button whose visibility is controlled by a server-side condition (likely a Boolean expression). I want this condition to be evaluated when the Search button is clicked, so that the Delete button is shown or hidden accordingly. But I'm unable to achieve this.
When the user enters the Project Number and clicks the search button, an error would be displayed or the Project details would be fetched based on the fetch of the entered project number. In case of error being displayed, i would want the server-side condition of the delete button to be evaluated so that the delete button is shown or hidden, before error appears as inline notification. Any help to achieve this is appreciated, please.