Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

empty label always display undefined

She,

Could you please clarify the credentials for test?

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

empty label always display undefined

Hi Evgene,

Thank you for replying, just follow the screen shot below:

Image

Image

Image

Image

Image

thank you, :)

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

empty label always display undefined

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

empty label always display undefined

probably there's no error i already tried that

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

empty label always display undefined

Can I see the mapping

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

empty label always display undefined

Hi M,

as you can see this is the service that i was calling : (screenshot below:)

Image

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,

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

empty label always display undefined

You are using a REST service right?

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

empty label always display undefined

Hi M,

Yes, 3rd party Rest

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

empty label always display undefined

Just a note - the semi colons are missing for your last 2 statements

Return to “Issues”