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
  • 1.  Filter Input Control

    Posted Wed September 14, 2011 01:59 AM

    Hi,

    I m using Filter Input Control, which has option for Go button. I need clear button as well to clear the value entered by user because control holds the entered value after clicking Go button. I tried to use java script to SetValue (“”) in click of button but that doesn’t help.

    If any one used Filter Input Control, let me know what are all the JS method supported for Filter Input Control,
    How to reset the value entered in the Filter Input Control

    Thanks,


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Filter Input Control

    Posted Wed September 14, 2011 04:29 AM

    The jsdocs for the filter control client side model is @ http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_ga/My_webMethods/8-2-SP1_CAF_JavaScript_Reference/CAF.FilterInput.Model.html

    I haven’t tried this, but you should be able to do something like from javascript:

    //get the model for the control from its id
    var m = CAF.model(‘#{caf:cid(“filterInputControlIdHere”)}’);
    //set the value
    m.setValue(“”);


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Filter Input Control

    Posted Wed September 14, 2011 03:23 PM

    Yes I did try that but it didnt work.

    I m using webMethods 713. But I dont find that JS documentation in 713. Is it any product issue ? any other inputs to achieve in 713?


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 4.  RE: Filter Input Control

    Posted Wed September 14, 2011 07:30 PM

    Since JS didnt work well, i created control accessor for the filter input control and used its method in Java Action. This works fine.

    Thanks Eric. If you find better way let me know.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 5.  RE: Filter Input Control

    Posted Wed August 10, 2016 07:26 AM

    Hi,

    Can you please share the code sample or advice me what I method I should use to reset Filter text box from server side.

    I have created Control Accessor on server side but I am not getting how to proceed after that.

    Thanks in Advance.

    Anand


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 6.  RE: Filter Input Control

    Posted Wed August 10, 2016 02:47 PM

    The simplest way to modify the filter value from the server side would be:

    1. Create a new String field in your page bean
    2. Bind the ‘filter’ property of your table control to the field created at #1

    Then any action handler can modify the value of the field from #1 and it would be applied to the table the next time it is rendered.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 7.  RE: Filter Input Control

    Posted Thu August 11, 2016 08:44 AM

    Hi Eric,

    thanks for the solution. :slight_smile:

    Anand


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine