dbTalk Databases Forums  

Get(accountname) problems in IWP

comp.databases.filemaker comp.databases.filemaker


Discuss Get(accountname) problems in IWP in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jbrejcha
 
Posts: n/a

Default Get(accountname) problems in IWP - 02-08-2007 , 05:32 AM






Hello,

I'm using a startup script, that shows just the records based on
creator, copied from get(accountname):

If [ Get(PrivilegeSetName)="Set" ]
Show/Hide Status Area
[ Lock; Hide ]
Go to Layout [ "Main" (DB) ]
If [ Get(AccountName)="user1" ]
Enter Find Mode [ ]
Set Field [ DB::user_ID; Get(AccountName) ]
Perform Find [ ]
Else If [ Get(AccountName)="user2" ]
Enter Find Mode [ ]
Set Field [ DB::user_ID; Get(AccountName) ]
Perform Find [ ]
End If
End If

However, this works with one user only (regardless of its position in
the script), and any other user with the same privilege set isn't
recognised after login thru IWP - meaning it cannot create new
records, calculations aren't auto-inserted, etc.

Sometimes even the file serving the database has to be reopened for
all the changes (in privileges, scripts, etc) to propagate.

Has anyone solved such issues? Using FM Pro 8 on Mac.
Thank you.


Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Get(accountname) problems in IWP - 02-08-2007 , 07:10 AM






Do you have more users then User1 and User2? If not then try to replace the
Else If with an Else.

I see what you are doing and have a question. The user gets presented with a
found set, based on his/her AccountName. Is this failsafe for you? Is there
no way the user can change this found set along the way? I don't know how
your tables are set up, and don't know if it might be practicle, but perhaps
you could rig a relationship where the accountname is stored or calculated.
And where the found set is represented by a relation based on the account
name. Thus prividing you with a log-in without the search steps and a stable
set of records (through the relation) for the user.

Ursus


"jbrejcha" <jbrejcha (AT) gmail (DOT) com> schreef in bericht
news:1170934348.290016.208220 (AT) a75g2000cwd (DOT) googlegroups.com...
Quote:
Hello,

I'm using a startup script, that shows just the records based on
creator, copied from get(accountname):

If [ Get(PrivilegeSetName)="Set" ]
Show/Hide Status Area
[ Lock; Hide ]
Go to Layout [ "Main" (DB) ]
If [ Get(AccountName)="user1" ]
Enter Find Mode [ ]
Set Field [ DB::user_ID; Get(AccountName) ]
Perform Find [ ]
Else If [ Get(AccountName)="user2" ]
Enter Find Mode [ ]
Set Field [ DB::user_ID; Get(AccountName) ]
Perform Find [ ]
End If
End If

However, this works with one user only (regardless of its position in
the script), and any other user with the same privilege set isn't
recognised after login thru IWP - meaning it cannot create new
records, calculations aren't auto-inserted, etc.

Sometimes even the file serving the database has to be reopened for
all the changes (in privileges, scripts, etc) to propagate.

Has anyone solved such issues? Using FM Pro 8 on Mac.
Thank you.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.