How do I change the prompt for one, many or all values to give me ‘No Product discounts Available’ when there is No actual product discount available? Here is the psuedo code for selecting one, many or all values of a prompt:
Products.Product_discount in @Prompt(‘Enter discount rate’,‘A’,)
or
‘*’ in @Prompt(‘Enter discount rate’,‘A’,)
I want to change this to give me ‘No Product discounts Available’ instead of ‘No Data to fetch’ when user selects All values manually and there is no data that meets all of the entered values. The ‘*’ functions OK and the 'No Product dicounts shows but if the user selects all values manually, it gives no data to fetch. SO i want to change this to:
case when Products.Product_discount is NUll then ‘No Product discounts Available’
else
Products.Product_discount in @Prompt(‘Enter discount rate’,‘A’,)
or
‘*’ in @Prompt(‘Enter discount rate’,‘A’,)
end case
but this gives the error of missing keyword.
Does anyone know how to give ‘No PRoducts Available’ instead of returning no data to fetch when user selects all the values individually and not ‘*’ and there is no data to show!!