Hi, I wanted to access "value": "$result.abc$" inside of SearchEventHandler. It contains real time value.
new SearchEventHandler ({
managerid: "myid",
event: "preview",
conditions: [
{
attr: "any",
value: "*",
actions: [
{"type": "set", "token": "abc", "value": "$result.abc$"},
{"type": "set", "token": "def", "value": "$result.def$"},
]
}
]
});
I tried creating a dummy JSON object (refer below code), and i was able to access th "value": "data is accessible" using the below method:
var e = obj.value;
var obj =
({
"value": "data is accessible", "b": "1234"
});
Is there a different way to access the data inside "SearchEventHandler" ??? Pls suggest.
↧