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

Failed to Save Documents

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

    Failed to Save Documents

    While moving some A5V7 applications to V10.5 I'm plagued by this error.

    Closing the current application and opening another from a button works fine in V7. In V10 something does not like the path of the app I'm opening. I've browsed to addresses like g:\database\data\myapp.adb or used UNC style addresses. neither work.

    I found a number of threads about "Failed to Save Documents" but none seem to bear on my particular problem.

    #2
    Re: Failed to Save Documents

    I have found this error to be simply based on the path to the main adb. How do you open the db.

    If it is via a shortcut then there may be an error in the a path. It can be as simple as needing quotation marks and there are spaces in the path.

    Check drive mapping. Your example shows no spaces and should work, also check the user has read/write to it

    Also have you tried to open the DB by using file open from the Alpha menu
    -----------------------------------------------
    Regards
    Mark Pearson
    [email protected]
    Youtube channel
    Website

    Comment


      #3
      Re: Failed to Save Documents

      Russ,

      Are all of your databases in the same "root" path? ie: "G:\somefolder\someapp.dbf"?

      if so, then you may want to set a global variable or even an addin variable to set the "G" path and then use the variable to determine where you are and where you are going.

      We have many databases that we call from a main "calling" database, and in the main calling database, we set the pathing using variables, so that we don't trip over ourselves. We've set up functions to "call" the other apps, so that we have some consistency.

      Here are 2 functions we use to open an app from our main app.

      Code:
      'FUNCTION "SETUP" INITIALIZES THE VARIABLES TO BE SENT TO THE CALLED APPLICATION.
      '	THE CHARACTER PARAMETER "appname" IS THE NAME OF THE CALLED APPLICATION AND IS WHAT IS
      '		PLACED INTO THE AA.BCBSS.WHERETO SUPER-GLOBAL VARIABLE  
      '		THE CHARACTER VARIABLE "FORMNAME" IS THE NAME OF THE FORM IN SOCIAL SERVICES 
      '		THAT CALLED THE NEW APP.  IT IS USED TO DETERMINE WHICH FORM TO OPEN UPON RETURN
      '		THE VARIABLE "RETN" IS USED TO TOGGLE THE "RETURN" MENU ITEM ON/OFF
      FUNCTION setup AS V (appname AS C, formname as C )
      	dim aa as p
      	aa= addin.variables()
      	dim aa.bcbss as P
      	dim Global Retn as C
      	Retn = "X"
      	aa.bcbss.wherefrom = formname
      	aa.bcbss.whereto = appname
      END FUNCTION
      Code:
      FUNCTION callsub AS C (subapp AS C,path=" ")
      'Function callsub is used to determine whether to use the shadowed database when calling 
      'a sub application or to use the main database
      '  parameter subapp has the format of "folder\appname"  leave off the ".adb" I will insert it.
      '									ie:      supply\stockroom
      '	parameter path is to tell where we are going to go.  "P" in path means to use "personnel" path
      '		 - aa.bcbss.ppath instead of aa.bcbss.path
      dim aa as P
      aa = addin.variables()
      dim aa.bcbss as P
      dim aa.bcbss.appname[10] as C
      dim aa.bcbss.applvl as N
      dim aa.bcbss.subapp as C
      'Set up name of Calling Application
      dim aa.bcbss.calling as C
      dim shared filename as C
      dim filename1 as C
      dim path as C
      dim global mpath as C
      '
      aa.bcbss.calling = a5.Get_Name()
      filename1 = aa.bcbss.lpath+chr(92)+subapp+".adb"
      if file_exists(filename1)
      	filename = filename1
      end if
      aa.bcbss.subapp= filename
      dim good as N
      good = 0
      good = aa.bcbss.appname.find(aa.bcbss.calling)
      if good =0
      	aa.bcbss.appname[aa.bcbss.applvl] = aa.bcbss.calling
      end if
      aa.bcbss.applvl = aa.bcbss.applvl +1
      'Clear out existing scheduled scripts to "scpCheck_Closeit".
      for j = 1 to 10
      	if script_schedule_name_get(j) = "scpCheck_Closeit"
      		script_schedule("","",j)
      	end if
      next j
      END FUNCTION
      Tom
      Last edited by Tom Henkel; 01-28-2011, 10:39 AM. Reason: added functions

      Comment


        #4
        Re: Failed to Save Documents

        Thanks,

        The global variable may be the solution and probably a very good idea as I want to create a menu structure to get to all the various A5 apps we build at this location. I want to use buttons to move from one app to another.

        Yes, all the databases are in g:\database\data\someapp.adb format.

        The paths worked (and continue to work) running under A5 V7. It's under A5V10 that I get the error. From the A5 more databases file open menu browsing to the directory and file it works fine.

        I'm the user and I have full rights to all drives. I thought that the file open code might have changed between V7 and V10 to force a save and close on the open app and that gave me the Failed to Save Documents error. But I don't recognize any thing unsaved as I reach the button. I'll keep fussing with it.

        Comment


          #5
          Re: Failed to Save Documents

          can you post a view of the script. If it is an action script, click the spectacles and then screen snapshot.

          This may help to show why it is getting an error
          -----------------------------------------------
          Regards
          Mark Pearson
          [email protected]
          Youtube channel
          Website

          Comment


            #6
            Re: Failed to Save Documents

            "Failed to save document" on startup
            I have this periodically for my A5v10.5 app. Don't know why. Multi-user app, only affects my developer A5 not RunTime which all else using. I am able to clear this by opening the app in A5v11 and immediately closing it. Then opening it in v10 developer the "Failed to save document" on startup doesn't manifest. It seems to be something that is being detected with v10 developer sensing the app is still open and wasn't closed down properly, so requires opening in another version and closing down from the other version to get the app to be sensed by v10 as fully closed. I have found no other way to clear this. Thankfully I found this. Someone must know which app file (.alx,.alb,adb,etc) contains the "flag" that the startup process is reading as the app is "already open".
            Mike W
            __________________________
            "I rebel in at least small things to express to the world that I have not completely surrendered"

            Comment


              #7
              Re: Failed to Save Documents

              We get it on both runtime and developer versions in both ver 10.5 and ver 12. It only happens on our non-shadowed apps residing on the server. My gut feeling is that it is a timing issue. Haven't been able to get past it except with a shadow.

              Tom

              Comment

              Working...
              X