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

Alpha Five thinks I'm running a multi-user app. I'm NOT!

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

    #16
    Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

    Stan, I don't know what you mean about no drive letter in detail view.
    Open AlphaSports. Go to the tables/sets tab of the control panel. Seitch to detail view. Note the full path shown to the tables/sets.

    What do you see when you open the database with

    "..\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb".

    ?
    There can be only one.

    Comment


      #17
      Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

      Originally posted by Allen Klimeck View Post
      Try renaming the adb and leave out the spaces and the ampersand "&" if you do this in explorer you will have to edit the libraries in FILES->DATABASE PROPERTIES to remove the old adb
      What do your want me to do specifically, Allen? If I rename the ADB shouldn't I rename all its related files as well, like ALB, ALM etc? And ... what do you mean to edit the libraries etc. I've never done that. Don't know what "FILES->DATABASE PROPERTIES" means and don't know what you mean by "removing the old ADB". You didn't tell me to remove anything. You've got me lost. Can you talk down to me a bit?

      Comment


        #18
        Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

        Originally posted by Stan Mathews View Post
        .. stands for parent directory, even in Windows.
        C'mon, Stan. I know it means parent directory but doesn't "..\" mean go back to parent and then forward?

        Comment


          #19
          Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

          Renaming database:

          http://wiki.alphasoftware.com/Renaming+Databases

          Comment


            #20
            Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

            Originally posted by Stan Mathews View Post
            Alpha uses the muf file to keep track of how many users are accessing a workspace, per license. Even if it is only one.
            I don't see why A5 would use a multi-user file to track one user and then complain to the one user. Guess we should drop that particular point because I don't think I can understand it.

            Comment


              #21
              Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

              Originally posted by Stan Mathews View Post
              Open AlphaSports. Go to the tables/sets tab of the control panel. Seitch to detail view. Note the full path shown to the tables/sets.

              What do you see when you open the database with

              "..\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb".

              ?
              Stan, this thread is out of control. I can't keep up. I did what you asked and all I saw was a bunch of paths starting with C:]Documents and Settings .... And, I don't know what you mean by opening the database with "..\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb".

              Comment


                #22
                Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                Originally posted by Allen Klimeck View Post
                Sorry, Allen. Maybe you should give up on me. I read the above link and now understand you wanted me to rename all the associated files as well. But you haven't talked down to me enough. I don't know what a library is because I never had to use it, and I don't know where the FILE > DATABASE PROPERTIES is. Most of all, I don't know what you hope will happen when I rename my two ADBs.

                Comment


                  #23
                  Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                  Originally posted by Stan Mathews View Post
                  Open AlphaSports. Go to the tables/sets tab of the control panel. Seitch to detail view. Note the full path shown to the tables/sets.

                  What do you see when you open the database with

                  "..\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb".


                  ?
                  Too many posts, too many people, too small a brain! Stan I finally realize what you're asking (above). You meant what do I see when I run the script that does the A5.LOAD using the above syntax.

                  The answer is that I receive no errors whatever, A5 switches to the Wholesale directory, the menu I created appears, and everything works fine. HOWEVER, that's when I realize that the Control Panel's list of CODEs and OPERATIONs has everything in duplicate, with and without the drive letter. That's what frightens me. Makes me think everything is out of control and that my application coding will all be destroyed or at least damaged.

                  Does that answer your question, Stan?

                  Comment


                    #24
                    Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                    File menu:

                    alpha file menu.JPG

                    Comment


                      #25
                      Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                      Maybe I should abandon this thread. All of you must be frustrated with me and I'm frustrated that the thread keeps taking different directions. I just can't keep up.

                      I made it clear in the first post what my problem was. I still don't know whether my method is acceptable or not and whether it should work but with some modification.

                      I should have simply asked you the following:

                      "Have any of you developers maintained databases for a client where the drive letter housing your version of the database was different from the drive letter housing their database. If so, how did you deal with the drive letters differences?

                      For example, if you write a script that does something like
                      a5.load("D:\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb") where your drive is "D" and your client's is "S:", you know that will not work on your client's computer. What do you do?
                      "

                      Comment


                        #26
                        Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                        Originally posted by sgerber View Post
                        Have any of you developers maintained databases for a client where the drive letter housing your version of the database was different from the drive letter housing their database. If so, how did you deal with the drive letters differences?

                        For example, if you write a script that does something like
                        a5.load("D:\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb") where your drive is "D" and your client's is "S:", you know that will not work on your client's computer. What do you do?[/B][/COLOR]"
                        I wouldn't - its quite unusual. You were advised of other methods previous postings besides switching between databases on different drives on two PCs. Its to that combination Mike refers. Also what Mike means is you can check the location of dups by using the detail view - top right icon.
                        Anyway you now probably have it right with one set of the duplication.
                        I would suggest copy your whole folder, using S to your sons - deleting the old one first.
                        I needn't add make sure you have the latest data files carefully backed up. Use explorer maybe to determine the latest.
                        BTW No one here is frustrated BY you.

                        Comment


                          #27
                          Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                          Originally posted by Ray in Capetown View Post
                          I wouldn't - its quite unusual. You were advised of other methods previous postings besides switching between databases on different drives on two PCs. Its to that combination Mike refers. Also what Mike means is you can check the location of dups by using the detail view - top right icon.
                          Anyway you now probably have it right with one set of the duplication.
                          I would suggest copy your whole folder, using S to your sons - deleting the old one first.
                          I needn't add make sure you have the latest data files carefully backed up. Use explorer maybe to determine the latest.
                          BTW No one here is frustrated BY you.
                          They probably should be frustrated, Ray. Many speak a different language. They assume that when they give me an instruction I'm not going to take it literally, that I know more. They're thinking of a command that's in a certain place and just tell me the command. Then I have to come back for more information which wastes their time and my time. That's frustrating and can well make me unpopular.

                          Regarding your suggestion of my using S: because my son uses S:, well I can't Ray. I have too much on my computer that's hardcoded to D:. My son can't use D: because HP won't let him. The took it for themselves.

                          Ray I was just reading about "aliases". That appears to be the ticket unless I didn't understand it. That article in the help talks about making applications transportable between systems, with an emphasis on directories.

                          It got me to thinking about setting up an alias called "retail" on my computer which points to "D:\Alpha5_Retail", and "wholesale" which points to "D:\Alpha5_Wholesale". These aliases are stored in an Alpha Five .INI file called a_aliases.ini and which like everything else in their rotten documentation is incorrect. In V11 it's placed in a file called a5_aliases.aliases or some very similar thing. Now, Ray, if I define those same two alias names on my son's computer, but pointing to "S:\Alpha5_Retail" etc. should it not translate my D: path to his S: path whenever it's encountered? If not, what the hell are they talking about? Do you undertstand aliases, Ray. If you do, aren't I on the right track. That's one of the few things that the Help is actually clear on, Ray.

                          What they don't explain is how the aliases are transferred from the source to the target computers. Maybe that's done under the covers somehow but for it to work Alpha5 on my end has to pass something to equate the alias to my path so that it can be converted to my son's path at his end.

                          If you knew this would work, Ray, that would solve a large part of my problem. It would, or should, take care of the syntax in that script which says ADB = "D:\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb". As it is now, I manually change any scripts that have D: coded. There aren't too many.

                          My only other problem, Ray, is that my Wholesale directory shares "products.dbf" with the Retail directory, where it lives. When I copy all my files to his computer, they properly all show up with "S:\" prefixes, as they well should. But unfortunately not the products.dbf. It remains D:\. I had to manually go into one of the sets on my son's computer and manually tell it where the file was. After I did that all the other sets knew the right location and the Tables/Sets tab on his system was perfect. But gosh darn, Ray, that should have been automatic.

                          If you're still reading this, Ray, tell me what you think. If you're not, don't worry .. I've been disappointed before by software and by people and I'll live through it.

                          Thanks for your interest in me ... Sam
                          Last edited by sgerber; 10-25-2012, 09:11 PM.

                          Comment


                            #28
                            Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                            "Have any of you developers maintained databases for a client where the drive letter housing your version of the database was different from the drive letter housing their database. If so, how did you deal with the drive letters differences?
                            It is relatively straightforward in one database to refer to anything with a5.get_path(). That syntax tells Alpha to start at the directory level at which the current adb resides and proceed.

                            a5.get_path()+chr(92)+"images"+chr(92)+"mygirlfriend.jpg"

                            refers to an jpg file stored in a directory named images located under the directory where the application files reside. Doesn't matter whether the drive letter is D or S. I believe the a5.get_path() function was introduced to make it easier to ensure portability.

                            When you structure things as you have done and have two databases residing in their own directories, more or less independent of each other except for the tables you want to share in common, you complicate the communication. You want to refer to the "other" database from the current database when the current database knows nothing about the other.

                            It just occurred to me that you can obtain the drive letter you need.

                            For this:

                            Code:
                            ADB = "D:\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb"
                            if file.exists(ADB)
                            :a5.load(ADB)
                            substitute

                            Code:
                            ADB =  file.filename_parse(a5.get_path(),"D")+":\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb"
                            if file.exists(ADB)
                            :a5.load(ADB)

                            file.filename_parse(a5.get_path(),"D") should return the Drive letter of the current database.
                            There can be only one.

                            Comment


                              #29
                              Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                              Originally posted by Stan Mathews View Post
                              It is relatively straightforward in one database to refer to anything with a5.get_path(). That syntax tells Alpha to start at the directory level at which the current adb resides and proceed.

                              a5.get_path()+chr(92)+"images"+chr(92)+"mygirlfriend.jpg"

                              refers to an jpg file stored in a directory named images located under the directory where the application files reside. Doesn't matter whether the drive letter is D or S. I believe the a5.get_path() function was introduced to make it easier to ensure portability.

                              When you structure things as you have done and have two databases residing in their own directories, more or less independent of each other except for the tables you want to share in common, you complicate the communication. You want to refer to the "other" database from the current database when the current database knows nothing about the other.

                              It just occurred to me that you can obtain the drive letter you need.

                              For this:

                              Code:
                              ADB = "D:\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb"
                              if file.exists(ADB)
                              :a5.load(ADB)
                              substitute

                              Code:
                              ADB =  file.filename_parse(a5.get_path(),"D")+":\Alpha5_Wholesale\WGCX Invoicing & Sales Analysis.adb"
                              if file.exists(ADB)
                              :a5.load(ADB)

                              file.filename_parse(a5.get_path(),"D") should return the Drive letter of the current database.
                              Stan, I was sitting here trying to digest what you're explaining in order to obtain the drive letter, not that I understand how I'll use it when I obtain it, and my son just walked in.

                              He's not well versed in computers as we are but he's very bright and is a talented "user". I explained my dilemma to him with my D and his S drives being in conflict and all the grief it's causing. He thought about it a few minutes and handed me a solution. I can't freaking believe how simple it is and I want to run it by you to make sure I'm not missing anything.

                              His solution: Put the A5 workspaces on the C drive. There's tons of room, we both have C: drives, and when my backup program backs up all my D drive data, it can sneak over to the C drive and grab the A5 files.

                              Stan, what could be simpler? Am I missing something. Why didn't one of the Alphaholics just tell me to use the C drive on both our computers and get on with my life?

                              I can't believe that I've exhausted all this energy, cussed HP for commandeering my son's D drive, and other things I can't mention out loud, when I could have just asked my son.

                              Stan (and anyone else listening) is there any downside to my doing this? Please be straight with me.

                              Thanks to all ... Sam

                              Comment


                                #30
                                Re: Alpha Five thinks I'm running a multi-user app. I'm NOT!

                                Sam, that is the obvious basic choice no brainer.
                                From the start you posed the problem as D and S drives - then post 4 Tom said make both S drives - same thing.
                                I presumed you had valid reasons to be unable to use the obvious commonality of C drives -Maybe for network reasons or who knows - that would be a little elementary to have asked you the obvious.

                                Comment

                                Working...
                                X