empty label always display undefined
She,
Could you please clarify the credentials for test?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
She,
Could you please clarify the credentials for test?
You can do a simple check in your JS - and return / set blank value in case null / or undefined is returned.
Or you can also add some JS to clear the labels in case the service encounters an error. On the REST call / mapping you can do it in the Error event
I am not sure what's causing it though as I don't have access to the code
probably there's no error i already tried that
Can I see the mapping
Hi M,
as you can see this is the service that i was calling : (screenshot below:)
and it's empty. i already tried the following code in SUCCESS MAPPING run
JS:
if (data[0])
{
Appery('label1').text(" ");
Appery('label2').text(" ")
Appery('label3').text(" ")
}
but still,"undefined text" is showing
thank you,
You are using a REST service right?
Hi M,
Yes, 3rd party Rest
Just a note - the semi colons are missing for your last 2 statements