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

Tabs with "Security"

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

    Tabs with "Security"

    Does anyone know if creating a form with tabs I can place something in the form .. OnTabChange or something along those lines I can make it prompt for a password or better yet prompt for User / PW and have 2 Modes View Mode and then a Edit Mode. I am a bit new to this alpha five v five software so if you can help that would be great.

    Thank you

    #2
    RE: Tabs with

    Jarrett,

    There are two events for TABS: OnTabChange and CanTabChange.

    If you want someone to provide valid UN/PW or they don't get the tab at all, then use CanTabChange. You can then keep them off that tab altogether. With valid UN/PW, just end the script, with invalid UN/PW, set the property for the TABBED object back to the orgiginal tab, e.g.,

    'grab old tab number
    oldtab = [form_name]:tabbed1.Tab_Get()
    pass_modal = "golly"
    pass_modeless = "gollygee"
    user = ui_get_password("Password","What is the password?","","*")
    if user = pass_modal then
    'script to allow viewing only
    elseif use = pass_modeless then
    'script to allow editing
    else
    [form_name]:tabbed1.Tab_Set(oldtab)
    end if

    To simply choose the mode for the tab, use OnTabChange, ask for UN/PW and set based on their reply. (Or you may want to even do this with CanTabChange--this will keep the tab from changing until you get the UN/PW input)

    There are other things you could do as well. You could have two tabs, one for modal and one for modeless, and hide the one you don't need. That way you could included additional fields/controls on the edit tab, etc.

    Hope this helps,

    Stephen
    Stephen Pilon
    Associate Librarian
    Christendom College

    Comment


      #3
      RE: Tabs with

      Stephan,

      Is your code a suggestion of soemthing to try or something you have successfully used? I have my own way of providing security for a particular tab, but I have found that I must use OnTabChange, and even then the end result is not perfect in that if the password (actually I don't use a password but that's neither here nor there) fails, the user is back to a tab but the tab label is as if they got to the tab they wanted to go to. I have not been able to find a way around that.

      I was hoping your method would solve the above problem. However, I can't get your CanTabChange idea to work at all (it allows the tab change no matter what password is input). Again, is this something you have tested and if so do you have any idea why it doesn't work for me?

      Ray Lyons

      Comment


        #4
        RE: Tabs with

        Hi all,

        I have attached an example of what your looking for.

        Hope this helps.

        Scott

        Comment


          #5
          RE: Tabs with

          Scott,

          I can't speak for the others but for my app I am not interested in just challenging a change in tabs per se. What I do with some but not total success is control user access to one particular tab, tab 4 in my case. So at CanChangeTab event you would have to know which tab the user was going to before you could use your code, and to my knowledge there is no way to do that. Instead you have to use OnTabChange so you can detect which tab the user is going trying to go to, and if it is tab 4, ask for a password (or use my user/group based access_y_n function) and then either go somewhere else or allow access to tab4--and of course it's too late for a simple cancel(). Another problem is that all this time messing with a password the user can sit there and take note of the contents of most of tab4. That's one reason to use a user/group based access function, but even with that I have a cutain I hang over tab4 to black it out until access is permitted. I think I outlined my method in some deatil in an old thread. It works, but as I said, when I deny access it goes (usually back)to an allowed tab, but the label is for the disallowed tab. That's not a real big defect, but it does not look as professional as it should. Short of Selwyn doing something new, I don't think there is a way around the label problem. Hmm, maybe someone could build solution with a custom Xdialog tabbed box? Probably not given all the stuff that needs to go on my tabs (it would need to function like a form).

          Ray Lyons

          Comment


            #6
            RE: Tabs with

            put a conditional object on the tab in question, where the fields do not display unless they are the correct user, or have the correct user priveliges. That would handle the "blackout" issue.

            I haven't tried this, but if there were 3 conditions:

            1. They are not allowed at all
            ---put one button (no fields), with no code, except at the onarrive event for the button, that would either put focus somewhere else, or do a ui_msg telling the user they are not allowed there and then put focus somewhere else
            2. They are view only
            ---Put the appropriate fields, but make them all read-only
            3. They have full permissions
            ---Put the appropriate fields and make them read/write


            the only thing you would have to realize is that if you have code elsewhere that fires and checks the values of these fields, they have different names, because they are on the form twice - like fieldname0 and fieldname1.
            Cole Custom Programming - Terrell, Texas
            972 524 8714
            [email protected]

            ____________________
            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

            Comment


              #7
              RE: Tabs with

              Well, my black curtain works well enough. But I can see where a conditional object might solve the problem of the tab label being incorrect. I would, however, worry about putting a conditional object on a taabed object. It would work fine on my machine but these things sometimes do not show correctly on some weaker machines that clients often use (probably weak video cards?).

              Thanks for the idea.

              Ray Lyons

              Comment


                #8
                RE: Tabs with

                Ray,

                Sorry to take so long to get back. I see your point. I had not tried the script. What we need is a new method for tabs called .requested() that would give us the number of the tab that was requested.

                What about it Selwyn?

                Stephen
                Stephen Pilon
                Associate Librarian
                Christendom College

                Comment

                Working...
                X