HI,
I need help in rendering D3 tree on text box input change.
I have a textbox input variable and a D3 tree to display parent child relationship.
transaction_id
The search manager has query with transaction_id token.
//
// Search manager
//
var sankeysearch = new SearchManager({
"id": "sankeysearch",
"earliest_time": "0",
"latest_time": "$latest$",
"cancelOnUnload": true,
"status_buckets": 0,
"search": "index=oil itid=$transaction_id$ |table sid,psid,rsid,env,meth,status,evtType",
"app": utils.getCurrentApp(),
"auto_cancel": 90,
"preview": true,
"runWhenTimeIsUndefined": false
}, {tokens: true, tokenNamespace: "submitted"});
Now i want to render my tree with new data ,whenever the value in textbox change.
//
// VIEWS: FORM INPUTS
//
var input1 = new TextInput({
"id": "input1",
"searchWhenChanged": true,
"value": "$form.transaction_id$",
"el": $('#input1')
}, {tokens: true}).render();
input1.on("change", function(newValue) {
FormUtils.handleValueChange(input1);
});
//Tree Code
function renderTree(tid){
xxxxxx
}
How to call this function with new value from textbox and this value should be picked up by search manager
Thanks.
... View more