Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » How to Show / Hide Outlines depending on User Session
How to Show / Hide Outlines depending on User Session [message #1797186] Sat, 27 October 2018 10:28 Go to next message
Oueslati Anis is currently offline Oueslati AnisFriend
Messages: 128
Registered: June 2014
Location: Paris
Senior Member
Hi All,
I would like to show or hide outlines for specific users, How can I achieve this ?
Kind Regards
Anis
Re: How to Show / Hide Outlines depending on User Session [message #1797477 is a reply to message #1797186] Wed, 31 October 2018 12:46 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
Hi Oueslati

You can overwrite the method execInitTree(). Within this method you can set the visibility of the outline using setVisibleGranted() or setVisiblePermission() if you are working with java.security.Permission instances.

Does this work for you?

Kind regards
Mat
Re: How to Show / Hide Outlines depending on User Session [message #1797536 is a reply to message #1797477] Thu, 01 November 2018 12:26 Go to previous messageGo to next message
Oueslati Anis is currently offline Oueslati AnisFriend
Messages: 128
Registered: June 2014
Location: Paris
Senior Member
Hello ;
I am actually looking for a working sample, or a documentation ( beginner guide ) that show how to implement it, the beginner guide of scout does not ccontain such informations.
Kind Regards
Anis
Re: How to Show / Hide Outlines depending on User Session [message #1797537 is a reply to message #1797536] Thu, 01 November 2018 13:10 Go to previous message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
Hi

The contacts application in our documentation repository might make a good working sample. You can also start with a helloworld application created by Eclipse (File -> New... -> Project... -> Scout Project)

Here you can find our technical guide.

And here you have a sample that uses the setVisible() method to hide an outline.

Hope this helps

Kind regards
Mat
Previous Topic:Hierarchical Table
Next Topic:Refresh displaytext on SmartField
Goto Forum:
  


Current Time: Thu Apr 18 03:19:44 GMT 2024

Powered by FUDForum. Page generated in 0.01798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top