• marzieh vahabi
    March 19, 2021 at 6:53 am #5862

    Hi there, 

    I have a coach view contain a customHTML/text. here is the code: 

    <input type=’file’ id=’file’ onchange = “uploadFile(event)”/>

    <script>
    var uploadFile = function(event){
    var reader = new fileReader();
    reader.onload = function(){
    var dataBased64 = reader.result.split(‘,’)[1];
    console.log(‘dataBased64 ==> ‘ + dataBased64 );
    };
    }
    </script>

    I can print the uploaded file in the console. so far so good.
    the issue is I need to bind the file content to a businessData or a configuration OB. but I couldn’t find any way to bind OB in HTML or script code.
    Also, if I added the function to the inline javascript, and tried to call it on change event (behavior tab), but after loading, nothing will happen. no event will be triggered. just the view and load.

    Any idea how can I solve this issue?

    SPARK Support
    March 22, 2021 at 1:20 pm #5863

    Hi Marzieh,

    The Custom HTML layout is an out of the box component available in BAW views and client side human services. It does not originate with the SPARK or UI Toolkit.  Please direct your question to the IBM forum linked below:

    IBM Community Forum: BPM, Workflow and Case

    Regards,

    Stephen P.

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

You must be logged in to reply to this topic.

Start typing and press Enter to search