Annotate image widget

Does anyone know if the Annotate appearance attribute is supported on the
current Commcare xforms engine?

I am trying to give the ability to mark up an image after the picture has
been taken in the form…does not seem to work however.?

        <upload mediatype="image/*" jr:imageDimensionScaledMax="250px" 

vellum:ref="#form/question1/take_A_Picture"
ref="/data/question1/take_A_Picture" appearance=“annotate”>

Hi John,

Unfortunately, we do not currently support that appearance attribute.

Cheers,
Will

··· On Sun, Apr 9, 2017 at 12:10 PM, John Harper <john.harper@grableservices.com wrote:

Does anyone know if the Annotate appearance attribute is supported on the
current Commcare xforms engine?

I am trying to give the ability to mark up an image after the picture has
been taken in the form…does not seem to work however.?

        <upload mediatype="image/*" jr:imageDimensionScaledMax="250px"

vellum:ref="#form/question1/take_A_Picture" ref="/data/question1/take_A_Picture"
appearance=“annotate”>


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

I would gladly do the work to include the ODK widget as this does have a
lot of use for the toolset. I know that you have made some significant
changes in the javarosa code but would it still just follow the same lines
as the base ODK process to add a new widget?

Let me know if you know the direction for me to look into…

··· On Sunday, April 9, 2017 at 2:14:19 AM UTC-7, William Pride wrote: > > Hi John, > > Unfortunately, we do not currently support that appearance attribute. > > Cheers, > Will > > On Sun, Apr 9, 2017 at 12:10 PM, John Harper <john....@grableservices.com > wrote: > >> Does anyone know if the Annotate appearance attribute is supported on the >> current Commcare xforms engine? >> >> I am trying to give the ability to mark up an image after the picture has >> been taken in the form.........does not seem to work however.? >> >> > jr:imageDimensionScaledMax="250px" >> vellum:ref="#form/question1/take_A_Picture" >> ref="/data/question1/take_A_Picture" appearance="*annotate*"> >> >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-developers+unsubscribe@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

John,

You’re exactly right - in many places our Android code has not diverged
significantly from the ODK Collect repository we originally forked. In fact
we recently copied over the Signature Widget
https://github.com/dimagi/commcare-android/blob/f089fc41ddbe7ec4f1ae89a2b68d07bac47e69ea/app/src/org/commcare/views/widgets/SignatureWidget.java#L58-L58
with
only slight modifications. You’d want to do the same with the Annotate
Widget
https://github.com/opendatakit/collect/blob/master/collect_app/src/main/java/org/odk/collect/android/widgets/AnnotateWidget.java
then
add this to the WidgetFactory
https://github.com/dimagi/commcare-android/blob/96862f173634c2dbbe34be9364a55c32035bdd1f/app/src/org/commcare/views/widgets/WidgetFactory.java#L56-L56
under the correct appearance control. Would be great to have this. Best of
luck!

Cheers,
Will

··· On Sun, Apr 9, 2017 at 12:20 PM, John Harper <john.harper@grableservices.com wrote:

I would gladly do the work to include the ODK widget as this does have a
lot of use for the toolset. I know that you have made some significant
changes in the javarosa code but would it still just follow the same lines
as the base ODK process to add a new widget?

Let me know if you know the direction for me to look into…

On Sunday, April 9, 2017 at 2:14:19 AM UTC-7, William Pride wrote:

Hi John,

Unfortunately, we do not currently support that appearance attribute.

Cheers,
Will

On Sun, Apr 9, 2017 at 12:10 PM, John Harper <john....@grableservices.com wrote:

Does anyone know if the Annotate appearance attribute is supported on
the current Commcare xforms engine?

I am trying to give the ability to mark up an image after the picture
has been taken in the form…does not seem to work however.?

        <upload mediatype="image/*" jr:imageDimensionScaledMax="250px"

vellum:ref="#form/question1/take_A_Picture"
ref="/data/question1/take_A_Picture" appearance=“annotate”>


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


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