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

xdialog closes form (it shouldn't)

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

    xdialog closes form (it shouldn't)

    Just wondering if anybody else has seen anything like this.

    I have a form "A" with a child browse on it. I select a child record in the browse (call it record 2) and click a button to open form "B" to show details for that child record. From form "B" I open a modal xdialog and when the ui_dlg_box() command runs (checked in the debugger - it happens on that line), form "B" closes and I'm back to form "A" on child record #1. The xdialog is still open.

    FWIW, both form "A" and "B" are opened with a simple form.view() - not as dialogs.

    This worked perfectly in v9 and I haven't been able to find anything in the script that should cause this behaviour.

    #2
    Re: xdialog closes form (it shouldn't)

    Don't have v10 and this sounds like an issue with v10 but, for diagnostic purposes, what happens if you change that xdlg to modeless instead? I am not suggesting that you should, just wondering.

    Comment


      #3
      Re: xdialog closes form (it shouldn't)

      I should have known better than to ask a question like that before rebooting the computer. Apparently it was just the "tired computer" syndrome again. Sorry for wasting people's time.

      Today it seems to be working correctly. Yesterday (or whenever I originally posted) I shut down A5 and tried again and the problem continued. Shutting down and rebooting the computer seems to have fixed it. (At least for now, I never trust anything long term when it comes to computers.):(

      Comment


        #4
        Re: xdialog closes form (it shouldn't)

        Originally posted by CALocklin View Post
        ...
        Today it seems to be working correctly. Yesterday (or whenever I originally posted) I shut down A5 and tried again and the problem continued. Shutting down and rebooting the computer seems to have fixed it. (At least for now, I never trust anything long term when it comes to computers.):(
        One trick to try is to check task manager processes after you shut a5 down and see if Alpha5.exe is still running in the background. If so, kill it, and reload A5.
        Peter
        AlphaBase Solutions, LLC

        [email protected]
        https://www.alphabasesolutions.com


        Comment


          #5
          Re: xdialog closes form (it shouldn't)

          Oh yeah! Go ahead; rub it in.

          I actually knew that one, too, but didn't bother checking it.:o

          I'm glad you pointed it out so others would know about it. It's a very useful thing to know - when you remember it.

          OTHERS PLEASE NOTE: Peter is talking about the PROCESSES tab in the Task Manager - not the Applications tab. It amazes me how many people don't even realize there is a Processes tab. This is especially true of users (vs. developers). So, if you are trying to help someone over the phone, be aware of this and carefully walk them through the process of finding the Processes tab. I've learned that you have to ask them if they see the icons on the left - if they still do, then they haven't found the Processes tab.

          Comment


            #6
            Re: xdialog closes form (it shouldn't)

            While you are on the topic of funny things, I logged a bug sometime ago about disappearing styles in the xdialog genie. I found that when creating an xdialog and saving I would reopen to edit only to find the variables exist in the variable box, but the attached styles had completely disappeared. To get them back required shutting Alpha and reopening. I thought it a random thing but it seems to be happening more and more. I end upcoverting xbasic and doing the final work from there.

            I have noted it on two computers with two different OS. I am presuming it may be a memory issue as I also get some random funny error after lots of work, when opening some codes with xdialogs saying cannot be created. It then opens OK.

            I am starting to use more and more xdialogs for tasks. Does anyone else use a lot and have any subsequent operations problems, particularly across networks with multiple usesr etc. I am suspecting my novice knowldge of table access will get me into more lockouts when I go live with something.
            -----------------------------------------------
            Regards
            Mark Pearson
            [email protected]
            Youtube channel
            Website

            Comment


              #7
              Re: xdialog closes form (it shouldn't)

              Originally posted by Clunes View Post
              While you are on the topic of funny things, I logged a bug sometime ago about disappearing styles in the xdialog genie. I found that when creating an xdialog and saving I would reopen to edit only to find the variables exist in the variable box, but the attached styles had completely disappeared. To get them back required shutting Alpha and reopening. I thought it a random thing but it seems to be happening more and more. I end upcoverting xbasic and doing the final work from there.

              I have noted it on two computers with two different OS. I am presuming it may be a memory issue as I also get some random funny error after lots of work, when opening some codes with xdialogs saying cannot be created. It then opens OK.
              I have never actually used any styles but I did play with them once. However, in A5v9 I had problems (presumably memory problems - a.k.a., "random funny errors") that seemed to be related to opening and closing a lot of forms. As a result, I created a few xdialogs to use in place of some of the forms. This seemed to be an improvement but not a solution. Interestingly enough, I noticed in the release notes that Alpha has fixed a memory issue in forms in v10. I can't help thinking that the same issue existed in v9. In other words, have you tried recently to see if the "random funny errors" still occur? Maybe the form fix has solved the problem.

              Originally posted by Clunes View Post
              I am starting to use more and more xdialogs for tasks. Does anyone else use a lot and have any subsequent operations problems, particularly across networks with multiple usesr etc. I am suspecting my novice knowldge of table access will get me into more lockouts when I go live with something.
              I use xdialogs quite a bit. However, I never use the xdialog genie anymore. I'm not sure if that matters as far as the stability so take it for whatever it's worth. Also, I mostly use the xdialogs for getting parameter input such as print parameters. I seldom use them for getting actual data that will be stored in the tables. I think regular forms are much easier for doing that.

              I really have not had any problems with xdialogs themselves or with processes after the xdialog. I have learned that it is best to specifically close any tables opened in a script - whether there is an xdialog involved or not. Alpha says it tries to close all open tables when a script ends but note the word "tries". I have run into situations where a table was not closed for some reason so I now make sure that all "table.open()" commands are followed by a "<table_pointer>.close()" command before the script closes. And that could mean multiple 'close' commands if there are multiple places where the script/function could end.

              Attached is one of the most complicated parameter input dialogs I have. (The xdialog is only 70 lines long but the complete "print" script is 1699 lines.) The thing I like about using xdialogs for getting this type of input (i.e., for "prompts") is that they have a unique look and the user gets used to the fact that something like this is probably prompting them for information about what to do next.

              And, FWIW, it has amazed me how much the users prefer one parameter dialog vs. a series of dialogs prompting for individual items. I knew it would be better but I didn't expect people to rave over the improvement - but they did.

              Comment


                #8
                Re: xdialog closes form (it shouldn't)

                Originally posted by CALocklin View Post
                FWIW, it has amazed me how much the users prefer one parameter dialog vs. a series of dialogs prompting for individual items. I knew it would be better but I didn't expect people to rave over the improvement - but they did.

                Hi Cal,

                Two simple reasons to inspire confidence: conveniently arranged and a calmly act.
                Prompting all the time causes disorder and confusion.

                Some people then already know the sequence of questions and answer in advance without reading. And when they act wrong, (they say) it's your fault.

                Nice example. and I prefer this one.:D

                Ton
                Most things are simple but unfortunately only after the first time

                Comment

                Working...
                X