Skip to main content
1-Visitor
December 21, 2010
Question

page refresh

  • December 21, 2010
  • 1 reply
  • 1009 views

Hi All,

Can you help me solving my issue,

When I am creating a document object via wizard ,the pop-up message "Object created successfully !" is displayed.ButI am not able to refresh my info page.The document object is createdunder the "Related Objects" tab in the Part info page.I have to maually apply F5 to get the document object appear in the Table.

I am extending PartDocCreateObjectFormProcessor.

Can you suggest a solution for this.

Sriram

1 reply

1-Visitor
December 21, 2010
public FormResult setResultNextAction( FormResult formresult,
NmCommandBean nmcommandbean, List list )

throws WTException {





if(formresult.getStatus() ==
FormProcessingStatus.SUCCESS || formresult.getStatus() ==
FormProcessingStatus.NON_FATAL_ERROR)

{


formresult.setNextAction(FormResultAction.REFRESH_CURRENT_PAGE);



} else

if(formresult.getStatus() ==
FormProcessingStatus.FAILURE)

{


formresult.setNextAction(FormResultAction.NONE);

}

return formresult;



}



Override this in same class as form processor with do Operation. There
should be a status to refresh parent page that invocated wizard.