Select to view content in your preferred language

ArcPad Form Date Field Page 3 doesn't populate unless viewed

2783
2
07-12-2011 07:00 AM
TimHoyman
Emerging Contributor
I have a date field that automatically populates.  I have placed this box on a page that doesn't get opened that often to clear up space on the other pages.  I have noticed that the date only gets populated in the .dbf when the user views that page (i believe the term is "focus").  Can I change that or do I have to put that box on a page that gets viewed every time?
Tags (3)
0 Kudos
2 Replies
PatrickMurphy
Frequent Contributor
My guess is that you can use ArcPad Studio and edit the .apl file and give the control a default value of Now().
0 Kudos
nev
by
Regular Contributor
There are a number of options.  easiest is probaly just putting the date text box on page one but hide it, then it will always get populated, there is no reason for the user to see todays date every time they record something is there? 
Or when the form loads just activate page3 then activate page1.
OnLoad event:
layer.Forms("EDITFORM").pages("Page3").activate
layer.Forms("EDITFORM").pages("Page1").activate

This is untested.

OR write the date directly to the file on the featureadded event.  this requires is a little bit more code
0 Kudos