Refine your search:

3
1

Our app's setup.xml page uses a custom EAI endpoint. I know when we throw an exception from the handleEdit method, the setup page will refuse to save and the exception's message will be displayed in red text at the top of the screen.

But what if we only want to display a "warning" message to users, but without preventing the user from saving settings? Is there a way, in our EAI endpoint, to display a message at the top of the screen without throwing an exception and preventing saving?

Ideally, our message would show up with a yellow background, but the blue-background regular message is OK too.

asked 29 Jun '10, 10:12

Justin%20Grant's gravatar image

Justin Grant
1.5k6740
accept rate: 50%


3 Answers:

I take it back - this IS possible now. Try it out by posting to /services/messages with the parameters "name" and "value"!

$ splunk _internal call /messages -post:name FOO -post:value "haaay you guyyyyyysss"

link

answered 21 Apr '11, 17:40

amrit's gravatar image

amrit ♦
1.2k38
accept rate: 62%

Currently this is not possible. Extending the messages endpoint to allow posting from outside of splunkd would be easy to do - I recommend filing an ER for this.

link

answered 16 Aug '10, 00:15

amrit's gravatar image

amrit ♦
1.2k38
accept rate: 62%

Although shoving a message into the top of the screen isn't possible (yet), per Amrit's answer, another option could be to log warnings to a log file (even Splunk's internal log) and then to pull messages out of that log when the app's home page is displayed.

Since the default action after running setup is (or should be!) running the app, the user will see the warning and will be able to re-run setup if needed.

link

answered 16 Aug '10, 05:43

Justin%20Grant's gravatar image

Justin Grant
1.5k6740
accept rate: 50%

edited 16 Aug '10, 05:50

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×87
×21
×10
×8

Asked: 29 Jun '10, 10:12

Seen: 1,307 times

Last updated: 21 Apr '11, 17:40

Copyright © 2005-2012 Splunk, Inc. All rights reserved.