Source code

Hello,

I am new to Commcare and I was wondering if there was any way I could get
access to the source code of the application that I am generating using the
Commcare application builder? Is it possible to modify the application to
add custom functions and event listeners to the buttons and textboxes
before it is downloaded to the phone?

Thanks,
Aarathi

Hi Aarathi,

I'm a little confused by your question. CommCare apps are configured with
XML files, which you can view clicking on "Deploy" and choosing "view
source files". We do not support an easy way to do any custom functions or
event listeners. The source code for CommCare itself (not any app) is also
available online[1] and could possibly be modified to do what you're
describing, though I suspect that this would be quite a lot of work.

Depending on what you're trying to do, there may be easier supported ways
to do it with CommCare, or CommCare may not be the right tool for you.

Cory

[1] Bitbucket

··· On Thu, Jan 31, 2013 at 4:43 PM, Aarathi wrote:

Hello,

I am new to Commcare and I was wondering if there was any way I could get
access to the source code of the application that I am generating using the
Commcare application builder? Is it possible to modify the application to
add custom functions and event listeners to the buttons and textboxes
before it is downloaded to the phone?

Thanks,
Aarathi

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks a ton, Cory.
I will take a look at the XML files and the source code!

Aarathi

··· On Friday, February 1, 2013 9:32:59 AM UTC-5, Cory Zue wrote: > > Hi Aarathi, > > I'm a little confused by your question. CommCare apps are configured with > XML files, which you can view clicking on "Deploy" and choosing "view > source files". We do not support an easy way to do any custom functions or > event listeners. The source code for CommCare itself (not any app) is also > available online[1] and could possibly be modified to do what you're > describing, though I suspect that this would be quite a lot of work. > > Depending on what you're trying to do, there may be easier supported ways > to do it with CommCare, or CommCare may not be the right tool for you. > > Cory > > [1] https://bitbucket.org/commcare/ > > On Thu, Jan 31, 2013 at 4:43 PM, Aarathi <aarathi...@gmail.com wrote: > >> Hello, >> >> I am new to Commcare and I was wondering if there was any way I could get >> access to the source code of the application that I am generating using the >> Commcare application builder? Is it possible to modify the application to >> add custom functions and event listeners to the buttons and textboxes >> before it is downloaded to the phone? >> >> Thanks, >> Aarathi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >

Aarthi,

You can modify the XML files Cory outlined to create custom functionality
in two main ways.

The first is modifying the suite/profile files as outlined in the
configuration files section outlined on our wiki:
https://bitbucket.org/commcare/commcare/wiki/CommCare20Specs

The second is modifying the XForms themselves according to the parts of the
Spec that we support. Unfortunately we don't support the whole
specification, so it would be useful to know what functionality you're
hoping to add to see if we can support it.

-Clayton

··· On Fri, Feb 1, 2013 at 1:34 PM, Aarathi wrote:

Thanks a ton, Cory.
I will take a look at the XML files and the source code!

Aarathi

On Friday, February 1, 2013 9:32:59 AM UTC-5, Cory Zue wrote:

Hi Aarathi,

I'm a little confused by your question. CommCare apps are configured with
XML files, which you can view clicking on "Deploy" and choosing "view
source files". We do not support an easy way to do any custom functions or
event listeners. The source code for CommCare itself (not any app) is also
available online[1] and could possibly be modified to do what you're
describing, though I suspect that this would be quite a lot of work.

Depending on what you're trying to do, there may be easier supported ways
to do it with CommCare, or CommCare may not be the right tool for you.

Cory

[1] https://bitbucket.org/**commcare/ https://bitbucket.org/commcare/

On Thu, Jan 31, 2013 at 4:43 PM, Aarathi aarathi...@gmail.com wrote:

Hello,

I am new to Commcare and I was wondering if there was any way I could
get access to the source code of the application that I am generating using
the Commcare application builder? Is it possible to modify the application
to add custom functions and event listeners to the buttons and textboxes
before it is downloaded to the phone?

Thanks,
Aarathi

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@**googlegroups.com.

For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.