Basic Customization > User Interface Customization > Presenting Information in the UI > Inline Messaging > Solution
  
Solution
Use common JavaScript and java class components to display inline message that gives user feedback about success or failure or warning message(s) for their actions.
Prerequisite Knowledge
To apply this process, you need to have an understanding of the following:
Java programming
Basic web development using JavaScript, JSPs , custom tags, and HTML forms
Solution Elements
Element
Description
Java Method
getSuccessFeedbackMessage()
This method is called by setResultNextAction() of DefaultObjectFormProcessor and is called when FormResult is SUCCESS. This constructs the FeedbackMessage with the message title, additional messages and the info page link for the object(s) that was created.
If the object has no identity then only Object icon and Object Type will show up as info page link. This is then displayed in UI as Inline Success message informing user that object was created successfully.
This method may be overridden by subclasses desiring different behavior. See the JavaDoc for more details.
Javascript
PTC.messaging.showInlineMessage()
A javascript method that renders the inline message in the main window. It takes the array of message JSON objects as an argument. Each message JSON object must have MessageTitle, an array of messages and the type of Message.
Valid Message Types are: SUCCESS, FAILURE, WARNING, FATAL, INFO. This should NOT be used for any confirmational kind of messages.
See the JavaDoc for more details.
Location: <Windchill>/codebase/netmarkets/javascript/util