Generate dialog before displaying the first records.