Table Events: onTableEditStart

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Table Events: onTableEditStart

Postby Karel Broer » Thu Aug 02, 2007 11:44 am

I know it's possible on form level, but I also would like to be able to trigger a (global) method when the user starts to edit the table.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby Harjo » Thu Aug 02, 2007 11:51 am

Hi Karel,
can you explain what you want to achieve with such a function?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Karel Broer » Thu Aug 02, 2007 12:06 pm

HJK wrote:Hi Karel,
can you explain what you want to achieve with such a function?

Hi Harjo,
I like to perform a security check if a user is allowed to edit the table.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby patrick » Thu Aug 02, 2007 12:14 pm

But that can be done with the new security functions.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Harry Catharell » Thu Aug 02, 2007 12:20 pm

Hi Karel,

From memory, there are new functions under Security node which allow you to test for canDelete, canInsert and others for a specified table.

Looks like this is what you want :)

Cheers
Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Postby Karel Broer » Thu Aug 02, 2007 12:21 pm

patrick wrote:But that can be done with the new security functions.

I'm not using the Servoy security, so can this also be done
by using my own -custom- security solution?

security.canUpdate(vServer, vTableName) returns only a boolean if the user is able to update the table.
I allready had that option build into in my solution... :wink:
security.canUpdate() uses the Servoy security, which is not usefull for me.

What I would like to do is prevent the user from updating the table...
Maybe security.UpdateTable([servername],[tablename],[boolean allow or disallow]) would be a nice option here?
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby jcompagner » Thu Aug 02, 2007 2:20 pm

this can be done in servoy, but then you have to use the servoy security.
Or as you said have an onRecordEditStart on every form that is build on that table.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby pbakker » Thu Aug 02, 2007 2:41 pm

There is a feature in the pipeline that will allow you to let a method specify security settings at runtime.

You will be able to specify a method to be called when Servoy is determining if users have access to certain objects. Servoy calls the method and based on what you as a developer return, access is granted or not.

Details are not completely know yet, but it will solve this situation for you, even when rolling your own security.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Karel Broer » Thu Aug 02, 2007 3:11 pm

pbakker wrote:There is a feature in the pipeline that will allow you to let a method specify security settings at runtime.

You will be able to specify a method to be called when Servoy is determining if users have access to certain objects. Servoy calls the method and based on what you as a developer return, access is granted or not.

Details are not completely know yet, but it will solve this situation for you, even when rolling your own security.

Paul

Excellent Paul! Thank y'all for thinking along!
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 10 guests