• Martin Lorenz
    March 1, 2017 at 1:03 pm #3902

    Hello All,

    I use IBM BPM 8.5.7 + SPARK 4.8.8 EE. I have coache view with table control. In table I have few controls and among them are two single select control (for example first single select control it has ID ‘single1’, second ‘single2’. single2 it is set as the start of READ ONLY. And now when in single1 I will choose value X then single2 becomes EDITABLE but when I will choose value Y, single2 becomes back READ ONLY. I wrote in Inline Javascript function:

    this.setVisible = function(){
    //body function
    }
    

    And when I want call this function in change event single1 (view.setVisible()) I getting in browser consol error that ‘setVisible is not a function’. What I doing wrong? Where I makeing mistake? Please help.

    Saroj Panda
    March 2, 2017 at 2:13 am #3912

    On Change event of single1 you can write ${single2=}.setEnabled(me.getData() == “X”).

    It should solve your issue.
    Regards,

    Saroj

    Martin Lorenz
    March 2, 2017 at 6:22 am #3913

    Than you for your response Saroj :). I solved this problem differently. I used method: me.ui.invoke(“function_name”, parameters) and everything works.

    Problem solved 🙂

    SPARK Support
    March 3, 2017 at 12:53 pm #3929

    Hi Martin,

    Calling me.ui.invoke() does for a matching function name, which is an excellent solution.  Although, if your code is in the Inline JS of a coach view, you should be able to call me.functionName from the events of that coach.

    Regards,

    Stephen P.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search