Accessing a Array from process

145 views
Skip to first unread message

sagar....@flowian.com

unread,
Dec 1, 2014, 2:42:18 AM12/1/14
to suppor...@runmyprocess.com
Hi Team

The following is my one variable(bm1) which is array(sequence) in process

["{\"bmip\":\"1417408481628\", \"bmop\":\"1417408549348\"}\r","{\"bmip\":\"1417408606762\", \"bmop\":\"1417408627500\"}\r","{\"bmip\":1417415676465, \"bmop\":1417415732620 }\r"]

I want to access this variable in javascript widget but I am not able to do that
I have tried the following code

var bma=RMPApplication.getVariable(bm 1);

and also

var bma=RMPApplication.getVariable(bm 1);
var k=JSON.parse(bma);


But not get anything..

Can anyone suggest how to do this.

Regards,
Sagar

Hamza Maghous

unread,
Dec 1, 2014, 4:38:44 AM12/1/14
to suppor...@runmyprocess.com
Hello,

You should try RMPApplication.get("bm1") to get your variable's value
Pay attention to put your variable bm1 between double quotes


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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 http://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/261124cc-f4d2-4870-9678-069e7acaf1c3%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--

Hamza MAGHOUS

PreSales Consultant

Sagar Wadekar

unread,
Dec 1, 2014, 4:46:22 AM12/1/14
to suppor...@runmyprocess.com
 Hi Hamza,

Thanks for your help,

I have tried the above but it doesn't works. Then I tried it with ${bm1} instead of "${bm1}" and surprisingly it works fine.

Regards,
Sagar   

 

Regards,

photo
Sagar Wadekar
Web & Cloud Solutions, Flowian Solutions Pvt. Ltd

You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/udkbbNxz70o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages