Changing Name of Instance File

Hello ODK Community,

I was wondering if there was a simple way to rename the Instance Files that
are generated. Currently, the instance files are named as follows:

··· * * *NameOfSurvey_Year_Month_Day_Time*

I would like to add the a value from the instance such as the name/# of the
household.

NameOfSurvey_Year_Month_Day_Time_Household

Joy

user-specified (think save as..) instances is the second item on my
todo list for the 1.1.7 release. doing it from the instance is
something we've talked about, but i don't think that'll make it in
this release.

··· On Tue, May 24, 2011 at 08:11, Joy Buolamwini wrote: > Hello ODK Community, > > I was wondering if there was a simple way to rename the Instance Files that > are generated. Currently, the instance files are named as follows: > > NameOfSurvey_Year_Month_Day_Time > > I would like to add the a value from the instance such as the name/# of the > household. > > NameOfSurvey_Year_Month_Day_Time_Household > > Joy > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

wrt 1.1.7 is that still going to be released this month?

··· On Tue, May 24, 2011 at 8:17 AM, Yaw Anokwa wrote:

user-specified (think save as..) instances is the second item on my
todo list for the 1.1.7 release. doing it from the instance is
something we've talked about, but i don't think that'll make it in
this release.

On Tue, May 24, 2011 at 08:11, Joy Buolamwini joy@jovialdesigns.com wrote:

Hello ODK Community,

I was wondering if there was a simple way to rename the Instance Files
that
are generated. Currently, the instance files are named as follows:

NameOfSurvey_Year_Month_Day_Time

I would like to add the a value from the instance such as the name/# of
the
household.

NameOfSurvey_Year_Month_Day_Time_Household

Joy

--
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

yup.

··· On Tue, May 24, 2011 at 08:52, Steve Roberts wrote: > wrt 1.1.7 is that still going to be released this month? > > On Tue, May 24, 2011 at 8:17 AM, Yaw Anokwa wrote: >> >> user-specified (think save as..) instances is the second item on my >> todo list for the 1.1.7 release. doing it from the instance is >> something we've talked about, but i don't think that'll make it in >> this release. >> >> On Tue, May 24, 2011 at 08:11, Joy Buolamwini wrote: >> > Hello ODK Community, >> > >> > I was wondering if there was a simple way to rename the Instance Files >> > that >> > are generated. Currently, the instance files are named as follows: >> > >> > NameOfSurvey_Year_Month_Day_Time >> > >> > I would like to add the a value from the instance such as the name/# of >> > the >> > household. >> > >> > NameOfSurvey_Year_Month_Day_Time_Household >> > >> > Joy >> > >> > -- >> > 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 >

Yaw,

Thanks for the prompt reply. I am a developer, so I have been working on
modifying the code myself to fit certain needs.

I found where I can change it in the code. Please let me know of any
caveats.

For any developers out there reverse engineering as I have been, the name of
the instance file can be modified in FormEntryActivity.java
in the loadingComplete() method.

mInstanceDirPath is the variable to manipulate as seen fit. This is what is
passed to the setExportVars(...) method in SaveToDiskTask.java

I have been working on a custom version of ODK that so far allows users to

Create "prepopulated" fields

Add all household members before starting a repeated group

Skip around in a nonlinear fashion between groups with all of the household
members displayed on a fixed portion of the screen. I sent a concept shot of
this earlier, now it actually works.

Take a random sample of the household members based on age

I have also programmed it to allow the user to link a particular household
member to another form.

Working now on allowing the user to select missing household members, so the
user can easily go back to the form to enter in data should the household
member turn up.

Pretty excited. Doing a pilot with a non profit in Ethiopia later this week.
I will share the results once everything is finished, but ODK has been
invaluable.

Joy

··· On Tue, May 24, 2011 at 11:17 AM, Yaw Anokwa wrote:

user-specified (think save as..) instances is the second item on my
todo list for the 1.1.7 release. doing it from the instance is
something we've talked about, but i don't think that'll make it in
this release.

On Tue, May 24, 2011 at 08:11, Joy Buolamwini joy@jovialdesigns.com wrote:

Hello ODK Community,

I was wondering if there was a simple way to rename the Instance Files
that
are generated. Currently, the instance files are named as follows:

NameOfSurvey_Year_Month_Day_Time

I would like to add the a value from the instance such as the name/# of
the
household.

NameOfSurvey_Year_Month_Day_Time_Household

Joy

--
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

Just a note. I am developing for the 7 inch tablets running Android 2.2 we
will be using, but downloaded the apk onto my HTC Evo , and it scales down
fine. (just needs few minor modifications).

Modifying the instance file named worked via mInstanceDirPath.

Were you planning on adding the save as as part of the menu, an automatic
alert dialog that comes up at the end of the form with the current name and
the option to change it, or something else? For what I am doing I am
automatically changing file names to fit predefined ids we have set.

I am working with tablets I have more screen real estate. Would it make
sense to branch for a tablet version of ODK, which is basically what I have
been developing that can still adapt to smaller screens. Not sure what the
future development plans are, but I would like to contribute if I can.

Joy

P.S. Attached is some information about me

Biography_JoyBuolamwini.pdf (273 KB)

··· On Tue, May 24, 2011 at 11:53 AM, Yaw Anokwa wrote:

yup.

On Tue, May 24, 2011 at 08:52, Steve Roberts steve@roberts.org wrote:

wrt 1.1.7 is that still going to be released this month?

On Tue, May 24, 2011 at 8:17 AM, Yaw Anokwa yanokwa@gmail.com wrote:

user-specified (think save as..) instances is the second item on my
todo list for the 1.1.7 release. doing it from the instance is
something we've talked about, but i don't think that'll make it in
this release.

On Tue, May 24, 2011 at 08:11, Joy Buolamwini joy@jovialdesigns.com wrote:

Hello ODK Community,

I was wondering if there was a simple way to rename the Instance Files
that
are generated. Currently, the instance files are named as follows:

NameOfSurvey_Year_Month_Day_Time

I would like to add the a value from the instance such as the name/#
of
the
household.

NameOfSurvey_Year_Month_Day_Time_Household

Joy

--
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

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

joy

that's awesome news! let us know how the pilot goes and once we get
1.1.7 out, we can see if we can pull in some of your changes.

yaw

··· On Tue, May 24, 2011 at 08:35, Joy Buolamwini wrote: > Yaw, > > Thanks for the prompt reply. I am a developer, so I have been working on > modifying the code myself to fit certain needs. > > I found where I can change it in the code. Please let me know of any > caveats. > > For any developers out there reverse engineering as I have been, the name of > the instance file can be modified in FormEntryActivity.java > in the loadingComplete() method. > > mInstanceDirPath is the variable to manipulate as seen fit. This is what is > passed to the setExportVars(...) method in SaveToDiskTask.java > > > I have been working on a custom version of ODK that so far allows users to > > Create "prepopulated" fields > > Add all household members before starting a repeated group > > Skip around in a nonlinear fashion between groups with all of the household > members displayed on a fixed portion of the screen. I sent a concept shot of > this earlier, now it actually works. > > Take a random sample of the household members based on age > > I have also programmed it to allow the user to link a particular household > member to another form. > > Working now on allowing the user to select missing household members, so the > user can easily go back to the form to enter in data should the household > member turn up. > > Pretty excited. Doing a pilot with a non profit in Ethiopia later this week. > I will share the results once everything is finished, but ODK has been > invaluable. > > Joy > > On Tue, May 24, 2011 at 11:17 AM, Yaw Anokwa wrote: >> >> user-specified (think save as..) instances is the second item on my >> todo list for the 1.1.7 release. doing it from the instance is >> something we've talked about, but i don't think that'll make it in >> this release. >> >> On Tue, May 24, 2011 at 08:11, Joy Buolamwini wrote: >> > Hello ODK Community, >> > >> > I was wondering if there was a simple way to rename the Instance Files >> > that >> > are generated. Currently, the instance files are named as follows: >> > >> > NameOfSurvey_Year_Month_Day_Time >> > >> > I would like to add the a value from the instance such as the name/# of >> > the >> > household. >> > >> > NameOfSurvey_Year_Month_Day_Time_Household >> > >> > Joy >> > >> > -- >> > 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 >