Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
243 views

In JS get value from array

Jump to solution

there is  in OCMQ table array named BUNDLES

bundle_array.jpg

If from command line run command:

d bundle.number in $L.file

I get next result: {"1115"}

But if i request it from JS i get NULL

How must request this value from JS to get right result

for future compare this value in IF operator, like this

if (request.bundle_number == "1115")...

or

...
BundleNumber = request.bundle_number;
if (BundleNumber == "1115")
...
0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: In JS get value from array

Jump to solution

the script contains the setFields, where need to set this new field - bundle.number

View solution in original post

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: In JS get value from array

Jump to solution

the script contains the setFields, where need to set this new field - bundle.number

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.