Search Support
-
Srikanth GanesanJuly 21, 2016 at 4:19 am #2326
I followed the example in “Creating your own control” and it does not work with BPM v8.5.7 & firefox 47.0
I am getting the following error
<div class=”errorTitle focusRow subLogRow “><span class=”errorMessage “>engine.initView() caught Exception when calling view constructor for testMYButton, Exception: ReferenceError: bpmext_control_InitMyButton is not defined</span></div>
<div class=”errorTrace “>
<div class=” “>
<div class=”objectBox objectBox-stackFrame focusRow subLogRow hasTwisty “>bpmext_control_InitConfiguration/Logger</Logger/this._log<span class=” “>(</span><span class=”arguments “><span class=”argName “>text</span><span class=” “>=</span><span class=”objectBox objectBox-string “>”engine.initView() caught…MyButton is not defined”</span><span class=”arrayComma “>, </span><span class=”argName “>type</span><span class=” “>=</span><span class=”objectBox objectBox-string “>”error”</span><span class=”arrayComma “>, </span><span class=”argName “>oldFn</span><span class=” “>=</span>bound ()</span><span class=” “>)</span></div>
</div>
</div>
is there anything needs to be done for BPM v8.5.7 ?SPARK SupportJuly 21, 2016 at 9:56 am #2327Hi Srikanth,
Can you provide a screenshot of your Console output?
You may want to check the MyButton.js file to insure that there are no invalid characters causing the Javascript to break.
Regards,
Stephen P.
Srikanth GanesanJuly 26, 2016 at 3:50 am #2333Hi Stephen,
Attaching the console log from the browser.
SPARK SupportJuly 26, 2016 at 9:12 am #2337Hi Srikanth,
This error is generally thrown when the MyButton.js file is not loaded correctly. Please attach your MyButton.js file to this thread.
Regards,
Stephen P.
Srikanth GanesanJuly 26, 2016 at 11:23 pm #2341Hi Stephen,
I am attaching the twx file itself with the custom control example.
Srikanth GanesanJuly 26, 2016 at 11:32 pm #2342Hi Stephen,
I am attaching it as txt file. Please rename it as twx before importing in PD.
Regards
Srikanth G
SPARK SupportJuly 27, 2016 at 6:15 am #2344You forgot to include MyButton.js in the Included Scripts on the behavior tab. See attached.
JMAC
Srikanth GanesanJuly 27, 2016 at 7:21 am #2346Hi,
Great.. I did not catch this from the How-to example. Can you add the above screen shot to the How-to example as well.
https://salientprocess.zendesk.com/hc/en-us/articles/217879818-Creating-Your-Own-Control.
Many thanks,
Srikanth G
SPARK SupportJuly 27, 2016 at 11:38 am #2349Hi Srikanth,
I have updated the Creating Your Own Control Article to hopefully make this step more apparent to future users.
Thank you for your feedback.
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.