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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Structure GWT Customization Wizard opener Refresh

HelesicPetr
22-Sapphire I

Structure GWT Customization Wizard opener Refresh

Hello gurus,

I can not find a solution for specific GWT table refresh after the Wizard is completed. 

The FormResult is defined in my own Processor that works perfectly. 

I attached video where the refresh is not done and I'm looking for a solution how to do so same as check-in operation does.

I need to refresh the gwt table but I can not find solution. 

I use following article but it does not work as I expect.

FormResult.setNextAction() - CS122493

 

//(FormResult)
result.createAndAddDynamicRefreshInfo(latestWTP, oldWTP, NmCommandBean.DYNAMIC_UPD);

 

 FormResult.setNextAction() also does not work as I would like or I didn't find correct javascript function to do so. 

HelesicPetr_0-1704463813204.png

 

Any suggestion? 

 

PetrH

ACCEPTED SOLUTION

Accepted Solutions

Hi @avillanueva 

I've solved it

 

The point is in the custom.actions.xml definition.

Normally if you follow some documentation there is an action command

<command class="com.ptc.cat.ui.client.action.LaunchCustomURLAction" method="execute" 

 

this command does not refresh the GWT table, but

 

if you use standard LaunchURLAction without Custom, then the GWT table is refreshed as I need. 

<command class="com.ptc.cat.ui.client.action.LaunchURLAction" method="execute" 

HelesicPetr_0-1704898423965.png

hooray 😄 

 

PetrH

View solution in original post

3 REPLIES 3
avillanueva
22-Sapphire II
(To:HelesicPetr)

Aside from check in, are there other actions that cause a refresh properly? What is that popup window that you showed? custom? Perhaps look at what happens when a filter change is applied or a table view is changed.

Hi @avillanueva 

Thank you for your suggestions. 

I really tried to check functions as a gwt check-in, refreshget, and aslo replace edit wizard. 

But I could not find how the table refresh is done. 

if it is by javaScript or any other way. 

I was able to locate what classes are used by the functions but the right refresh event I could not locate. 

 

The point is that standard steps do not work in GWT enviroment. 

 

I know it is very deep customization and code reverse engineering 😄 

 

PS: sure it is the custom wizard with my own custom processor 😄 

PetrH 

Hi @avillanueva 

I've solved it

 

The point is in the custom.actions.xml definition.

Normally if you follow some documentation there is an action command

<command class="com.ptc.cat.ui.client.action.LaunchCustomURLAction" method="execute" 

 

this command does not refresh the GWT table, but

 

if you use standard LaunchURLAction without Custom, then the GWT table is refreshed as I need. 

<command class="com.ptc.cat.ui.client.action.LaunchURLAction" method="execute" 

HelesicPetr_0-1704898423965.png

hooray 😄 

 

PetrH

Announcements

Top Tags