You can use an HTML panel
<html> <div>Comments for everyone to see</div> </html>
*OR, add it as default value for the text box*
<default>Comments for everyone to see</default>
I cannot default the comments. User whoever view the report in the panel should be able to enter the comments, modify them and etc.
I need to save these comments entered somewhere so that next time when the user views the report, he can add/delete/modify the same.
You will have to save the comments in a
lookup file and retrieve them when page loads to set the token value.
See if you get any ideas from this posting http://dev.splunk.com/view/webframework-tutorials/SP-CAAAEZT
I am trying to save in a csv file placed in splunk/var/run/splunk/csv..
I use command inputcsv filename.csv
I get File couldn't be read. Not sure how to resolve this. Please help.
Hi Pallavi, the csv file got read permissions ah? may i know if the dashboard is working fine? can you give us some more info about the whats this dashboard for and this comment? what is the full command you use for inputlookup? check this example one -
Find this code:
Replace it with this code:
"search": " | inputlookup kvstore_lookup | eval KeyID = _key | table KeyID, CustID, CustName, CustStreet, CustCity, CustState, CustZip",
I am now able to read the csv file. I have modified the permissions given for the folder in which the file resides.
My scenario is as below:
I have a report. I want to add a comment box so that the user will enter his comments . Next time when the user logs into the system,
he should be able to read his comments. Modify them if required and save.
I tired to create a file and read it using inputcsv command.
I put a textbox in the form.
I am not sure how to read from file and put that value into form textbox.
And also write to the file reading the textbox.
I am totally new to splunk and coding in java script.
Appreciate any help here..