function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jyoti_Singhjyoti_Singh 

I am saving VF Page as an excel file on a button click, I want to show error on click of button if no rows are returned in the query on excel controller

I am saving VF Page as an excel file on a button click, I want to show error on click of button if no rows are returned in the query on excel controller .The page where the button is a diffrent controller and on button click I am calling a page with a diffrent controller which calculates the rows of the excel, now I want to show a validation error on initial page on button click if no rows are returned from the excel controller.

Please help me !!

Thanks
Jyoti
ShashankShashank (Salesforce Developers) 
Did you try using apex:messages component for the error message?