Skip to Content
avatar image
Former Member

Date Navigator

HI Experts

i'm using date navigator which contains 3 months ...and select type is Range...

and i'm having two input fields .... that is Starting Date and End Date

what i need is if i select range of date that ex

jan 4 , to ......jan 23

starting input field has to show jan 4

End Date input field has to sow jan 23

please give me some suggestions

Regards

Ramprasad

Edited by: Ramprasad K on Sep 30, 2008 10:16 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 30, 2008 at 08:44 AM

    Hi,

    After selecting the data range ex

    jan 4 to jan 23

    u split the date range and put in one String variable.

    and assign that String variable to input fileds.

    Regards,

    Sunaina Reddy T

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Using java.util.Calendar you can add the number of days required to the start date to get the end date and set that date as the end date as per the selection of the user for the start date.

      Regards,

      Murtuza

  • avatar image
    Former Member
    Oct 01, 2008 at 05:46 AM

    Hi Ramprasad,

    On day select event write a method, where you can capture the

    date and append it into the text field and on second select follow the

    once again caputre it and append it into the second text field

    Thanks

    Anup

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 01, 2008 at 05:59 AM

    Hi,

    String s = "jan 04 to jan 23"

    String[] dates=s.split("to");

    wdContext.currentContextElement().firstinputfield(dates[0]);

    wdContext.currentContextElement().secondinputfield(dates[1]);

    Regards,

    Sunaina Reddy T

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 05:55 PM

    hi i got the result ......

    in Date navigator's properties i used firstSelectDate and lastSelectDate stetted to two attributes ....and attributes binded to to fields where i need to show From Date and Last Date ...i got the result what i needed .

    thank you very much for your suggestions

    Regard's

    Ramprasad.k

    Add comment
    10|10000 characters needed characters exceeded