Fwd: JSON array from freemarker

430 views
Skip to first unread message

Vinod Varma

unread,
Jul 18, 2016, 3:20:33 AM7/18/16
to suppor...@runmyprocess.com
Hi

I have submitted below request in community but, somehow, it does not seem to be listed

So submitting as email

Regards


Vinod
---------- Forwarded message ----------
From: <vinod...@gmail.com>
Date: Sun, Jul 17, 2016 at 7:56 PM
Subject: JSON array from freemarker
To: Fujitsu RunMyProcess Developer Community <suppor...@runmyprocess.com>
Cc: vipin <vinod...@gmail.com>, Vinod Varma <svi...@astrainfotech.com>, vk <v...@astrainfotech.com>


Hi

I am creating a array of JSON objects using freemarker and returning. Then I access it using JSON.parse(RMPApplication.get("mydata")).

I am able to access each JSON object and its elements in the array but when I try use function charAt, it leads to error that charAt is not a function (screenshot attached)

When I try string comparison, != evaluates to true even when they are the same (screenshot attached)

Do I need to do any casting or use any specific function?

Request help, thanks in advance

Regards

Vinod



--
Regards


Vinod
pic1.png
pic2.png

Pankaj Kumar

unread,
Jul 18, 2016, 3:39:45 AM7/18/16
to Fujitsu RunMyProcess Developer Community
Hi Vinod,

Please use toString method where you are assigning the value to variable y.

y = x[i].customer.toString()

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CAA44VHRb5T1%3DdAa2tJN6V-Nc2OUC6OfTm4RmYmpx_yrs%3DEc80Q%40mail.gmail.com.

vinod...@gmail.com

unread,
Jul 18, 2016, 5:52:26 AM7/18/16
to Fujitsu RunMyProcess Developer Community
Hi Pankaj

It works; Thanks a lot for the quick help

Regards


Vinod

Reply all
Reply to author
Forward
0 new messages