Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi all,
I have a custom wizard with 3 wizard steps. In the 3rd step, I have custom button which will open a popup, perform an activity and returns some value to the callback js function in 3rd step. After I receive that value, when I try to reload from javascript function, entire wizard is reloading again and it is going back to 1st step. I need to refresh only 3rd step instead of entire wizard.
Can anyone help me on this?
Hi Vamshi_Kosana,
Welcome to the PTC Community!
Thank you for your question.
I’d like to recommend to bring more details and context to your initial inquiry. what release of Windchill you are using?
It also helps to have screenshot(s) to better understand what you are trying to do in your process.
This will increase your chances to receive meaningful help from other Community members.
Regards,
Anurag
You can use a js script to refresh the speficic wizard step.
There are some needs to setup correctly.
First I use an afterJS configuration in the actionModel.xml
<action name="ConfigEditorWizard_step1" ajax="component" afterJS="refreshInputFileName">
the afterJS is used for run a js script used in the jsp page. You can use own button if you want.
it is name of java script in the jsp file
then the refreshing wizard step has to have an ID definition in the actionModel.xml so you need to set the ID - this ID is used in js script
<action name="ConfigEditorWizard_step2" ajax="component" id="ConfigEditorWizard_step2">
Finally JS script that refresh your wizard step
function refreshInputFileName()
{
refreshStep("ConfigEditorWizard_step2");//in the customActions.xml has to be ID action definition(id=ConfigEditorWizard_step2)
return true;
}
Hope this can help you.
PetrH