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

Mobile App Detail Posting Error

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

    Mobile App Detail Posting Error

    I have had a mobile app out in the field for about 10 months now. We've had the standard isolated issues but recently some users have started seeing the following error message when trying to synchronize: "Can't save record because there is no active record in the parent List. Parent ListID: 999999".

    As you can see, the app posts master-detail information to the server: The master info is all textual, the detail contains a JPG. So far all the master info is being saved correctly but strange things happen on the server relative to the pictures: We get empty uploads and uploads that are mixed up in the sense they are with the wrong headers.

    Right now I'm at a loss to explain what's going on, I've looked in the Synch log on the server and the records there do not correspond to the ones we're having problems with (this is a disconnected app, of course). I'm also at a loss exactly how to debug this, has anyone seen this error message before or have any idea how I might proceed?

    BTW, using the latest version of Alpha and the AA server.

    Thanks in advance.

    #2
    Re: Mobile App Detail Posting Error

    Just to add some information, it seems that the individual having these problems is using an iPhone with iOS 10. Anyone have a mobile app being used successfully by iPhones/iOS10?

    Comment


      #3
      Re: Mobile App Detail Posting Error

      I'm wondering if iOS 10 does something with local storage that previous versions didn't. I've read where it is more "aggressive" in clearing local storage and the sporadic nature of the errors we're getting from those devices would certainly be consistent with that. Of course this is just a guess, but something funny is going on, I'm going to try to make sure that this particular error occurs only with iOS 10.

      Comment


        #4
        Re: Mobile App Detail Posting Error

        When you write "mobile app" do you mean an installed PhoneGap Build App? Or a web app running on a mobile device in a browser?

        Comment


          #5
          Re: Mobile App Detail Posting Error

          The latter.

          Comment


            #6
            Re: Mobile App Detail Posting Error

            Ok... thanks... so... not a mobile app... nor a disconnected app. This means that anything can, and will, happen to affect your app and it's data.

            Comment


              #7
              Re: Mobile App Detail Posting Error

              No, actually, it is disconnected. I had few problems until now.

              Edit: David, sorry about the brevity in the above couple of posts, I was responding on my phone and needed economy of keystrokes.

              It's a disconnected mobile app using a web browser. I have not had any untoward issues and I have NEVER seen that particular error message crop up (the one I quoted in my OP). I understand it's easy to blame iOS 10, but until I find that the same message is cropping up on earlier OS or on Android, it's a reasonable working hypothesis.

              Actually, I'd like to be able to figure out what might in general cause an error like this, I can't find it in the docs. I have read that iOS 10 is "more aggressive" in clearing Local Storage, I don't know if this error would result from that kind of thing happening. Right now I'm trying to figure out a strategy for debugging this. I'd be curious to find out if any other posters have implemented a setup like this; i.e. disconnected mobile app with master-detail lists, and if they are using it with iOS 10.

              Thanks for posting to the thread.
              Last edited by nlk10010; 10-01-2016, 02:19 PM.

              Comment


                #8
                Re: Mobile App Detail Posting Error

                I think you can take the disconnected thing out of the equation, as I had this same thing going on in the past. I will try to go back into my UX and recall what the exact issue was but from my memory, I seem to recall there was an issue with the way the lists were linked and the update statements. I seem to remember it had something to do with the fact that one of the child lists always had a row selected on load, so when An insert occurred the child list updated also did inserting a blank record. If there was a child list under that now you have no link anymore. Anyways, I think you should look at your actual setup of the parent lists and children. My advice is to avoid those, and use them sparingly. Use arguments instead from the Parent to load other lists as needed, that way when you load the other list it won't even load unless the argument exists. Reading your first post - I remembered my very similar issues. I have a UX with a parent list and six child lists. That was a beast - now I avoid the child list scenario and use arguments instead. Good luck.
                NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                Comment


                  #9
                  Re: Mobile App Detail Posting Error

                  Charles: Thanks for the info.

                  While I will restructure my app if necessary, I am puzzled by the fact that it has been working fine for about 7 months now (while I have seen occasional errors I've never seen THAT error) AND that only certain users are experiencing this issue. I have ONE parent and ONE child list, I don't have any grandchild lists. I am going to first see if I can recreate the error by wiping out local storage just before the child record is synchronized. If I can then I will find out how much memory the "offending" iPhones have. IF iOS 10 uses a lot more memory and is more aggressive in clearing out local storage (I don't know if this is the case, just musing) then I might have found part of the problem. Frankly, I don't know if the quoted memory on an iPhone has ANY impact on the size of local storage, but I'm going to check that out as well.

                  I am reluctant to tinker with something that WAS working, but if I can't find the cause then my two options are to not use a child list (as you suggest) OR convert the app to PhoneGap and perhaps store data in SQLLite.

                  Again, thanks for the info.

                  Comment


                    #10
                    Re: Mobile App Detail Posting Error

                    It appears after further investigation that what is happening is that the act of saving a record in the Child List automatically deselects the parent record in the Parent List. Thus, there is no active (i.e. selected) record in the Parent List and the Parent Detail form is blank as well.

                    Why this is happening all of a sudden I have no idea.

                    Comment


                      #11
                      Re: Mobile App Detail Posting Error

                      You should have a look at the pre-release notes... very interesting new feature...

                      "UX Component - Application Cache - Building Offline HTML5 Applications"

                      Comment


                        #12
                        Re: Mobile App Detail Posting Error

                        I actually did peruse those notes and noticed the "Application Cache", though to be fair I didn't read thoroughly about the subject. For one, I don't want to deploy a pre-release version of my app, been there, done that, not worth it to me. Second, it might be good to incorporate the Cache should I redesign the app but the client is not ready to pay for something like that. As I mentioned, the app worked, all of a sudden stopped. Why, I don't know.

                        I have a fix in place now: I went into the js for the Save button click on the child list, grabbed the key from the parent list, did the save and then did a setValue on the parent list to reselect the record. Seems to work OK. Again, WHY I needed to do this I don't know, but I just hope this fix works, it's being tested now.

                        Thanks for chiming in on the Application Cache, I'll be sure to become familiar with it.

                        Comment

                        Working...
                        X