Accessing model values in JavaScript

Hi there,

I have a model variable
- service_request of Object type which contains service_type, service_request_id....
- serviceRequest Array type of service request

Also a storage variable
- serviceRequests type of serviceRequest

I am trying to access the service_type and service_request_id in Javascript. However no matter how I do it I can't seem to be getting the values retured

this is what my last try was Apperyio.storage.serviceRequests.get("$['serviceRequest'][1]['request_id']");
please advise

Thank you
1 person has
this question
+1
Reply