I want the user to key in a date in the first field, and I want the date to
automatically default 60 days prior to the date they keyed in the first date
field.
So if they keyed in Date: 08/20/09 I want the 2nd date to default 06/20/09
How can I get the 2nd date to default? I asked Meditech and they said:
Go to option # 8 (Edit Elements) on the Process Reports Menu?
2) Then go to e.adm.doc.date and add the following A)ttribute...
DFT2=%Z.date.add(b.adm.doc.date,(0-60))
I wasn't understanding How to attach the attribute to the specific date
field. I tried just adding it and it's not working. I'm sure I'm missing
something but I don't know what. I thought I'd ask on the "L" . I'm now in
Meditech's 24 day wait que.
Thanks,
Laura Wasielewski
St Josephs Hospital
====================================
Please do NOT send messages that ask "Please post to the list" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.
To UNSUBSCRIBE, go to http://MTUSers.net
for information.
The meditech-l archives (and other tips) can be found at
http://mtusers.net/zarchives
Job opportunities in the Meditech community can be found at
http://mtusers.net/zjobs
adm.doc.date LE
ENDING DATE:
adm.doc.date GE
STARTING DATE:
And you want the "STARTING DATE" to default to 60 days prior.
The mistake is that MT told you to use b.adm.doc.date to default e.adm.doc.date, but your first field from the user is stored in e.adm.doc.date.
So your attribute on the second field on the screen (b.adm.doc.date) is:
DFT2=%Z.date.add(e.adm.doc.date,0-60)
It is not typical to prompt a user for a more recent date followed by an older date, so I think you or Meditech got your "b = beginning" and "e= end" confused. If you do the LE operator on the first field you get an "e" on the temp variable where the user's input is stored.
Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: mailto:Joe.C...@iatric.com
Web: http://www.iatric.com/
Iatric Systems is a leading provider of integrated software applications, interfaces and reporting solutions for hospitals and healthcare systems.
__________