Unable to access the KVM values from the Java script

navc88
New Member

8853-js-kvm.jpg

8854-kvm-error.jpg

8855-kvm-error2.jpg

I am not able to access the KVM values from the Java script.

I Have attached the screen shot of the KVM and Java script. Please guide where i am going wrong.

Solved Solved
0 5 248
1 ACCEPTED SOLUTION

Hey @Naveen Chalageri, Couple of things you can improve -

1 - Declare the variable errorMessageResponse with var errorMessageResponse, it will fix your print issue,

2. Good practice if you store JSON formate in KVM so you don't need to split it.

3. I have attached a working sample of KVM variable in JS please take a reference.

kmv-js-demo-rev1-2019-07-20.zip

View solution in original post

5 REPLIES 5

Hello Naveen,

What value is printed for errorMessageResponse variable ( javascript line 2)? Share the javascript console output.

ExclusiveCache element in KVM policy is deprecated. Either set it to false or remove the same.

It will be null. Tried removing the double quotes still the value is null

Hey @Naveen Chalageri, Couple of things you can improve -

1 - Declare the variable errorMessageResponse with var errorMessageResponse, it will fix your print issue,

2. Good practice if you store JSON formate in KVM so you don't need to split it.

3. I have attached a working sample of KVM variable in JS please take a reference.

kmv-js-demo-rev1-2019-07-20.zip

To run the sample please create

  1. KMV-JS-vars mapidentifier in KVM and data as a key and "Sample text" as key's value.

Thanks Ravindra Yes not declaring var was the issue I just overlooked that one