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

How to bulid multi Tenant application

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

  • DaveM
    replied
    Re: How to bulid multi Tenant application

    Charles gave a pretty good idea of what it takes and it is basically the same regardless of what tool, language or container used.

    Leave a comment:


  • eduduru
    replied
    Re: How to bulid multi Tenant application

    Yes you are right. but how can I build something like that with alpha? that is my question.

    Thank you.

    Leave a comment:


  • CharlesParker
    replied
    Re: How to bulid multi Tenant application

    Yes you can, but you have a lot to learn and build first! A good database structure to include the tenant_id and user_id during data entry is a must if you plan on separating the records by tenant. I display the individual company logo on lets say invoices for each tenant - I use a session variable to get the information from a table called company defaults where each "tenant" stores their unique defaults that I can call in other areas when needed.
    I can help you a little here and there - but speaking from my own experience you will HAVE to learn this on your own - otherwise you will never get anywhere!

    The absolute BEST advice I can give you is to start with small goals and work your way up into your application. My first goal was to create a simple login where I could just log in, create a record - edit it, save and delete.

    Then I said ok, let me create two logins and filter the records by tenant_id

    For me grids were easiest to learn, then the UX and finally the list control - which after you start learning some xbasic you soon realize just how little you really know!
    Like I said - start small and work your way into it. Read everything you can on the design phase of your database, and understand that asking the right questions will get you the right answers - asking overly broad questions will result in either NO answer or more questions...

    It is not an easy thing to learn to ask the right questions when you first start off - even searching the forums for the right stuff can be a challenge. Do yourself a favor and ask yourself - no write it down - EXACTLY what you want to know first.

    For example, your question "can I have the logo displayed on logon for each tenant?" The answer is "Yes" however that gets you nowhere in getting it done. Your real question is how do I display an image based on the tenant_id - which only leads to more questions...is this a grid? is this a UX, is this a list control...and so on.
    For some questions, you may need to tell people, the device your using, the browser displaying the info, the build your on, etc.


    As far as the expired level - I just created an additional usergroup called expired, so that my users can always login and download their information however expired users cannot "Insert" or "Update" records. My users pay a monthly fee, if they do not they can still log in and view their records, an expired technician cannot login at all.

    So as you can see, there is a lot to learn and like I said - start small. NEVER GIVE UP! I can assure you I am NOT a genius and if you look at my profile, it has taken me years to get where I am - mostly because I am fairly thick headed. I cursed everyone within earshot, called myself stupid and swore it was impossible many nights - in a row. If I had a nickel for every time I told myself I was too stupid to do this - I would admittedly be making money in a weird way, but I would be rich!

    Good luck, sorry so long winded!

    Leave a comment:


  • eduduru
    replied
    Re: How to bulid multi Tenant application

    Originally posted by CharlesParker View Post
    Yes, it is possible and that is exactly what I do. I basically filter my "tenants" by company_id and then permissions by usergroup. If you are just starting out I would suggest that you first get a simple table to filter by company_id in other words start off with a table with 2 records in it, one for each unique company_id.
    Then a login component, so you can login with each user and ONLY see the records that should be there for each unique company_id.

    I have a table called users and besides the usual login (email) first name, last name, etc I have another hidden field called company_id that belongs to every user who belongs to that company.
    Every user belongs to a group. IN my case it is Owner, Secretary, Technician and Customer. btw, I have other user groups such as "newuser" as well as EXPIRED levels.
    The expired levels are important for recognizing paid and unpaid accounts.

    As mike said your asking a ALOT more than you know! It is however doable - I am doing it.
    Thank you Charles. Can i have the logo dislpyed on logon for each Tenant? Note; I want each tenant to have their own Admin page and they can register there customers and there customers can login an view there profile and records on the application. The expired level is not clear to me.

    If you have clue of this share with me please.

    Kind regards
    Last edited by eduduru; 04-05-2016, 04:25 AM.

    Leave a comment:


  • CharlesParker
    replied
    Re: How to bulid multi Tenant application

    Yes, it is possible and that is exactly what I do. I basically filter my "tenants" by company_id and then permissions by usergroup. If you are just starting out I would suggest that you first get a simple table to filter by company_id in other words start off with a table with 2 records in it, one for each unique company_id.
    Then a login component, so you can login with each user and ONLY see the records that should be there for each unique company_id.

    I have a table called users and besides the usual login (email) first name, last name, etc I have another hidden field called company_id that belongs to every user who belongs to that company.
    Every user belongs to a group. IN my case it is Owner, Secretary, Technician and Customer. btw, I have other user groups such as "newuser" as well as EXPIRED levels.
    The expired levels are important for recognizing paid and unpaid accounts.

    As mike said your asking a ALOT more than you know! It is however doable - I am doing it.

    Leave a comment:


  • mikeallenbrown
    replied
    Re: How to bulid multi Tenant application

    Your questions are quite broad. Yes, I'm sure you could create this type of app using a TabbedUI. As for filtering when a user logs in you could set a session variable (client id perhaps) and use the variable anywhere you need filtering.

    Leave a comment:


  • eduduru
    started a topic How to bulid multi Tenant application

    How to bulid multi Tenant application

    Hi everyone!

    How can i develop a multi- Tenancy application that can be hosted on cloud so that my Tenants like companies when i sign up for them the will have there page with their log displayed for them only, whatever they do will be filtered, the can register there only admin staffs on it as well. can i acheive this with a single TabbedUI page and also with the web-security-tables created by alpha?

    Thanks

    Edu
Working...
X