Created a New object with type as character.
and then used the condition below:
=@prompt(‘Select Country’,{‘India’,‘USA’,‘China’},MONO,FREE) \
but its showing the following error:
Parse failed: Invalid definition(UNV0023)
I guess the prompt format is @Prompt(‘message’,‘type’,[{‘value1’[,‘value2’,…]},class_nameobject_name’],mono/multi,free/constrained) Creates an object that prompts users to enter a specific value.
So what should i mention at the place of Class_nameobject_name??
I also tried in so many different ways its keep on saying the same error.
My question is, there is no object having country data…
I have a create an object and should pass these three custom values and have to use a prompt based on the values.
The business end uses should be able to select the country in the input prompts.
See that would be reallly great if anyone can tell me the process of creating an object with custom prompt.
If the list of countries is hard-coded in the prompt, then you probably should use “Constrained” as the last parameter. However, this won’t fix your parsing issue. It will merely prevent the user from typing in a different value.
Now, regarding the parsing issue… Since this object is not associated with any table, you have two choices:
Ignore the parsing error. The query will run with the prompt as long as the sytax of the prompt itself is good.
If the object that has the prompt will always be used with only one table, then associate the object with that table. (In Designer, click the “Tables” button beside the “Parse” button on the “Definition” tab of the Object Properties. Select the table and click OK.)
You stated:
"My question is, there is no object having country data… "
If there is no object having country data, how would any prompt allow you to filter on country data that isn’t available in the first place?