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.  date control

    Posted Wed May 20, 2009 06:56 AM

    Hi,

    I was using a date control(Date Input), but i am unable to read the value of this control using javascript.

    I tried with
    var dob = CAF.model(‘#{activePageBean.clientIds[‘date’]}’).getValue();

    but it is not working…

    is there any other solution…???

    Regards,
    Sunil_N


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


  • 2.  RE: date control

    Posted Wed June 10, 2009 08:03 AM

    Hi,

    Have any one tried that…?

    Regards,
    Sunil_N


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


  • 3.  RE: date control

    Posted Wed June 10, 2009 09:56 AM

    Hi Sunil,
    yes, I have tried that and it works…

    var myDate = CAF.model('#{activePageBean.clientIds['date']}').getValue(); 
    alert(myDate);

    The alert shows me the value I entered in the DateInput control.

    do you see any javascript errors (in IE)? What MWS version are you using?

    best regards
    Javier


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


  • 4.  RE: date control

    Posted Wed June 10, 2009 10:46 AM

    Hi Javier,

    Thanks for the reply.

    If nothing is entered in the control, i am getting “undefined” in alert popup.

    For this dateControl i defined yyyy/MM/dd as pattren.

    If i enter any value other than the above format, i am getting “undefined”.
    if i enter 2001/12/12, in popup “Wed Dec 12:00:00 UTC+0530 2001”.

    My requirement is to check whether user has enterded the correct value or not.
    null or not… pattren is correct or not.

    there are no javascript errors…

    Version Details:
    MWS:7.1.2

    Regards,
    Sunil_N


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


  • 5.  RE: date control

    Posted Thu June 11, 2009 06:49 AM

    Hi Sunil,

    The returning of “undefined” value is a known issue with MWS 7.1.2, this will be fixed in the next fix release of MWS 7.1.2.

    Regards

    Vinay


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


  • 6.  RE: date control

    Posted Thu June 11, 2009 09:09 AM