Use one date to fill in a month of days..

F

Fred Boer

I'm enjoying Infopath, but I have run into problems.. It's about time...
well, dates, actually! :)

I realize that manipulating dates in Infopath is, well, interesting. I have
read some articles and even cut and pasted some JScript, but have no idea if
I am on the right track or if I can do what I want.

I want to create an attendance form. On the top of the form I want a
DatePicker which the employee will use to enter the first day of the month.

Using that value, I want a table to fill up with the dates and days of the
week... i.e. One column showing the date, one showing the day "Monday", and
then one with a text field for an attendance code...

I have fiddled with some JScript code and I can pop up a messagebox that,
say, adds a day onto today's date. Something like this:

function CTRL3_5::OnClick(eventObj)
{
today = new Date(); // Get today's date.
yesterdayDate = today.getDate() - 1 ;
today.setDate( yesterdayDate );
XDocument.UI.Alert("Yesterday was " + today)};

What I want to know is how I could use the value that the employee enters in
the DatePicker and stick it into the formula above... or is that even
possible?

Thanks
 
F

Fred Boer

Well, I found this which I believe is *exactly* what I want... except it is
in Infopath 2007, and I am working with Infopath 2003...

Can it be done in 2003?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top