Solved

Separating viewable records from all to only theirs

Posted on 2004-10-19
17
298 Views
Last Modified: 2010-04-27
Hi Everyone,
I am a newbie to FileMaker. My boss wants me to build a job request db. Basically he wants the engineers to request a job, have us update the status of the job whle we are working on it and still have the engineer be able to view their requests. Security is a big thing at this company so I can see everything but the engineers can only see their stuff. I though that based on their login account something could be tested against that but like I said, newbie. Thanks for any help anyone can give me.
0
Comment
Question by:tarek316
  • 7
  • 6
  • 4
17 Comments
 
LVL 28

Expert Comment

by:lesouef
ID: 12352705
based on login/passwd, you can enable/disable access to certain layout or field, but this rather heavy to setup. I personnally often use scripts which check the user's group to let the user access layouts containing restricted data. without the right passwd, users cannot access the layout which shows restricted data.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 12352802
Another idea is to allow to search records only through a script and always add on the fly an extra condition user=xxx before executing the search.
0
 

Author Comment

by:tarek316
ID: 12352813
do you used standard script instructions? I have looked up and donw the script maker for stuff on accounts but there is a relative few options...
0
 

Author Comment

by:tarek316
ID: 12352924
Here is another thing that I can't get around. All I want when the user first gets in, is there to be just black fields. To stop the user from going through and seeing other people requests, I turned off their ablitiy to view but what that does is stop them from viewing but it also leaves the ackward looking text "no access". Is there any way to get rid of that? I think if there is a way that the first screen they see is black then I won't turn off view which should allow me to show them their past request.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 12355691
For accounts, you have to use the state functions: one is providing the group the user belongs to.
I am using a french version so I won't give the name, it may mislead you (it is not pure word by word translation), but i am sure it is obvious, something like state(usergroup)
2nd pb: no: if you set no access, it is no access, not even 'see it'.
I would use a layout with the fields you want to use for the search, swith immediately to search mode and add an extra condition over the user's one before execution like I described earlier.
that means that you have a startup script set in doc prefs, and also a search script + disable menu actions for users to avoid manual search.
0
 
LVL 19

Expert Comment

by:billmercer
ID: 12360667
In English FileMaker 6 and earlier, the function is called Status(CurrentGroups)

In FM7, the function has been changed to Get(AccountName) and it's slightly more complicated due to the security changes in FM7.

0
 

Author Comment

by:tarek316
ID: 12360797
Thanks for your help. I really appreciate it. A few things have changed with the project so I didn't need to go down this road but I have one last question for you if you don't mind. Basically, I have a status field that talks about where the project is at. I have another fielld that is a date about when the project is recieved. Is there a way that I can have the status field change to "recieved" when a date is inputed in the recieved field on the fly? I don't want to have a button that updates the db but if that is the way to do it ok. Is there anything on the fly to to that? Thanks
0
 
LVL 19

Assisted Solution

by:billmercer
billmercer earned 100 total points
ID: 12361849
Create a calculated field uses an IF to decide what result to display depending on whether the date is blank. Like this:
IF (  isEmpty( THE_DATE_FIELD ), "Not Received Yet", "Received On " & THE_DATE_FIELD )

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 28

Accepted Solution

by:
lesouef earned 100 total points
ID: 12361887
You could use a calculated field if no manual entry is necessary in that same field.
ex:
status_field = if (date_received > 0 , "done" , "on its way" )
If you want to be able to both enter data manually and use an automatic update of this field upon date_received field entry, you need an external plug-in called "callscript" which allows to trigger a script when a given field content is updated.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 12361922
sorry billmercer, we've been typing at the same time! I saw yr answer when I entered mine...
0
 
LVL 19

Expert Comment

by:billmercer
ID: 12362176
Sooner or later it had to happen :)

0
 

Author Comment

by:tarek316
ID: 12362200
Thanks guys that really should help...
0
 
LVL 28

Expert Comment

by:lesouef
ID: 12362306
Forgot to mention the URL for the pkug-in.
I don't remember it now, I have a note in the office about it, let me know if you need it
0
 

Author Comment

by:tarek316
ID: 12362470
Bill, where is that if used? In the status field or recieved field?

Les, where can I get that plugin?
0
 
LVL 28

Expert Comment

by:lesouef
ID: 12362660
I'll let you know too-morrow, I am at home now (22:05!)
the "IF..." is the status field definition when defined as a calculated field
0
 
LVL 19

Expert Comment

by:billmercer
ID: 12362746
In the status field. Change the type of the field from Text to Calculation, then enter the formula in there. You could also keep the status field as a text field, and use a script to set its value, but a calculated field will update automatically without running a script.
It's your preference.

I know Lesouef has provided that plug-in link here in the past, so you might be able to find it with a google search.

0
 

Author Comment

by:tarek316
ID: 12362827
Sorry Les, it can totally wait.......

Thanks to both of you guy, you guys are awsome......
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

914 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now