Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

Setting new keys in context with custom behavior

$
0
0

I am trying to add keys in a custom behavior with context.set(), but am not exactly sure how to return the context afterwards. For example, this does not update the context.

In the XML, I have a custom Behavior Module with the name modifyAnyDeliverableSelection

In application.js, I have something like

Sideview.utils.declareCustomBehavior("modifyAnyDeliverableSelection", function(module) {

    module.onContextChange = function() {

        var context = this.getContext();

        context.set('variable',"foo");

        return context;
    }

});

The context does not get updated. Am I missing something here? Is it not getting returned properly?


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>