Timestamps

I'm trying to use the timestamp stuff described here
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema

  • - A timestamp* of when form entry was started
  • - A timestamp* of when form entry ended
  • - See the 'ID Formatting' Section

with this example: (I integrated this into my schema)

   <instance>
      <data xmlns:orx="http://openrosa.org/xforms/metadata"

            id="example.org:myFormId"
            version="1" uiVersion="1" >
        <orx:meta>
	<orx:timeStart/>
	<orx:timeEnd/>
	<orx:instanceID/>

    </orx:meta>

....

but no timestamps are in the output.

Is this the way it is supported in Collect?

-steve-

Hi Steve,

You need some bindings for those nodes, check out the Widgets XForm
that Yaw sent out, it's a very good example and I think it does start
and end times.

Andrew

··· On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts wrote: > I'm trying to use the timestamp stuff described here > https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema > > - A timestamp* of when form entry was started > - A timestamp* of when form entry ended > - See the 'ID Formatting' Section > > with this example: (I integrated this into my schema) > > > > > id="example.org:myFormId" > version="1" uiVersion="1" > > > > > > > > > .... > > > > > but no timestamps are in the output. > > Is this the way it is supported in Collect? > > -steve- > > > > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks Andrew (and Yaw),

I did glean enough from those examples to capture the timestamps. Of course
one thing leads to another. :slight_smile:
In my application I see it set up like this:

|
|
|
|
|___
| v
^ v
| v
| v
| v
^ v
| v
| v
|<|
|
|

So now I'm able to know when I started the data collection session and end
it but what I really need is to get a time stamp every time I answer
question 8. (Actually it would suffice to know when I end of each iteration
the "MainLoop". Rather than coming back to this well for every question I
have I was hoping I could find some information on the javarosa site. For
example it appears that jr:preload must be what does the magic. So I was
hoping to find these "jr:" functions/classes and was hoping for something
like "jr:loadnow" (Then I would load the current time in a hidden field.)
Anyway I couldn't find anything on the javarosa site. (And while it must be
there couldn't even find evidence of jr:preload other than in the
examples.) Is what I'm trying to do possible and can someone point me to
the functions that support it?

As you see I'm looking at more than surveys but trying to use this
technology to also monitor/record events.

-steve-

··· On Thu, Feb 3, 2011 at 6:44 AM, Andrew Marder wrote:

Hi Steve,

You need some bindings for those nodes, check out the Widgets XForm
that Yaw sent out, it's a very good example and I think it does start
and end times.

Andrew

On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts steve@roberts.org wrote:

I'm trying to use the timestamp stuff described here
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema

- A timestamp* of when form entry was started
- A timestamp* of when form entry ended
- See the 'ID Formatting' Section

with this example: (I integrated this into my schema)

   <instance>
      <data xmlns:orx="http://openrosa.org/xforms/metadata"


            id="example.org:myFormId"
            version="1" uiVersion="1" >
        <orx:meta>
          <orx:timeStart/>
          <orx:timeEnd/>
          <orx:instanceID/>


      </orx:meta>

....

but no timestamps are in the output.

Is this the way it is supported in Collect?

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

To my knowledge, there is currently no support for per-question timestamps.

Brian

··· On Thu, Feb 3, 2011 at 3:07 PM, Steve Roberts wrote: > Thanks Andrew (and Yaw), > > I did glean enough from those examples to capture the timestamps. Of course > one thing leads to another. :-) > In my application I see it set up like this: > > | > | > | > | > |___ > | v > ^ v > | v > | v > | v > ^ v > | v > | v > |_<_| > | > | > > So now I'm able to know when I started the data collection session and end > it but what I really need is to get a time stamp every time I answer > question 8. (Actually it would suffice to know when I end of each iteration > the "MainLoop". Rather than coming back to this well for every question I > have I was hoping I could find some information on the javarosa site. For > example it appears that jr:preload must be what does the magic. So I was > hoping to find these "jr:" functions/classes and was hoping for something > like "jr:loadnow" (Then I would load the current time in a hidden field.) > Anyway I couldn't find anything on the javarosa site. (And while it must be > there couldn't even find evidence of jr:preload other than in the > examples.) Is what I'm trying to do possible and can someone point me to > the functions that support it? > > As you see I'm looking at more than surveys but trying to use this > technology to also monitor/record events. > > -steve- > > > > > On Thu, Feb 3, 2011 at 6:44 AM, Andrew Marder wrote: >> >> Hi Steve, >> >> You need some bindings for those nodes, check out the Widgets XForm >> that Yaw sent out, it's a very good example and I think it does start >> and end times. >> >> Andrew >> >> On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts wrote: >> > I'm trying to use the timestamp stuff described here >> > https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema >> > >> > - A timestamp* of when form entry was started >> > - A timestamp* of when form entry ended >> > - See the 'ID Formatting' Section >> > >> > with this example: (I integrated this into my schema) >> > >> > >> > > > >> > >> > id="example.org:myFormId" >> > version="1" uiVersion="1" > >> > >> > >> > >> > >> > >> > >> > >> > .... >> > >> > >> > >> > >> > but no timestamps are in the output. >> > >> > Is this the way it is supported in Collect? >> > >> > -steve- >> > >> > >> > >> > >> > >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> > >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Hi Greg,

That's correct. There is still no support for per-question timestamps.
To my knowledge that is not currently on the roadmap, but if someone
wanted to take it on, that'd be great!

Brian

··· On Tue, Apr 26, 2011 at 12:11 PM, GregM wrote: > Is this still the case? > > Is there no support for per-question timestamps? > > Greg > > On Feb 3, 7:28 pm, Brian DeRenzi wrote: >> To my knowledge, there is currently no support for per-question timestamps. >> >> Brian >> >> >> >> >> >> >> >> On Thu, Feb 3, 2011 at 3:07 PM, Steve Roberts wrote: >> > Thanks Andrew (and Yaw), >> >> > I did glean enough from those examples to capture the timestamps. Of course >> > one thing leads to another. :-) >> > In my application I see it set up like this: >> >> > | >> > | >> > | >> > | >> > |___ >> > | v >> > ^ v >> > | v >> > | v >> > | v >> > ^ v >> > | v >> > | v >> > |_<_| >> > | >> > | >> >> > So now I'm able to know when I started the data collection session and end >> > it but what I really need is to get a time stamp every time I answer >> > question 8. (Actually it would suffice to know when I end of each iteration >> > the "MainLoop". Rather than coming back to this well for every question I >> > have I was hoping I could find some information on the javarosa site. For >> > example it appears that jr:preload must be what does the magic. So I was >> > hoping to find these "jr:" functions/classes and was hoping for something >> > like "jr:loadnow" (Then I would load the current time in a hidden field.) >> > Anyway I couldn't find anything on the javarosa site. (And while it must be >> > there couldn't even find evidence of jr:preload other than in the >> > examples.) Is what I'm trying to do possible and can someone point me to >> > the functions that support it? >> >> > As you see I'm looking at more than surveys but trying to use this >> > technology to also monitor/record events. >> >> > -steve- >> >> > On Thu, Feb 3, 2011 at 6:44 AM, Andrew Marder wrote: >> >> >> Hi Steve, >> >> >> You need some bindings for those nodes, check out the Widgets XForm >> >> that Yaw sent out, it's a very good example and I think it does start >> >> and end times. >> >> >> Andrew >> >> >> On Thu, Feb 3, 2011 at 2:53 AM, Steve Roberts wrote: >> >> > I'm trying to use the timestamp stuff described here >> >> >https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema >> >> >> > - A timestamp* of when form entry was started >> >> > - A timestamp* of when form entry ended >> >> > - See the 'ID Formatting' Section >> >> >> > with this example: (I integrated this into my schema) >> >> >> > >> >> > > >> >> > id="example.org:myFormId" >> >> > version="1" uiVersion="1" > >> >> > >> >> > >> >> > >> >> > >> >> >> > >> >> > .... >> >> > >> >> > >> >> >> > but no timestamps are in the output. >> >> >> > Is this the way it is supported in Collect? >> >> >> > -steve- >> >> >> > -- >> >> > Post: opendatakit@googlegroups.com >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> >> -- >> >> Post: opendatakit@googlegroups.com >> >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> Options:http://groups.google.com/group/opendatakit?hl=en >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en