Dtpicker Question

Dtpicker Question

Postby PeterHarmes » Wed Sep 28, 2011 8:14 am

Hi,

Is there a way knowing when the user has clicked & selected a date using dtpicker? I have a screen that has a start & end date and it shows transactions based on the dates entered. Currently i'm using valid on the date picker to refresh the contents of the screen, but that means that the user has to select the date and move away from the date field. If I use the on change option, the browse refreshes if the user changes the month/year in the date picker before they have selected a date, so I was wondering if there was a way to modify dtpicker to call a code block when the user clicks on a date?

Thanks in advance

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Dtpicker Question

Postby James Bott » Thu Sep 29, 2011 4:24 am

Pete,

Have you tried using bChange?

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Dtpicker Question

Postby PeterHarmes » Thu Sep 29, 2011 8:28 am

Hi James,

When I put the ON CHANGE/bChange onto the dtpicker, this is called when I scroll through the months/years within the calendar, so each time you change the month/year, my app sets a scope (possibly a filter too). I could have a button that the users click to apply the change manually, but then this screen would operate diferently to other screens in my app.

regards,

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Dtpicker Question

Postby James Bott » Thu Sep 29, 2011 12:42 pm

Pete,

This does seem to be a dilemma. I can't think of how the control can know when the user is done selecting a date until the user leaves the GET. A search button, as you suggested, would work and users are used to having to click such a button when searching data.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 105 guests