Results 1 to 10 of 10

Thread: Dynamic Read and Update Security

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    348

    Dynamic Read and Update Security

    Hi all

    I am exploring how I can set the read and update roles of form fields and grid columns

    May I know where (which section method) should I put code to set the read and update roles programmatically of form fields and grid columns?

    Should this best be done in the Section INIT method or the Page INIT method?

    Your advice is much appreciated

    Thanks & Best Regards

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,695
    Why would you not use the built-in roles and permissions rather than custom code this?
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,695
    If you want to handle this in code, you can control the visibility and updatability in the UI Presentation Rules.

    Name:  Screen Shot 2015-01-30 at 12.38.10 PM.jpg
Views: 127
Size:  118.0 KB
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,099
    Hi Tekhong

    Use role for that. Look at lower part.

    Name:  _SP32-20150130-092106.jpg
Views: 62
Size:  52.9 KB

    For one role you can/must define app end even controls. I did not try, but this is what I expect more-or-less. Maybe control need full name: explore it.
    There you have CRUD options.


    As you can see from older post, you can define users with roles:
    This was more about hide/visibility.

    http://www.lianja.com/community/show...ll=1#post11770

  5. #5
    Senior Member
    Join Date
    Jan 2014
    Posts
    348
    Hi Josip

    Thanks for your feedback.

    May I know the purpose of domain in user security setup?

    Is that similar to user group?

    How is user domain used in security control?

    Your advice is much appreciated

    Thanks & Best Regards

  6. #6
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,369
    Hi Tek Hong,

    'Domain' is another name for 'Tenancy'. Have a look here for more on tenancies/domains.

    Regards,

    Yvonne

  7. #7
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,099
    Hi Tekhong,

    I have no experiences in this area yet, but some general understanding and can point to some interesting discussions and resources I noted. I would start from there:

    http://www.lianja.com/community/show...ud-environment

    http://www.lianja.com/community/show...B-applications

    http://www.lianja.com/doc/index.php/Users_and_Roles

    http://www.lianja.com/documentation/...nd-permissions

    Stick with domain "public". Thats why "public" is mentioned in cloud file structure (e.g. c:lianja\cloudserver\tenants\public\apps\).
    "Public" is like placeholder if you are not interested in deep structure prepared for cloud purpose.


    Josip
    Last edited by josipradnik; 2015-01-30 at 10:13.

  8. #8
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Josip,

    Just to clarify, the ui control is the same name you would use to reference a UI element using Lianja.getElementByID().

    Dynamic roles can be created and/or edited from a custom admin App.

    So in other words you can create dynamic roles which make sense in your application and when you add new users specify the name of a dynamic role as is shown in the screenshot.

    Roles and permissions are covered in many places in the doc and website. They are a core built in feature of the Lianja platform to control permissions.

    For example, a typical use case is to setup an admin, supervisor, finance, manager role.

  9. #9

  10. #10
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Hi Josip

    "public" is the default tenant for a single customer installation.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us