Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

WebResource in CustomScriptsFrame not available on certain Entity Forms

$
0
0

I have a custom workflow action defined by a plugin being triggered by a JavaScript Function.    *This works correctly.*

Using the Ribbon Workbench I defined a new button and a command to call this Javascript function.   *This works correctly.*

I have two forms on the Entity:

I have a legacy form from 2011 called "Information."   On this form the custom button works every time, it calls the Javascript and triggers the Workflow Action.

I have a new form that was built after upgrading to 2015 in order to use the Process Workflows.    On this form the custom button rarely works.  It appears that my custom Javascript function is not in scope when attempting to call it from the Ribbon.    Using the Development Tools from the browser, I sometimes can find the WebResource under the 'customscriptsframe' and sometimes cannot.

If I put a break-point in my Javascript and call my function from the console, it sometimes works, and sometimes gives me the error that there's no such function, even though I'm looking directly at it in the browser resources.

I think a lot of this is tied to how the contentframes and customscriptframes are generated, as sometimes I have multiple customscriptframes and sometimes I only have one.   Sometimes the WebResources folder is missing and my Javascript isn't even there, (although it's referenced in the Events/Scripts section of the Form designer.)


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>