A simpler way to do it is to set the extended data type of the string
control to ENDDATE.  This will return the date when it is selected.


Barry.

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of byteway_so
Sent: Thursday, 26 January 2006 8:02 PM
To: [email protected]
Subject: [development-axapta] date lookup

Hi,

It's easy to add a (tableless) date field to a form.
But how can I make use of the calendar lookup functionality?
It is possible to call the calender itself (in a testjob):

static void selectDateJob(Args _args)
{
// Testjob: otherwise override the lookup method of the date field
    Args    args = new Args();
    FormRun formRun;
    Date myDate;
    ;
    args.name(formstr(sysDateLookUp));
    formRun = classFactory.formRunClass(args);
    formRun.init();
    formRun.run();
    formRun.wait();
    //myDate = formRun.DateValue(); // ???
}

But how can I retrieve the value of this calendar?
And how can I make this calendar stick to the date field?

Thanks,
/b










Yahoo! Groups Links










YAHOO! GROUPS LINKS




Reply via email to