Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Image capture in list control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Image capture in list control

    Have been trying to build a phonegap app that captures images on a mobile device into a list. Got it all working in live/working preview where it imports an image into the database from a computer file. Uploaded it to my phonegap project directory then the problem start. Push a capture image button and the camera fires up, take a photo and register it's okay. Save record, list shows a new dirty record no thumbnail of the photo and it will not synchronize!

    Downloaded Selwyn's sample component from the release notes (video's added 2014-18-12) set up a new database, new table with 4 fields id (int11), description (char50), location (char50), image(blob) in mySQL. tested in working preview all fine, upload to phonegap and same as my app no image gets saved.

    Anybody else having similar problems with the camera and phonegap?

    Android 5.0.1
    Phonegap 3.6.3

    #2
    Re: Image capture in list control

    Here are a few things to check...

    PhoneGap Build URL for all Ajax Callbacks set correctly... or set at all?
    Published your component
    Check the security for the component

    Comment


      #3
      Re: Image capture in list control

      Thanks for looking David.

      I assume the phonegap URL is correct because it loads the records created when testing in working preview. I publish to the A5webroot directory, not a folder within it and the server is on port 80, so the url is just my ip address.
      The component is published, and is always allowed in security.

      Comment


        #4
        Re: Image capture in list control

        Just done further testing, it is possible that the ajax callbacks that are failing!

        The only thing I can think of is my publish directory is on the I drive on my server i.e. I:\A5Webroot, how do I make sure that phonegap points to that?
        Last edited by Lance Gurd; 01-03-2015, 04:38 AM.

        Comment


          #5
          Re: Image capture in list control

          I doubt the problem is with drive I... my development server is running on E without issues. You can't assume your PGB URL is correct because when testing your component in Working / Live Preview, Alpha is not using that PGB URL. Your URL must be http://x.x.x.x

          Comment


            #6
            Re: Image capture in list control

            I'm having a similar problem. My app works from the working preview and from the browser. However from phonegap when you take the picture it does not display in the detail view or after saving in the list. I'm using the disconnected features. I followed the video exactly. It just plain doesn't work. Please post if you figure this out.

            Comment


              #7
              Re: Image capture in list control

              Further testing, created a dummy button with an ajax callback, but did not create the xbasic for the callback. Published and sent to phonegap, my app then through a fatal error to do with the ajax callback and dimming variables.

              Then created the xbasic for the callback with a simple alert statement, published, tested with phonegap and the alert pops up when the button is pressed, therefore I assume my url is correct.

              There must be something else I'm missing!

              Comment


                #8
                Re: Image capture in list control

                Made a web page out of the app and published. Accessed it via my url from a remote computer and it worked, could add a picture from that computers directory.

                Tried the same thing from my nexus phone and it also worked, took a photo with phones camera and it is saved in the database???

                Comment


                  #9
                  Re: Image capture in list control

                  Lance,
                  I'm experiencing the same thing. Works fine from a browser. Will not work from phonegap. I've tried the image upload settings of HTML5, Phonegap and Phonegap preferred. I can take the picture in phonegap but when I synch the data all gets inserted and the image does not. I'm using the same images and the settings are as close as I know to make them from html5 to the Phonegap options. I have the size limit set to -1. Please keep us posted if you figure this out. Very frustrating.

                  Comment


                    #10
                    Re: Image capture in list control

                    Lance,
                    I wanted to follow up with some additional info. I noticed that when I synch from the phonegap app all the fields are getting saved to the sql database except the image. It seems to vanish. There is blob data but it's not the image. It may just be a null blob entry. I'm using mySql. I'm so sick and tired of this I'm willing to pay Alpha for tech support. Maybe someone from Alpha could help out here. Hint Hint...I think it's about $375.00 US for 5 Hrs. Maybe we could share the expense and benefit?
                    John H

                    Comment


                      #11
                      Re: Image capture in list control

                      I have given up on the photo idea, think it must be an android thing and that's our mobile of choice. There seem to be other threads on here that report similar problems, none of which seem to have been resolved, so in my eyes a few days wasted. We can resort to using phone camera and email when this is needed, which is not very often.

                      One thing I found before abandoning this idea, and this was the main cause of it, was that if I managed to save in the description/location fields photo id field( int increment) and job id (set by parent list id) both saved correctly then next time I ran the app in working preview I got the following error which prevented the main menu from showing

                      Error:Script:A5W Code line:115 Error parsing data: Must be a comma or ']' after an array element.
                      Delete the records from the photo table and the menu re-appeared.

                      John if you need the photo side of things that badly go for the support, it is not that necessary for me.

                      Comment


                        #12
                        Re: Image capture in list control

                        Can't say that I blame you. If I get to the bottom of it I will still share my findings. Thanks for the dialog.

                        Comment


                          #13
                          Re: Image capture in list control

                          Lance,
                          Not sure if you're still interested but I submitted this as a bug last night and Selwyn if putting out a patch tomorrow. Looks like it was a bug. John H.

                          Comment


                            #14
                            Re: Image capture in list control

                            Thanks John,

                            I will retry once the bug has been fixed and then see if I can incorporate in my app.

                            Comment


                              #15
                              Re: Image capture in list control

                              Downloaded latest build and still no joy!

                              Comment

                              Working...
                              X