We are building a select element based on a response of a REST Service. This works fine when the array has more than one element, but if the array has only one element doesn't work, the select element don't show the value.
We are building a select element based on a response of a REST Service. This works fine when the array has more than one element, but if the array has only one element doesn't work, the select element don't show the value.
Hi Rafael,
We cannot reproduce this. Could you please provide us with sample data?
We can "solve" this issue if we use values without blank spaces in the select, but this is a lot work for us because it impact in the database schema.
We need to know if this is or not an issue of Appery for you.
Thanks in advance.
We'll test this...
The Mapping works for us with the provided JSON data. Please send me a screen shot of your mapping. Probably you've mapped response parameter "CAT1" to Label property, then the void item without text won't be displayed in Select Menu.
Hi Rafael,
To delete spaces from Select component value you should in mapping in front of Request parameters CAT1 and CAT3L click "Add JS" and enter:
codereturn value.trim();/code
So in Select component value there will be no spaces in the beginning and in the ending.
We have changed our database schema using keys without blank spaces and all work fine.
Appery is great. Thank you.