Posted in: SPARK UI Toolkit Controls
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>
is there anything needs to be done for BPM v8.5.7 ?SPARK SupportJuly 21, 2016 at 9:56 am #2327
Can you provide a screenshot of your Console output?
Stephen P.Srikanth GanesanJuly 26, 2016 at 3:50 am #2333
Attaching the console log from the browser.SPARK SupportJuly 26, 2016 at 9:12 am #2337
This error is generally thrown when the MyButton.js file is not loaded correctly. Please attach your MyButton.js file to this thread.
Stephen P.Srikanth GanesanJuly 26, 2016 at 11:23 pm #2341
I am attaching the twx file itself with the custom control example.Srikanth GanesanJuly 26, 2016 at 11:32 pm #2342
I am attaching it as txt file. Please rename it as twx before importing in PD.
Srikanth GSPARK SupportJuly 27, 2016 at 6:15 am #2344
You forgot to include MyButton.js in the Included Scripts on the behavior tab. See attached.
JMACSrikanth GanesanJuly 27, 2016 at 7:21 am #2346
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.
Srikanth GSPARK SupportJuly 27, 2016 at 11:38 am #2349
I have updated the Creating Your Own Control Article to hopefully make this step more apparent to future users.
Thank you for your feedback.
You must be logged in to reply to this topic.