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

Main menu build with xBasic

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

    Main menu build with xBasic

    Hi,

    I know that it is possible to set an initial script for each user, since much of my application options are customizable I need to know if is it possible to build the user's main menu from xBasic in order to get a personalized menu for each user.

    By the way, I read some info (This page: http://alphafivedatabase.com/filemak...-platinum2.asp ) relative to "Automate unattended, scheduled backups" and "Remote database administration", �Could some experimented Alpha FIve user tells me if this is related to native files only?

    Thanks in advance,

    Rod MG

    #2
    Re: Main menu build with xBasic

    Hey Rod

    Check out this link. It is relavant as related to building a menu by user. Post #17 by Peter in particular.

    http://msgboard.alphasoftware.com/al...ight=tree+menu

    Regards,

    Jeff

    Later: You could also use Alpha's built in security as well I bet to create menu with rights only to those that a particular user is entitled to have.
    Last edited by jkletrovets; 11-18-2008, 02:50 PM.

    Comment


      #3
      Re: Main menu build with xBasic

      Rod

      Edit

      After reading the last post, I guess you are talking about tree menus - so ignore this post.

      Tom B.
      Last edited by Tbaker; 11-18-2008, 04:58 PM.

      Comment


        #4
        Re: Main menu build with xBasic

        Rod,

        An alternative way to handle your situation might be to create a tree based menu that shows all forms and reports, etc., but then to check the user's authorization before the form is actually opened. This is the approach major ERP systems use today. See the screen print below. When the user clicked on a tree line representing the transaction, the message appears at the bottom of the screen "You are not authorized to use transaction KKAX".

        As far as your interest in greater formatting flexibility for your tree control, you may be interested in my posting to the code archive How to create a dynamic hierarchical menu for your A5 application. It will show how to use colors, fonts, and styles that are not presently possible with native A5V9.

        In fact, the code archive gives you fairly complete, step by step instructions and XBasic code on how to do this.

        Bob McGaffic
        Pittsburgh

        Comment


          #5
          Re: Main menu build with xBasic

          Hi,

          Thanks for all your suggestions.

          Actually I'm trying to use a Top-Down menu (Just like the Excel or Word).

          The Tree menu looks interesting but I prefer that the tree menu shows only the options that the user have access to, thats why I think building the menu by xBasic coding is the way to go, but I don not know if this could be done.

          Thanks, again.

          Rod MG.

          Comment


            #6
            Re: Main menu build with xBasic

            Rod,

            Your approach makes sense if your applicaiton is static: that is you are hardcoding your choices in your tree control.

            I wanted the flexibility of changing the menu structure at will, and even to allow the user to restructure the menu -- which I did by creating a database of the menu items that I/user can easily restructure. So I used XBasic only to load the tree from a menu.dbf file and to actually open the selected form.

            Just a different way to skin the cat.

            Bob McGaffic
            Pittsburgh

            PS Here's a final thought: extend my menu.dbf with an additional table for role. When the user logs in, determine his role. Based on his role load the portion of the menu table applicable to him. Seems like a lot less coding to me.

            Comment


              #7
              Re: Main menu build with xBasic

              I have a form I leave open all the time. On that form and everyother form I have I have my custom menu. I have security setup for each user and for groups. The menu that appears is based on the group the person belongs too. Everything that happens it looks to see that the user is a member of the group that goes with the form. So warehouse people have their own menu and can access only some of the forms that deal with what they need. If I need to give a person access to another form or group of forms I just make them a member of that group.

              The main form I leave open all the time also has it's own table. I use this table to make changes that keep up with what is going on, such as last time a certain scrip runs and such.

              Comment


                #8
                Re: Main menu build with xBasic

                Just thought I would update this thread with an entry I just made in the code archive.

                Here is the link to the post there:

                http://msgboard.alphasoftware.com/al...ad.php?t=77082


                Regards,

                Jeff

                Comment


                  #9
                  Re: Main menu build with xBasic

                  Jeff your link appears to be broken.

                  http://msgboard.alphasoftware.com/al...ad.php?t=77082
                  Mike
                  __________________________________________
                  It is only when we forget all our learning that we begin to know.
                  It's not what you look at that matters, it's what you see.
                  Henry David Thoreau
                  __________________________________________



                  Comment


                    #10
                    Re: Main menu build with xBasic

                    Hi Jeff,

                    This is an excellent piece of work. Thank you for sharing with us.

                    Two questions, how do you change the background?

                    Is it possible to click on the highlighted item to Goto, in addition to the Goto Menu Item button?
                    Regards
                    Keith Hubert
                    Alpha Guild Member
                    London.
                    KHDB Management Systems
                    Skype = keith.hubert


                    For your day-to-day Needs, you Need an Alpha Database!

                    Comment


                      #11
                      Re: Main menu build with xBasic

                      Thanks Mike for pointing that out / fixing it.

                      This is an excellent piece of work. Thank you for sharing with us.
                      Thanks Keith - I appreciate it.

                      Two questions, how do you change the background?
                      Keith....if you are referring to the white background where the tree is......I am not really sure as I am certainly no xdialog expert. That is one thing I would like to do as well.

                      Is it possible to click on the highlighted item to Goto, in addition to the Goto Menu Item button?
                      Right now it is not possible - you have to click the button. It seems there should be a way for a double click on an item to work as well but it is lost on me at the moment.

                      I am a little behind on other stuff right now, but I will try to check into those items later today or tomorrow.

                      Perhaps one of the xdialog experts can chime in? Ira / Cal you out there? :)

                      Comment

                      Working...
                      X