Hi all,
I've edited the viz_editor_schema.js to change the maximum limit of rows displayed of a statistic table, I did some bumps, debug refresh and I even restarted my Splunk instance several times but nothing seems to work. How can I make this work? can someone help me with this.
path: C:\Program Files\Splunk\share\splunk\search_mrsparkle\exposed\js\views\shared\results_table\viz_editor_schema.js
Thanks in advance 🙂
When the page loads, splunk will load the nearly all individual modules from a single file (mvc.js).. it must be an outcome of some build process done over all other files.
In my version of splunk it is located in splunk/search_mrsparkle/exposed/js/build/simplexml.min/mvc.js
This is minified version.
You can find the your part of code in mvc.js.. search for this message "Rows Per Page must be a positive num" as the variables are renamed in minified version...
When the page loads, splunk will load the nearly all individual modules from a single file (mvc.js).. it must be an outcome of some build process done over all other files.
In my version of splunk it is located in splunk/search_mrsparkle/exposed/js/build/simplexml.min/mvc.js
This is minified version.
You can find the your part of code in mvc.js.. search for this message "Rows Per Page must be a positive num" as the variables are renamed in minified version...
Hi @paramagurukarthikeyan thanks for answering, I've checked
C:\Program Files\Splunk\share\splunk\search_mrsparkle\exposed\js\build\simplexml.min\
and edited change the maximum value to 500 but still no luck
It will work for sure
Hi paramagurukarthikeyan, thanks 🙂
May I know what changes you have made
Hi @paramagurukarthikeyan thanks for answering, I've made changes on the min and max result per page part of the code, I've changed the maximum value to 500 and the error message that will be shown when the value entered exceed 500.
{
name: 'display.prefs.statistics.count',
label: _('Rows Per Page').t(),
defaultValue: '10',
groupOptions: {
controlClass: 'controls-block'
},
control: TextControl,
validation: {
pattern: 'digits',
min: 1,
max: 500,
msg: _('Rows Per Page must be a positive number no larger than 500.').t(),
required: true
}
}
This may sound too simple, but did you try to clear your browser cache?
Hi @scannon4 thanks for answering, I've already tried to clear cache but it does not solve the problem