Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
WFM : could not find the configuration file
Nidhi_Agrawal
Hi,
I have to create a custom instantiation screen for a workflow using WFM.
I run the iwmodeldct and able to get a custom instantiation screen for my workflow.
I need to add a date item on custom instantiation screen which should be pre populated as current time and for that I need to put some javascript code.
But as soon as I am adding code in script tag it started giving me error as "could not find the configuration file for the associated workflow".
I am keep submitting the custom_instantiation.cfg to the staging area.
I have tried below sample code but both didn't worked.
[HTML]
<script>
function init()
{
alert("hello");
}
IWEventRegistry.addFormHandler("onFormInit",init);
</script>
<script>
<br>function init()<br>{<br>alert("hello");<br>}<br>IWEventRegistry.addFormHandler("onFormInit",init);<br></script><br>
[/HTML]
Find more posts tagged with
Comments
Adam Stoller
Is it safe to assume you didn't try both of those at the same time?
Did you put any comments into your JavaScript code?
If so - did you use '//' or '/*...*/' syntax?
Nidhi_Agrawal
I have tried the above code separately. And there is no comment tags inside...
Just simple alert and even I tired with blank init function.
Nidhi_Agrawal
I have deleted the Configurable and Script variables from the WFM and then recreated them. After that I can see alerts are coming properly on the workflow instantiation screen. (Though I don't find any link of this with my issue but its worked after that)
Still the required date function is not working properly in custom_instantiation.cfg which I have already tested on DCT formapi.
Thanks,
Nidhi A
Adam Stoller
Without having access to the code it's kind of difficult to figure out what's going wrong - If you figure out a way of getting decent diagnostics out of your alerts - perhaps you can share them, though if you do that - you should hopefully be able to figure out the issue and fix it yourself.
Best of luck.