Solved

FILEMAKER: Creating customer accounts that will only display their data

Posted on 2008-10-30
3
454 Views
Last Modified: 2012-06-22
Hi. in advanced thanks for looking into this post.

i am an IT Consultant and have been working on a database where i have a list of all of my clients, technicians, issue tracker, work orders, etc. The database is nearly perfect and about 90% complete. The last 10% i am struggling. here is the issue:

I have a Clients table:
Client Code (Related)
Client Name
Address, Etc.

I have an Appointments table:
Client Code (Related)
Visit Type
Technician, Date, Etc.

I have an Issue Tracking Table
Client Code (Related)
Priority
Date, Etc.

Currently there are 3 Accounts in the database. Admin and 2 technicians who enter work orders.

What i am looking to do is the following. I want to create an account for each of my clients. I want this account to take them to a Layout that will only let them browse through work orders that i completed for their company. I do not want them to be able to see anything else in the database and i do not want them to see the other clients information (Client Codes, Work Orders, Etc.)

When a user logs in to the database the first layout displayed is the "Work Orders" layout. I dont know if i have to create separate tables for each client and restrict them from browsing other clients work orders and information. I am completely stuck as this feels like it will need an above average expertise and i have been using FM for about 5-6 months.

Please toss up any ideas which will be greatly appreciated. and check back for my replies. thanks!


FILEMAKER PRO ADV 9.03 FOR WINDOWS
0
Comment
Question by:h20addikt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:h20addikt
ID: 22847024
Please see a stripped down version of the database i am posting.

You can log in as Admin, John or Bertha (no passwords)

There are 2 CLients (XM , NV)

what i want to do is create accounts for the clients, the account name should essentially be the same as the Client Code. Once this user logs in (the client with his client code) i only want the client to see the work orders with their client code. I wouldlike to have this done in a new layout so that i can customize a new layout for them.

client-db-.zip
0
 
LVL 9

Expert Comment

by:jvaldes
ID: 22858584
What you need to do is create a database of globals and put at least on global g_CurrentClient Then create a layout based on the globals table. Create a relationship between the "workorder" table or it may be the onsite table that I couldn't see select the field "Client"  and g_CurrentClent. This will refine your view of the database to only those records that "Client"=g_CurrentClient

Add a portal for a list or the filed names from the onsite database to this layout to see the data, if you change the g_CurrentClient to a different client the data gets filtered automatically.

Please send the complete database if you want me to create an example
0
 
LVL 10

Accepted Solution

by:
webwyzsystems earned 500 total points
ID: 22899692
Another slightly different option is to create a layout that only shows related records. Just tag all the records with the Get(AccountName). When the user opens populate a field (gACCOUNTNAME) with his account name, then  do a find for all records under his account name.

Finally, you want to edit Accounts and Privileges. Edit the priv set for your clients. Create a custom rule on records. Only allow VIEW when gACCOUNTNAME=get(AccountName). You could add another clause that says "completed = true" or something like that as well.

If you do it like this, the guest will never be able to see anyone else's records. Remember to limit access to importing for your clients as well. They could import someone elses name into a field to bypass...so you need to prevent that.

Using the built in security features is harder and more complex...but you will end up with a much more protected system in the end.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question