I am going through the steps of trying to create a custom form using the tea houses as a reference. I have successfully setup my index.html file that redirects to a menu page (menu.html). This utilises launchHTML from control.js in the framework folder. I have then created a new listview form (user list) that displays correctly under form view, but when I try open it from my menu.html using "openTableToListView" I get a "ODK survey has stopped working" error. I then tried to debug and put a whole lot of alerts in my js for control.js, but when i check on the phone those changes are not even there. In fact the entire framework folder is empty..BUT the launchHTML is still working fine. So my question is..where is the control.js and data.js being read from and how do i debug it? I tried copying my entire framework folder manually to the phone as well as editing control.js on my phone..but ODK survey does not use that file when running.
I have searched everywhere but cant fid anything that helps me. Any help will be much appreciated
Or are you trying to work with the Java source code directly?
···
On Mon, Dec 7, 2015 at 7:26 AM, wrote:
Hi all
I am going through the steps of trying to create a custom form using the
tea houses as a reference. I have successfully setup my index.html file
that redirects to a menu page (menu.html). This utilises launchHTML from
control.js in the framework folder. I have then created a new listview form
(user list) that displays correctly under form view, but when I try open it
from my menu.html using "openTableToListView" I get a "ODK survey has
stopped working" error. I then tried to debug and put a whole lot of alerts
in my js for control.js, but when i check on the phone those changes are
not even there. In fact the entire framework folder is empty..BUT the
launchHTML is still working fine. So my question is..where is the
control.js and data.js being read from and how do i debug it? I tried
copying my entire framework folder manually to the phone as well as editing
control.js on my phone..but ODK survey does not use that file when running.
I have searched everywhere but cant fid anything that helps me. Any help
will be much appreciated
In addition to Mitch's questions, I have some additional comments that may
help you debug the issue. When you run a Tables app on the device, an
injected interface is actually used to perform the actions. The JavaScript
on the device is only used if that interface is not injected which is the
case in the App Designer. The best way to debug the JavaScript on the
device is to use Android remote debugging ( https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en#remote-debugging-on-android-with-chrome-devtools).
Your Android device has to use version 4.0 or later and Chrome has to be
version 32 or later.
Clarice
···
On Mon, Dec 7, 2015 at 9:38 AM, Mitch Sundt wrote:
Stepping back....
Are you using rev 126?
Or are you trying to work with the Java source code directly?
I am going through the steps of trying to create a custom form using the
tea houses as a reference. I have successfully setup my index.html file
that redirects to a menu page (menu.html). This utilises launchHTML from
control.js in the framework folder. I have then created a new listview form
(user list) that displays correctly under form view, but when I try open it
from my menu.html using "openTableToListView" I get a "ODK survey has
stopped working" error. I then tried to debug and put a whole lot of alerts
in my js for control.js, but when i check on the phone those changes are
not even there. In fact the entire framework folder is empty..BUT the
launchHTML is still working fine. So my question is..where is the
control.js and data.js being read from and how do i debug it? I tried
copying my entire framework folder manually to the phone as well as editing
control.js on my phone..but ODK survey does not use that file when running.
I have searched everywhere but cant fid anything that helps me. Any help
will be much appreciated
ok thanks clarice - i will look into that. and to answer mitch - yes rev
126.
I fear i may need to get my developers involved. I have development
knowledge but am i little bit rusty having not being actively involved for
the last couple of years.
I am guessing i will be able to debug the odk app using the android remote
debugging
···
On Monday, 7 December 2015 20:45:09 UTC+2, clarice larson wrote:
>
> In addition to Mitch's questions, I have some additional comments that may
> help you debug the issue. When you run a Tables app on the device, an
> injected interface is actually used to perform the actions. The JavaScript
> on the device is only used if that interface is not injected which is the
> case in the App Designer. The best way to debug the JavaScript on the
> device is to use Android remote debugging (
> https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en#remote-debugging-on-android-with-chrome-devtools).
> Your Android device has to use version 4.0 or later and Chrome has to be
> version 32 or later.
>
> Clarice
>
> On Mon, Dec 7, 2015 at 9:38 AM, Mitch Sundt <mitche...@gmail.com > wrote:
>
>> Stepping back....
>>
>> Are you using rev 126?
>>
>> Or are you trying to work with the Java source code directly?
>>
>>
>>
>> On Mon, Dec 7, 2015 at 7:26 AM, <andrew....@gmail.com > wrote:
>>
>>> Hi all
>>>
>>> I am going through the steps of trying to create a custom form using the
>>> tea houses as a reference. I have successfully setup my index.html file
>>> that redirects to a menu page (menu.html). This utilises launchHTML from
>>> control.js in the framework folder. I have then created a new listview form
>>> (user list) that displays correctly under form view, but when I try open it
>>> from my menu.html using "openTableToListView" I get a "ODK survey has
>>> stopped working" error. I then tried to debug and put a whole lot of alerts
>>> in my js for control.js, but when i check on the phone those changes are
>>> not even there. In fact the entire framework folder is empty..BUT the
>>> launchHTML is still working fine. So my question is..where is the
>>> control.js and data.js being read from and how do i debug it? I tried
>>> copying my entire framework folder manually to the phone as well as editing
>>> control.js on my phone..but ODK survey does not use that file when running.
>>>
>>> I have searched everywhere but cant fid anything that helps me. Any help
>>> will be much appreciated
>>>
>>> --
>>> --
>>> Post: opend...@googlegroups.com
>>> Unsubscribe: opendatakit...@googlegroups.com
>>> Options: http://groups.google.com/group/opendatakit?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "ODK Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to opendatakit...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Mitch Sundt
>> Software Engineer
>> University of Washington
>> mitche...@gmail.com
>>
>> --
>> --
>> Post: opend...@googlegroups.com
>> Unsubscribe: opendatakit...@googlegroups.com
>> Options: http://groups.google.com/group/opendatakit?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ODK Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to opendatakit...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
It stops as I am not able to go into that function because there is no
source in chrome debugging for it to access. No i think my only choice will
be to download the source and try debug from android studio - which I
really dont want to do. Any other ideas?
My full code is this - where 'User List' is what I called my form in
properties.csv (Table,default,displayName,object,"""User List""")
···
On Monday, 7 December 2015 21:16:56 UTC+2, Andrew de Klerk wrote:
>
> ok thanks clarice - i will look into that. and to answer mitch - yes rev
> 126.
>
> I fear i may need to get my developers involved. I have development
> knowledge but am i little bit rusty having not being actively involved for
> the last couple of years.
>
> I am guessing i will be able to debug the odk app using the android remote
> debugging
>
> On Monday, 7 December 2015 20:45:09 UTC+2, clarice larson wrote:
>>
>> In addition to Mitch's questions, I have some additional comments that
>> may help you debug the issue. When you run a Tables app on the device, an
>> injected interface is actually used to perform the actions. The JavaScript
>> on the device is only used if that interface is not injected which is the
>> case in the App Designer. The best way to debug the JavaScript on the
>> device is to use Android remote debugging (
>> https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en#remote-debugging-on-android-with-chrome-devtools).
>> Your Android device has to use version 4.0 or later and Chrome has to be
>> version 32 or later.
>>
>> Clarice
>>
>> On Mon, Dec 7, 2015 at 9:38 AM, Mitch Sundt wrote:
>>
>>> Stepping back....
>>>
>>> Are you using rev 126?
>>>
>>> Or are you trying to work with the Java source code directly?
>>>
>>>
>>>
>>> On Mon, Dec 7, 2015 at 7:26 AM, wrote:
>>>
>>>> Hi all
>>>>
>>>> I am going through the steps of trying to create a custom form using
>>>> the tea houses as a reference. I have successfully setup my index.html file
>>>> that redirects to a menu page (menu.html). This utilises launchHTML from
>>>> control.js in the framework folder. I have then created a new listview form
>>>> (user list) that displays correctly under form view, but when I try open it
>>>> from my menu.html using "openTableToListView" I get a "ODK survey has
>>>> stopped working" error. I then tried to debug and put a whole lot of alerts
>>>> in my js for control.js, but when i check on the phone those changes are
>>>> not even there. In fact the entire framework folder is empty..BUT the
>>>> launchHTML is still working fine. So my question is..where is the
>>>> control.js and data.js being read from and how do i debug it? I tried
>>>> copying my entire framework folder manually to the phone as well as editing
>>>> control.js on my phone..but ODK survey does not use that file when running.
>>>>
>>>> I have searched everywhere but cant fid anything that helps me. Any
>>>> help will be much appreciated
>>>>
>>>> --
>>>> --
>>>> Post: opend...@googlegroups.com
>>>> Unsubscribe: opendatakit...@googlegroups.com
>>>> Options: http://groups.google.com/group/opendatakit?hl=en
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "ODK Community" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to opendatakit...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Mitch Sundt
>>> Software Engineer
>>> University of Washington
>>> mitche...@gmail.com
>>>
>>> --
>>> --
>>> Post: opend...@googlegroups.com
>>> Unsubscribe: opendatakit...@googlegroups.com
>>> Options: http://groups.google.com/group/opendatakit?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "ODK Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to opendatakit...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
It stops as I am not able to go into that function because there is no
source in chrome debugging for it to access. No i think my only choice will
be to download the source and try debug from android studio - which I
really dont want to do. Any other ideas?
My full code is this - where 'User List' is what I called my form in
properties.csv (Table,default,displayName,object,"""User List""")
On Monday, 7 December 2015 21:16:56 UTC+2, Andrew de Klerk wrote:
ok thanks clarice - i will look into that. and to answer mitch - yes rev
126.
I fear i may need to get my developers involved. I have development
knowledge but am i little bit rusty having not being actively involved for
the last couple of years.
I am guessing i will be able to debug the odk app using the android
remote debugging
On Monday, 7 December 2015 20:45:09 UTC+2, clarice larson wrote:
In addition to Mitch's questions, I have some additional comments that
may help you debug the issue. When you run a Tables app on the device, an
injected interface is actually used to perform the actions. The JavaScript
on the device is only used if that interface is not injected which is the
case in the App Designer. The best way to debug the JavaScript on the
device is to use Android remote debugging ( https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en#remote-debugging-on-android-with-chrome-devtools).
Your Android device has to use version 4.0 or later and Chrome has to be
version 32 or later.
I am going through the steps of trying to create a custom form using
the tea houses as a reference. I have successfully setup my index.html file
that redirects to a menu page (menu.html). This utilises launchHTML from
control.js in the framework folder. I have then created a new listview form
(user list) that displays correctly under form view, but when I try open it
from my menu.html using "openTableToListView" I get a "ODK survey has
stopped working" error. I then tried to debug and put a whole lot of alerts
in my js for control.js, but when i check on the phone those changes are
not even there. In fact the entire framework folder is empty..BUT the
launchHTML is still working fine. So my question is..where is the
control.js and data.js being read from and how do i debug it? I tried
copying my entire framework folder manually to the phone as well as editing
control.js on my phone..but ODK survey does not use that file when running.
I have searched everywhere but cant fid anything that helps me. Any
help will be much appreciated
You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Mitch Sundt
Software Engineer
University of Washington mitche...@gmail.com
You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It stops as I am not able to go into that function because there is no
source in chrome debugging for it to access. No i think my only choice will
be to download the source and try debug from android studio - which I
really dont want to do. Any other ideas?
My full code is this - where 'User List' is what I called my form in
properties.csv (Table,default,displayName,object,"""User List""")
On Monday, 7 December 2015 21:16:56 UTC+2, Andrew de Klerk wrote:
ok thanks clarice - i will look into that. and to answer mitch - yes rev
126.
I fear i may need to get my developers involved. I have development
knowledge but am i little bit rusty having not being actively involved for
the last couple of years.
I am guessing i will be able to debug the odk app using the android
remote debugging
On Monday, 7 December 2015 20:45:09 UTC+2, clarice larson wrote:
In addition to Mitch's questions, I have some additional comments that
may help you debug the issue. When you run a Tables app on the device, an
injected interface is actually used to perform the actions. The JavaScript
on the device is only used if that interface is not injected which is the
case in the App Designer. The best way to debug the JavaScript on the
device is to use Android remote debugging ( https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en#remote-debugging-on-android-with-chrome-devtools).
Your Android device has to use version 4.0 or later and Chrome has to be
version 32 or later.
I am going through the steps of trying to create a custom form using
the tea houses as a reference. I have successfully setup my index.html file
that redirects to a menu page (menu.html). This utilises launchHTML from
control.js in the framework folder. I have then created a new listview form
(user list) that displays correctly under form view, but when I try open it
from my menu.html using "openTableToListView" I get a "ODK survey has
stopped working" error. I then tried to debug and put a whole lot of alerts
in my js for control.js, but when i check on the phone those changes are
not even there. In fact the entire framework folder is empty..BUT the
launchHTML is still working fine. So my question is..where is the
control.js and data.js being read from and how do i debug it? I tried
copying my entire framework folder manually to the phone as well as editing
control.js on my phone..but ODK survey does not use that file when running.
I have searched everywhere but cant fid anything that helps me. Any
help will be much appreciated
You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Mitch Sundt
Software Engineer
University of Washington mitche...@gmail.com
You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
thanks mitch - yes i managed to work that out - and am now able to step
into my form and try load the data
thanks for all the help
···
On Tuesday, 8 December 2015 21:25:53 UTC+2, Mitch Sundt wrote:
>
> I.e., it should be 'users_list' for the first argument.
>
> On Tue, Dec 8, 2015 at 11:25 AM, Mitch Sundt <mitche...@gmail.com > wrote:
>
>> You can't step into that function because it is implemented in Java
>> (inside the ODK Tables APK).
>>
>>
>> https://github.com/opendatakit/tables/blob/jan2015/tables/src/org/opendatakit/tables/views/webkits/ControlIf.java
>>
>> The first argument should be the tableId -- which should never contain a
>> space.
>>
>> Looks like you are using the display name for the table instead of the
>> tableId.
>>
>>
>>
>>
>>
>> On Tue, Dec 8, 2015 at 3:15 AM, Andrew de Klerk <andrew....@gmail.com > wrote:
>>
>>> To answer Myself as soon as I step into my breakpoint at:
>>>
>>> control.openTableToListView(
>>> 'User List',
>>> null,
>>> null,
>>> 'tables/users_list/html/user_list.html');
>>>
>>> It stops as I am not able to go into that function because there is no
>>> source in chrome debugging for it to access. No i think my only choice will
>>> be to download the source and try debug from android studio - which I
>>> really dont want to do. Any other ideas?
>>>
>>> My full code is this - where 'User List' is what I called my form in
>>> properties.csv (Table,default,displayName,object,"""User List""")
>>>
>>> $('#users-button').on(
>>> 'click',
>>> function() {
>>> control.openTableToListView(
>>> 'User List',
>>> null,
>>> null,
>>> 'tables/users_list/html/user_list.html');
>>> });
>>>
>>> Andrew
>>>
>>> On Monday, 7 December 2015 21:16:56 UTC+2, Andrew de Klerk wrote:
>>>>
>>>> ok thanks clarice - i will look into that. and to answer mitch - yes
>>>> rev 126.
>>>>
>>>> I fear i may need to get my developers involved. I have development
>>>> knowledge but am i little bit rusty having not being actively involved for
>>>> the last couple of years.
>>>>
>>>> I am guessing i will be able to debug the odk app using the android
>>>> remote debugging
>>>>
>>>> On Monday, 7 December 2015 20:45:09 UTC+2, clarice larson wrote:
>>>>>
>>>>> In addition to Mitch's questions, I have some additional comments that
>>>>> may help you debug the issue. When you run a Tables app on the device, an
>>>>> injected interface is actually used to perform the actions. The JavaScript
>>>>> on the device is only used if that interface is not injected which is the
>>>>> case in the App Designer. The best way to debug the JavaScript on the
>>>>> device is to use Android remote debugging (
>>>>> https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en#remote-debugging-on-android-with-chrome-devtools).
>>>>> Your Android device has to use version 4.0 or later and Chrome has to be
>>>>> version 32 or later.
>>>>>
>>>>> Clarice
>>>>>
>>>>> On Mon, Dec 7, 2015 at 9:38 AM, Mitch Sundt wrote:
>>>>>
>>>>>> Stepping back....
>>>>>>
>>>>>> Are you using rev 126?
>>>>>>
>>>>>> Or are you trying to work with the Java source code directly?
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Dec 7, 2015 at 7:26 AM, wrote:
>>>>>>
>>>>>>> Hi all
>>>>>>>
>>>>>>> I am going through the steps of trying to create a custom form using
>>>>>>> the tea houses as a reference. I have successfully setup my index.html file
>>>>>>> that redirects to a menu page (menu.html). This utilises launchHTML from
>>>>>>> control.js in the framework folder. I have then created a new listview form
>>>>>>> (user list) that displays correctly under form view, but when I try open it
>>>>>>> from my menu.html using "openTableToListView" I get a "ODK survey has
>>>>>>> stopped working" error. I then tried to debug and put a whole lot of alerts
>>>>>>> in my js for control.js, but when i check on the phone those changes are
>>>>>>> not even there. In fact the entire framework folder is empty..BUT the
>>>>>>> launchHTML is still working fine. So my question is..where is the
>>>>>>> control.js and data.js being read from and how do i debug it? I tried
>>>>>>> copying my entire framework folder manually to the phone as well as editing
>>>>>>> control.js on my phone..but ODK survey does not use that file when running.
>>>>>>>
>>>>>>> I have searched everywhere but cant fid anything that helps me. Any
>>>>>>> help will be much appreciated
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Post: opend...@googlegroups.com
>>>>>>> Unsubscribe: opendatakit...@googlegroups.com
>>>>>>> Options: http://groups.google.com/group/opendatakit?hl=en
>>>>>>>
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "ODK Community" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to opendatakit...@googlegroups.com.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Mitch Sundt
>>>>>> Software Engineer
>>>>>> University of Washington
>>>>>> mitche...@gmail.com
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Post: opend...@googlegroups.com
>>>>>> Unsubscribe: opendatakit...@googlegroups.com
>>>>>> Options: http://groups.google.com/group/opendatakit?hl=en
>>>>>>
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "ODK Community" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to opendatakit...@googlegroups.com.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>> --
>>> --
>>> Post: opend...@googlegroups.com
>>> Unsubscribe: opendatakit...@googlegroups.com
>>> Options: http://groups.google.com/group/opendatakit?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "ODK Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to opendatakit...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Mitch Sundt
>> Software Engineer
>> University of Washington
>> mitche...@gmail.com
>>
>
>
>
> --
> Mitch Sundt
> Software Engineer
> University of Washington
> mitche...@gmail.com
>