webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

CAF.model(...)._conf is not a function on async command button

  • 1.  CAF.model(...)._conf is not a function on async command button

    Posted Fri September 11, 2020 02:08 PM

    I have a Async Command Button that execute a method on server that remove a FileItem from a FileItem ArrayList. This button is on a row in my table that I created from my FileItem ArrayList.
    image


    When I click on these button “insert text here” with following configurations:


    show the following error:

    My java method is:
    image
    The log is:

    And the remove item is succesfull. If I submit the form with submit button that refresh the form the image that I removed doesnt exist.

    So, why these error is showed? Im using google chrome.

    [POP.012.0002.wm_cafshared/hidden] Error de cliente al procesar la respuesta del servidor.
    TypeError
    CAF.model(…)._conf is not a function
    TypeError: CAF.model(…)._conf is not a function
    at https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:12104:47
    at Object.stopProgress (https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:12107:3)
    at afterRefresh (https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:11014:10)
    at onComplete (https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:11045:1)
    at klass. (https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:1638:34)
    at klass.respondToReadyState (https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:1512:52)
    at klass.onStateChange (https://procesosdesa.ine.mx:8585/ui/dyn/general.js?l=es&v=200911124737:1457:6)


    #webMethods
    #Error
    #MWS-CAF-Task-Engine


  • 2.  RE: CAF.model(...)._conf is not a function on async command button

    Posted Fri September 11, 2020 09:22 PM

    Hi Jesus Carrillo,

    Can you check if any function in the script block or in some client-side event code in the CAF code is getting invoked whenever you click the “button” here? That is causing this error to pop up looks like.

    Action is getting invoked and the item is getting deleted already as you said. So somewhere the functions you wrote in a script in the view is causing this issue.

    Let us know if you find something of that sort. I don’t see a problem with the action or button here though.

    Regards,
    Firoz N


    #Error
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: CAF.model(...)._conf is not a function on async command button

    Posted Mon September 14, 2020 03:39 PM

    Hi, Firoz. Thank you for your reply.
    Actually no one javascript code is being execute. But I found this:
    This is the html code caf generated


    When I click on this button the console in chrome show this:

    The last line says that error is on click event, so:
    image
    but this code is automatically generate by CAF with the following properties:


    And the Client-Side Events looks like:


    No click event is written


    #MWS-CAF-Task-Engine
    #Error
    #webMethods


  • 4.  RE: CAF.model(...)._conf is not a function on async command button

    Posted Mon September 14, 2020 04:14 PM

    Hi Jesus Carrillo,

    The on-client event is empty so the HTML generated code shows as - onclick=“”;
    So not sure if the control parameter passing is linked to this error actually. I guess you are getting this error after AsyncTable refreshes.

    • Did you try in a different browser? Are you seeing the same issue there?
    • Can you try not to refresh the Asynctable and perform the delete once? See if you get the error still.
    • I believe this is a task detail page, so just open the task page again from TaskListManagement and see if the deleted file is gone.
    • If the issue is with the control parameter, then alternately try to pass the filename in the hidden variable via on client event for the button

    These options are to drill down the issue.

    Regards
    Firoz N


    #webMethods
    #MWS-CAF-Task-Engine
    #Error


  • 5.  RE: CAF.model(...)._conf is not a function on async command button

    Posted Mon September 14, 2020 04:40 PM

    Hi, Firoz.

    In the refresh button property I removed the table ang I set “_none” on it. Then I test the button action and the current error doesnt appear! Then I verify if the deleted file has gone and it is.
    If I can not refresh my table from the refresh button property, so what can I do for refreshing my table?

    Thank you very much!


    #MWS-CAF-Task-Engine
    #webMethods
    #Error


  • 6.  RE: CAF.model(...)._conf is not a function on async command button

    Posted Mon September 14, 2020 05:01 PM

    I hope you verified this by opening the task page again. The file was getting deleted but I was concerned about error only and to rule out any Java script error while clicking the button.

    Refresh is like loading the provider again. So just check if any issues in the same once as there is a difference in provider data now, one with file and other without file. So still the deleted row/file is getting referred.
    Also, put the table in the block panel and refresh that once and see.

    I don’t have CAF set up to re-create this issue and test this. So I can propose certain options only. Sorry.

    Regards,
    Firoz N


    #webMethods
    #MWS-CAF-Task-Engine
    #Error


  • 7.  RE: CAF.model(...)._conf is not a function on async command button

    Posted Tue September 15, 2020 04:06 PM

    Hi Jesus,

    Did you manage to resolve this issue and refresh the asyncTable as well?

    Regards,
    Firoz N


    #Error
    #MWS-CAF-Task-Engine
    #webMethods