cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

Add a notification pane after an action

tspain
8-Gravel

Add a notification pane after an action

As per the original post

 

Hello @HelesicPetr,

I have a table that I am calling directly from a jsp file:  

<div id="mvcTable">
  <mvc:tableContainer compId="com.ml.util.testUserTable" height="800"/>
</div>

The table automatically brings back a list of users.  The users are selected by checkbox and then I have a custom action that allows action on the selected users from the Actions menu.  

I'd like to implement an inline message that gives information once the custom action completes.  I would normally do this from the jsp file but the custom action is not accessed from there.  Any thoughts on how to accomplish this?

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire II
(To:tspain)

Hi @tspain 

It depends on your action..

Usually the action is placed in the table action menu for the table and the action use nmCommandBean as a input and returns FormResult

How do you perform your action? 

PS: open a new thread with this question

HelesicPetr_0-1725603536321.png

PetrH

View solution in original post

4 REPLIES 4
HelesicPetr
22-Sapphire II
(To:tspain)

Hi @tspain 

Your function called on the table should return a FormResult, where you define the feedbackMessage

FormResult result = new FormResult();
result.addFeedbackMessage();

PetrH

Hi @HelesicPetr, thank you for your response.

 

I am building my table from the examples given in:
https://dev.ml/Windchill/app/#netmarkets/jsp/componentCatalog/tableComponent.jsp

The only returns I currently have are:
ComponentConfig buildComponentConfig
Object buildComponentData

 

Not sure how to return a FormResult. Do I need a seperate method and then do I call it from my jsp file?

HelesicPetr
22-Sapphire II
(To:tspain)

Hi @tspain 

It depends on your action..

Usually the action is placed in the table action menu for the table and the action use nmCommandBean as a input and returns FormResult

How do you perform your action? 

PS: open a new thread with this question

HelesicPetr_0-1725603536321.png

PetrH

Hello @HelesicPetr,

 

After reviewing all of your input, I was able to get things working.    I returned a FormResult from my action class as you suggested.  Thank you very much for your input. 

 

Announcements
Top Tags