Multiple field permission for multiple users

Hi all,

I have a Servoy Form called AD that has two fields:

  1. AD tasks
  2. Comments

Also, I have two users:

  1. Jim
  2. Nancy

Once any of the above users login to AD form, for Jim I like him to have read, insert and update to AD tasks and Comments fields.
3. For Nancy, I like her to have select, insert and update into Comments field, but only read permission to AD tasks field.

Is this possible in Servoy?

Thanks,

Abrahim

Yes.

ON the onShow property of the form use a method that says (pseudo code):

if(globals.loginName == 'Nancy')
{
     elements.ad_tasks.readOnly = true
}
else
{
     elements.ad_tasks.readOnly = false
}

Yes.

ON the onShow property of the form use a method that says (pseudo code):

if(globals.loginName == 'Nancy')
{
     elements.ad_tasks.readOnly = true
}
else
{
     elements.ad_tasks.readOnly = false
}

Yes.

ON the onShow property of the form use a method that says (pseudo code):

if(globals.loginName == 'Nancy')
{
     elements.ad_tasks.readOnly = true
}
else
{
     elements.ad_tasks.readOnly = false
}

Yes.

ON the onShow property of the form use a method that says (pseudo code):

if(globals.loginName == 'Nancy')
{
     elements.ad_tasks.readOnly = true
}
else
{
     elements.ad_tasks.readOnly = false
}

Yes.

ON the onShow property of the form use a method that says (pseudo code):

if(globals.loginName == 'Nancy')
{
     elements.ad_tasks.readOnly = true
}
else
{
     elements.ad_tasks.readOnly = false
}

I guess that’s pretty clear Bob :roll:

Another option would be using the built in Servoy security
and putting Jim and Nancy in separate usergroups.

Sorry ALL! :oops:

My browser wasn’t updating - so, like the Mac user I am, I just kept clicking. :D

Bob,

I created a method called permission:

Code:

if(globals.loginName == ‘Nancy’)
{
elements.ad_tasks.readOnly = true
}
else
{
elements.ad_tasks.readOnly = false
}

Then onShow property of the form I used permission.
Then, I logged out and logged in as Nancy
But still allowing Nancy to update AD_tasks field.

I know this is a simple method, but it real does not block Nancy from updating ad_tasks.
Can we do it by groups name?

Thanks,

Abrahim